mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 09:38:54 +00:00
bee500880e
Finishes the plural work the previous wip commit started. t() picks a count string's form by the language's own Intl.PluralRules, and every locale now spells out the forms its language reaches with whole numbers, about 160 count strings in all: one, few and many in Russian, Ukrainian and Polish, one and few in Czech and Slovak, five forms in Arabic, one in the others, none in Japanese, Korean, Chinese, Thai, Vietnamese and Indonesian. Each language was translated and then reviewed on its own. English no longer reads "1 files", "1 updates available" or "photo(s)". Count labels shown next to a number now take that number too: the atlas and admin statistics, the trip cards, journey and shared trip pills, packing templates, receipts, storage usage, the Studio export note. A heading that shared its key with a counted label keeps a key of its own (the boarding pass heading, the Bookings tab), so languages that put a noun after a number in the singular keep a plural heading. The plugin hosts chip passed its count through .replace() after t() and never got a form; three toasts sent the count as text. Mail and push texts for shared photos and suppressed storage failures pick their form in code through pluralForm. A whole number sent as text counts too, which is how in-app notification params arrive, and the plural rule follows the language of the strings on screen while another one still loads. The parity check knows which forms each language needs and refuses missing and impossible ones. It also reads keys that contain a colon now: it skipped them, which hid 58 missing plugin permission texts in Catalan and 35 in Vietnamese, both translated. The client parity test covers every language of the registry instead of a hand-kept list of 19, and the placeholder spec lets a form spell its number out only where its category is that one number. Brazilian Portuguese error screens were in Breton, and an Arabic dashboard label held Hebrew text.
122 lines
5.6 KiB
TypeScript
122 lines
5.6 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const atlas: TranslationStrings = {
|
|
'atlas.subtitle': 'بصمتك السفرية حول العالم',
|
|
'atlas.countries': 'دولة',
|
|
'atlas.countries.zero': 'دول',
|
|
'atlas.countries.one': 'دولة',
|
|
'atlas.countries.two': 'دولتان',
|
|
'atlas.countries.few': 'دول',
|
|
'atlas.countries.many': 'دولة',
|
|
'atlas.trips': 'رحلة',
|
|
'atlas.trips.zero': 'رحلات',
|
|
'atlas.trips.one': 'رحلة',
|
|
'atlas.trips.two': 'رحلتان',
|
|
'atlas.trips.few': 'رحلات',
|
|
'atlas.trips.many': 'رحلة',
|
|
'atlas.places': 'مكان',
|
|
'atlas.places.zero': 'أماكن',
|
|
'atlas.places.one': 'مكان',
|
|
'atlas.places.two': 'مكانان',
|
|
'atlas.places.few': 'أماكن',
|
|
'atlas.places.many': 'مكانًا',
|
|
'atlas.placesShow': 'عرض الأماكن في هذا البلد',
|
|
'atlas.placesSearch': 'البحث عن أماكن',
|
|
'atlas.placesNone': 'لا يوجد مكان مطابق',
|
|
'atlas.unmark': 'إزالة',
|
|
'atlas.confirmMark': 'تعيين هذا البلد كمُزار؟',
|
|
'atlas.confirmUnmark': 'إزالة هذا البلد من قائمة المُزارة؟',
|
|
'atlas.confirmUnmarkRegion': 'إزالة هذه المنطقة من قائمة المُزارة؟',
|
|
'atlas.markVisited': 'تعيين كمُزار',
|
|
'atlas.markVisitedHint': 'إضافة هذا البلد إلى قائمة المُزارة',
|
|
'atlas.markRegionVisitedHint': 'إضافة هذه المنطقة إلى قائمة المُزارة',
|
|
'atlas.addToBucket': 'إضافة إلى قائمة الأمنيات',
|
|
'atlas.addPoi': 'إضافة مكان',
|
|
'atlas.searchCountry': 'ابحث عن دولة...',
|
|
'atlas.searchPlaces': 'الأماكن',
|
|
'atlas.bucketNamePlaceholder': 'الاسم (بلد، مدينة، مكان…)',
|
|
'atlas.month': 'الشهر',
|
|
'atlas.year': 'السنة',
|
|
'atlas.addToBucketHint': 'حفظ كمكان تريد زيارته',
|
|
'atlas.removeFromBucket': 'إزالة من قائمة الأمنيات',
|
|
'atlas.removeFromBucketHint': 'إزالة هذا البلد من قائمة أمنياتك',
|
|
'atlas.bucketWhen': 'متى تخطط للزيارة؟',
|
|
'atlas.bucketDuplicate': 'موجود بالفعل في قائمة الأمنيات',
|
|
'atlas.statsTab': 'الإحصائيات',
|
|
'atlas.bucketTab': 'قائمة الأمنيات',
|
|
'atlas.addBucket': 'إضافة إلى قائمة الأمنيات',
|
|
'atlas.bucketNotesPlaceholder': 'ملاحظات (اختياري)',
|
|
'atlas.bucketEmpty': 'قائمة أمنياتك فارغة',
|
|
'atlas.bucketEmptyHint': 'أضف أماكن تحلم بزيارتها',
|
|
'atlas.days': 'يوم',
|
|
'atlas.days.zero': 'أيام',
|
|
'atlas.days.one': 'يوم',
|
|
'atlas.days.two': 'يومان',
|
|
'atlas.days.few': 'أيام',
|
|
'atlas.days.many': 'يومًا',
|
|
'atlas.visitedCountries': 'الدول التي تمت زيارتها',
|
|
'atlas.cities': 'مدينة',
|
|
'atlas.cities.zero': 'مدن',
|
|
'atlas.cities.one': 'مدينة',
|
|
'atlas.cities.two': 'مدينتان',
|
|
'atlas.cities.few': 'مدن',
|
|
'atlas.cities.many': 'مدينة',
|
|
'atlas.regions': 'منطقة',
|
|
'atlas.regions.zero': 'مناطق',
|
|
'atlas.regions.one': 'منطقة',
|
|
'atlas.regions.two': 'منطقتان',
|
|
'atlas.regions.few': 'مناطق',
|
|
'atlas.regions.many': 'منطقة',
|
|
'atlas.noData': 'لا توجد بيانات سفر بعد',
|
|
'atlas.noDataHint': 'أنشئ رحلة وأضف أماكن لرؤية خريطتك العالمية',
|
|
'atlas.nextTrip': 'الرحلة القادمة',
|
|
'atlas.daysLeft': 'يوم متبقٍ',
|
|
'atlas.streak': 'سلسلة',
|
|
'atlas.years': 'سنوات',
|
|
'atlas.yearsInRow': 'سنة متتالية',
|
|
'atlas.yearsInRow.zero': 'سنوات متتالية',
|
|
'atlas.yearsInRow.one': 'سنة متتالية',
|
|
'atlas.yearsInRow.two': 'سنتان متتاليتان',
|
|
'atlas.yearsInRow.few': 'سنوات متتالية',
|
|
'atlas.yearsInRow.many': 'سنة متتالية',
|
|
'atlas.tripsIn': 'رحلة في',
|
|
'atlas.tripsIn.zero': 'رحلات في',
|
|
'atlas.tripsIn.one': 'رحلة في',
|
|
'atlas.tripsIn.two': 'رحلتان في',
|
|
'atlas.tripsIn.few': 'رحلات في',
|
|
'atlas.tripsIn.many': 'رحلة في',
|
|
'atlas.since': 'منذ',
|
|
'atlas.europe': 'أوروبا',
|
|
'atlas.asia': 'آسيا',
|
|
'atlas.northAmerica': 'أمريكا الشمالية',
|
|
'atlas.southAmerica': 'أمريكا الجنوبية',
|
|
'atlas.africa': 'أفريقيا',
|
|
'atlas.oceania': 'أوقيانوسيا',
|
|
'atlas.other': 'أخرى',
|
|
'atlas.firstVisit': 'أول رحلة',
|
|
'atlas.lastVisitLabel': 'آخر رحلة',
|
|
'atlas.tripsLabel': 'رحلة',
|
|
'atlas.tripsLabel.zero': 'رحلات',
|
|
'atlas.tripsLabel.one': 'رحلة',
|
|
'atlas.tripsLabel.two': 'رحلتان',
|
|
'atlas.tripsLabel.few': 'رحلات',
|
|
'atlas.tripsLabel.many': 'رحلة',
|
|
'atlas.placesVisited': 'مكان تمت زيارته',
|
|
'atlas.placesVisited.zero': 'أماكن تمت زيارتها',
|
|
'atlas.placesVisited.one': 'مكان تمت زيارته',
|
|
'atlas.placesVisited.two': 'مكانان تمت زيارتهما',
|
|
'atlas.placesVisited.few': 'أماكن تمت زيارتها',
|
|
'atlas.placesVisited.many': 'مكانًا تمت زيارته',
|
|
'atlas.planned': 'مُخطط',
|
|
'atlas.showPlanned': 'إظهار الدول المخطط زيارتها',
|
|
'atlas.plannedFor': 'مخطط لـ',
|
|
'atlas.antarctica': 'أنتاركتيكا',
|
|
'atlas.regionPlacesLabel': 'مكان',
|
|
'atlas.regionPlacesLabel.zero': 'أماكن',
|
|
'atlas.regionPlacesLabel.one': 'مكان',
|
|
'atlas.regionPlacesLabel.two': 'مكانان',
|
|
'atlas.regionPlacesLabel.few': 'أماكن',
|
|
'atlas.regionPlacesLabel.many': 'مكانًا',
|
|
};
|
|
export default atlas;
|