mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-24 07:53:09 +00:00
33fcbba414
- Replace fixed-order date parser with locale-aware implementation using Intl.DateTimeFormat.formatToParts to detect field order; adds swap fallback for unambiguous inputs (day > 12) to handle locale mismatches gracefully - Pre-fill keyboard input with locale-formatted numeric date (e.g. 14.06.2026) instead of raw ISO value - Replace all hardcoded English aria-labels and titles with t() calls; add new keys under common.datepicker.* namespace across all locale files - Update FE-COMP-DATEPICKER-013 to use unambiguous day value (> 12) to avoid locale-dependent test failures
67 lines
2.7 KiB
TypeScript
67 lines
2.7 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const common: TranslationStrings = {
|
|
'common.save': 'حفظ',
|
|
'common.showMore': 'عرض المزيد',
|
|
'common.showLess': 'عرض أقل',
|
|
'common.cancel': 'إلغاء',
|
|
'common.clear': 'مسح',
|
|
'common.delete': 'حذف',
|
|
'common.edit': 'تعديل',
|
|
'common.add': 'إضافة',
|
|
'common.loading': 'جارٍ التحميل...',
|
|
'common.import': 'استيراد',
|
|
'common.select': 'تحديد',
|
|
'common.selectAll': 'تحديد الكل',
|
|
'common.deselectAll': 'إلغاء تحديد الكل',
|
|
'common.error': 'خطأ',
|
|
'common.unknownError': 'خطأ غير معروف',
|
|
'common.tooManyAttempts': 'محاولات كثيرة جدًا. يرجى المحاولة لاحقًا.',
|
|
'common.back': 'رجوع',
|
|
'common.all': 'الكل',
|
|
'common.close': 'إغلاق',
|
|
'common.open': 'فتح',
|
|
'common.upload': 'رفع',
|
|
'common.search': 'بحث',
|
|
'common.confirm': 'تأكيد',
|
|
'common.ok': 'حسنًا',
|
|
'common.yes': 'نعم',
|
|
'common.no': 'لا',
|
|
'common.or': 'أو',
|
|
'common.none': 'لا شيء',
|
|
'common.date': 'التاريخ',
|
|
'common.rename': 'إعادة تسمية',
|
|
'common.discardChanges': 'تجاهل التغييرات',
|
|
'common.discard': 'تجاهل',
|
|
'common.name': 'الاسم',
|
|
'common.email': 'البريد الإلكتروني',
|
|
'common.password': 'كلمة المرور',
|
|
'common.saving': 'جارٍ الحفظ...',
|
|
'common.saved': 'تم الحفظ',
|
|
'common.update': 'تحديث',
|
|
'common.change': 'تغيير',
|
|
'common.uploading': 'جارٍ الرفع...',
|
|
'common.backToPlanning': 'العودة إلى التخطيط',
|
|
'common.reset': 'إعادة تعيين',
|
|
'common.expand': 'توسيع',
|
|
'common.collapse': 'طي',
|
|
'common.copy': 'نسخ',
|
|
'common.copied': 'تم النسخ',
|
|
'common.justNow': 'just now', // en-fallback
|
|
'common.hoursAgo': '{count}h ago', // en-fallback
|
|
'common.daysAgo': '{count}d ago', // en-fallback
|
|
'common.datepicker.prevMonth': 'Previous month', // en-fallback
|
|
'common.datepicker.nextMonth': 'Next month', // en-fallback
|
|
'common.datepicker.prevYear': 'Previous year', // en-fallback
|
|
'common.datepicker.nextYear': 'Next year', // en-fallback
|
|
'common.datepicker.prevYears': 'Previous years', // en-fallback
|
|
'common.datepicker.nextYears': 'Next years', // en-fallback
|
|
'common.datepicker.selectMonth': 'Select month', // en-fallback
|
|
'common.datepicker.selectYear': 'Select year', // en-fallback
|
|
'common.datepicker.enterManually': 'Enter date manually', // en-fallback
|
|
'common.datepicker.typeDate': 'Type a date', // en-fallback
|
|
'common.datepicker.dialog': 'Date picker', // en-fallback
|
|
'common.datepicker.clearDate': 'Clear date', // en-fallback
|
|
};
|
|
export default common;
|