Unverified Commit 3a87b93f authored by Hans Muller's avatar Hans Muller Committed by GitHub

Added support for the Khmer (km) language (#22617)

parent 37c10acb
......@@ -6107,6 +6107,184 @@ const Map<String, dynamic> dateSymbols = <String, dynamic>{
r'''{1} {0}'''
],
},
'km': <String, dynamic>{
'NAME': r'''km''',
'ERAS': <dynamic>[r'''មុន គ.ស.''', r'''គ.ស.'''],
'ERANAMES': <dynamic>[r'''មុន​គ្រិស្តសករាជ''', r'''គ្រិស្តសករាជ'''],
'NARROWMONTHS': <dynamic>[
r'''ម''',
r'''ក''',
r'''ម''',
r'''ម''',
r'''ឧ''',
r'''ម''',
r'''ក''',
r'''ស''',
r'''ក''',
r'''ត''',
r'''វ''',
r'''ធ'''
],
'STANDALONENARROWMONTHS': <dynamic>[
r'''ម''',
r'''ក''',
r'''ម''',
r'''ម''',
r'''ឧ''',
r'''ម''',
r'''ក''',
r'''ស''',
r'''ក''',
r'''ត''',
r'''វ''',
r'''ធ'''
],
'MONTHS': <dynamic>[
r'''មករា''',
r'''កុម្ភៈ''',
r'''មីនា''',
r'''មេសា''',
r'''ឧសភា''',
r'''មិថុនា''',
r'''កក្កដា''',
r'''សីហា''',
r'''កញ្ញា''',
r'''តុលា''',
r'''វិច្ឆិកា''',
r'''ធ្នូ'''
],
'STANDALONEMONTHS': <dynamic>[
r'''មករា''',
r'''កុម្ភៈ''',
r'''មីនា''',
r'''មេសា''',
r'''ឧសភា''',
r'''មិថុនា''',
r'''កក្កដា''',
r'''សីហា''',
r'''កញ្ញា''',
r'''តុលា''',
r'''វិច្ឆិកា''',
r'''ធ្នូ'''
],
'SHORTMONTHS': <dynamic>[
r'''មករា''',
r'''កុម្ភៈ''',
r'''មីនា''',
r'''មេសា''',
r'''ឧសភា''',
r'''មិថុនា''',
r'''កក្កដា''',
r'''សីហា''',
r'''កញ្ញា''',
r'''តុលា''',
r'''វិច្ឆិកា''',
r'''ធ្នូ'''
],
'STANDALONESHORTMONTHS': <dynamic>[
r'''មករា''',
r'''កុម្ភៈ''',
r'''មីនា''',
r'''មេសា''',
r'''ឧសភា''',
r'''មិថុនា''',
r'''កក្កដា''',
r'''សីហា''',
r'''កញ្ញា''',
r'''តុលា''',
r'''វិច្ឆិកា''',
r'''ធ្នូ'''
],
'WEEKDAYS': <dynamic>[
r'''អាទិត្យ''',
r'''ច័ន្ទ''',
r'''អង្គារ''',
r'''ពុធ''',
r'''ព្រហស្បតិ៍''',
r'''សុក្រ''',
r'''សៅរ៍'''
],
'STANDALONEWEEKDAYS': <dynamic>[
r'''អាទិត្យ''',
r'''ច័ន្ទ''',
r'''អង្គារ''',
r'''ពុធ''',
r'''ព្រហស្បតិ៍''',
r'''សុក្រ''',
r'''សៅរ៍'''
],
'SHORTWEEKDAYS': <dynamic>[
r'''អាទិត្យ''',
r'''ច័ន្ទ''',
r'''អង្គារ''',
r'''ពុធ''',
r'''ព្រហស្បតិ៍''',
r'''សុក្រ''',
r'''សៅរ៍'''
],
'STANDALONESHORTWEEKDAYS': <dynamic>[
r'''អាទិត្យ''',
r'''ច័ន្ទ''',
r'''អង្គារ''',
r'''ពុធ''',
r'''ព្រហស្បតិ៍''',
r'''សុក្រ''',
r'''សៅរ៍'''
],
'NARROWWEEKDAYS': <dynamic>[
r'''អ''',
r'''ច''',
r'''អ''',
r'''ព''',
r'''ព''',
r'''ស''',
r'''ស'''
],
'STANDALONENARROWWEEKDAYS': <dynamic>[
r'''អ''',
r'''ច''',
r'''អ''',
r'''ព''',
r'''ព''',
r'''ស''',
r'''ស'''
],
'SHORTQUARTERS': <dynamic>[
r'''ត្រីមាសទី 1''',
r'''ត្រីមាសទី 2''',
r'''ត្រីមាសទី 3''',
r'''ត្រីមាសទី 4'''
],
'QUARTERS': <dynamic>[
r'''ត្រីមាសទី 1''',
r'''ត្រីមាសទី 2''',
r'''ត្រីមាសទី 3''',
r'''ត្រីមាសទី 4'''
],
'AMPMS': <dynamic>[r'''AM''', r'''PM'''],
'DATEFORMATS': <dynamic>[
r'''EEEE d MMMM y''',
r'''d MMMM y''',
r'''d MMM y''',
r'''d/M/yy'''
],
'TIMEFORMATS': <dynamic>[
r'''h:mm:ss a zzzz''',
r'''h:mm:ss a z''',
r'''h:mm:ss a''',
r'''h:mm a'''
],
'AVAILABLEFORMATS': null,
'FIRSTDAYOFWEEK': 6,
'WEEKENDRANGE': <dynamic>[5, 6],
'FIRSTWEEKCUTOFFDAY': 5,
'DATETIMEFORMATS': <dynamic>[
r'''{1} នៅ​ម៉ោង {0}''',
r'''{1} នៅ​ម៉ោង {0}''',
r'''{1}, {0}''',
r'''{1}, {0}'''
],
},
'ko': <String, dynamic>{
'NAME': r'''ko''',
'ERAS': <dynamic>[r'''BC''', r'''AD'''],
......@@ -12260,6 +12438,52 @@ const Map<String, Map<String, String>> datePatterns =
'zzzz': r'''zzzz''',
'ZZZZ': r'''ZZZZ''',
},
'km': <String, String>{
'd': r'''d''',
'E': r'''ccc''',
'EEEE': r'''cccc''',
'LLL': r'''LLL''',
'LLLL': r'''LLLL''',
'M': r'''L''',
'Md': r'''d/M''',
'MEd': r'''EEE d/M''',
'MMM': r'''LLL''',
'MMMd': r'''d MMM''',
'MMMEd': r'''EEE d MMM''',
'MMMM': r'''LLLL''',
'MMMMd': r'''MMMM d''',
'MMMMEEEEd': r'''EEEE d MMMM''',
'QQQ': r'''QQQ''',
'QQQQ': r'''QQQQ''',
'y': r'''y''',
'yM': r'''M/y''',
'yMd': r'''d/M/y''',
'yMEd': r'''EEE d/M/y''',
'yMMM': r'''MMM y''',
'yMMMd': r'''d MMM y''',
'yMMMEd': r'''EEE d MMM y''',
'yMMMM': r'''MMMM y''',
'yMMMMd': r'''d MMMM y''',
'yMMMMEEEEd': r'''EEEE d MMMM y''',
'yQQQ': r'''QQQ y''',
'yQQQQ': r'''QQQQ y''',
'H': r'''HH''',
'Hm': r'''HH:mm''',
'Hms': r'''HH:mm:ss''',
'j': r'''h a''',
'jm': r'''h:mm a''',
'jms': r'''h:mm:ss a''',
'jmv': r'''h:mm a v''',
'jmz': r'''h:mm a z''',
'jz': r'''h a z''',
'm': r'''m''',
'ms': r'''mm:ss''',
's': r'''s''',
'v': r'''v''',
'z': r'''z''',
'zzzz': r'''zzzz''',
'ZZZZ': r'''ZZZZ''',
},
'ko': <String, String>{
'd': r'''d일''',
'E': r'''ccc''',
......
......@@ -6627,6 +6627,207 @@ class MaterialLocalizationJa extends GlobalMaterialLocalizations {
String get viewLicensesButtonLabel => r'ライセンスを表示';
}
/// The translations for Khmer Central Khmer (`km`).
class MaterialLocalizationKm extends GlobalMaterialLocalizations {
/// Create an instance of the translation bundle for Khmer Central Khmer.
///
/// For details on the meaning of the arguments, see [GlobalMaterialLocalizations].
const MaterialLocalizationKm({
String localeName = 'km',
@required intl.DateFormat fullYearFormat,
@required intl.DateFormat mediumDateFormat,
@required intl.DateFormat longDateFormat,
@required intl.DateFormat yearMonthFormat,
@required intl.NumberFormat decimalFormat,
@required intl.NumberFormat twoDigitZeroPaddedFormat,
}) : super(
localeName: localeName,
fullYearFormat: fullYearFormat,
mediumDateFormat: mediumDateFormat,
longDateFormat: longDateFormat,
yearMonthFormat: yearMonthFormat,
decimalFormat: decimalFormat,
twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat,
);
@override
String get aboutListTileTitleRaw => r'អំពី $applicationName';
@override
String get alertDialogLabel => r'ការជូនដំណឹង';
@override
String get anteMeridiemAbbreviation => r'AM';
@override
String get backButtonTooltip => r'ថយក្រោយ';
@override
String get cancelButtonLabel => r'បោះបង់';
@override
String get closeButtonLabel => r'បិទ';
@override
String get closeButtonTooltip => r'បិទ';
@override
String get collapsedIconTapHint => r'TBD';
@override
String get continueButtonLabel => r'បន្ត';
@override
String get copyButtonLabel => r'ចម្លង';
@override
String get cutButtonLabel => r'កាត់';
@override
String get deleteButtonTooltip => r'យកចេញ';
@override
String get dialogLabel => r'ប្រអប់';
@override
String get drawerLabel => r'ម៉ឺនុយរុករក';
@override
String get expandedIconTapHint => r'TBD';
@override
String get hideAccountsLabel => r'លាក់គណនី';
@override
String get licensesPageTitle => r'អាជ្ញាប័ណ្ណ';
@override
String get modalBarrierDismissLabel => r'បិទ';
@override
String get nextMonthTooltip => r'ខែក្រោយ';
@override
String get nextPageTooltip => r'ទំព័របន្ទាប់';
@override
String get okButtonLabel => r'យល់ព្រម';
@override
String get openAppDrawerTooltip => r'បើកម៉ឺនុយរុករក';
@override
String get pageRowsInfoTitleRaw => r'$firstRow-$lastRow ពី $rowCount';
@override
String get pageRowsInfoTitleApproximateRaw => r'$firstRow–$lastRow ពីប្រហែល $rowCount';
@override
String get pasteButtonLabel => r'ដាក់';
@override
String get popupMenuLabel => r'ម៉ឺនុយលេចឡើង';
@override
String get postMeridiemAbbreviation => r'PM';
@override
String get previousMonthTooltip => r'កាលពីខែមុន';
@override
String get previousPageTooltip => r'ទំព័រមុន';
@override
String get remainingTextFieldCharacterCountFew => null;
@override
String get remainingTextFieldCharacterCountMany => null;
@override
String get remainingTextFieldCharacterCountOne => r'TBD';
@override
String get remainingTextFieldCharacterCountOther => r'TBD';
@override
String get remainingTextFieldCharacterCountTwo => null;
@override
String get remainingTextFieldCharacterCountZero => r'TBD';
@override
String get reorderItemDown => r'TBD';
@override
String get reorderItemLeft => r'TBD';
@override
String get reorderItemRight => r'TBD';
@override
String get reorderItemToEnd => r'TBD';
@override
String get reorderItemToStart => r'TBD';
@override
String get reorderItemUp => r'TBD';
@override
String get rowsPerPageTitle => r'ជួរមុខ:';
@override
String get scriptCategory => r'dense';
@override
String get searchFieldLabel => r'ស្វែងរក';
@override
String get selectAllButtonLabel => r'ជ្រើសទាំងអស់';
@override
String get selectedRowCountTitleFew => null;
@override
String get selectedRowCountTitleMany => null;
@override
String get selectedRowCountTitleOne => r'បានជ្រើស 1 ធាតុ';
@override
String get selectedRowCountTitleOther => r'បានជ្រើស $selectedRowCount ធាតុ';
@override
String get selectedRowCountTitleTwo => null;
@override
String get selectedRowCountTitleZero => null;
@override
String get showAccountsLabel => r'បង្ហាញគណនី';
@override
String get showMenuTooltip => r'បង្ហាញម៉ឺនុយ';
@override
String get signedInLabel => r'ចូល';
@override
String get tabLabelRaw => r'ថេប $tabIndex ពី $tabCount';
@override
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.h_colon_mm_space_a;
@override
String get timePickerHourModeAnnouncement => r'ជ្រើសរើសមួយម៉ោង';
@override
String get timePickerMinuteModeAnnouncement => r'ជ្រើសនាទី';
@override
String get viewLicensesButtonLabel => r'មើលអាជ្ញាប័ណ្ណ';
}
/// The translations for Korean (`ko`).
class MaterialLocalizationKo extends GlobalMaterialLocalizations {
/// Create an instance of the translation bundle for Korean.
......@@ -11663,6 +11864,7 @@ final Set<String> kSupportedLanguages = HashSet<String>.from(const <String>[
'id', // Indonesian
'it', // Italian
'ja', // Japanese
'km', // Khmer Central Khmer
'ko', // Korean
'lt', // Lithuanian
'lv', // Latvian
......@@ -11720,6 +11922,7 @@ final Set<String> kSupportedLanguages = HashSet<String>.from(const <String>[
/// * `id` - Indonesian
/// * `it` - Italian
/// * `ja` - Japanese
/// * `km` - Khmer Central Khmer
/// * `ko` - Korean
/// * `lt` - Lithuanian
/// * `lv` - Latvian
......@@ -11872,6 +12075,8 @@ GlobalMaterialLocalizations getTranslation(
return MaterialLocalizationIt(fullYearFormat: fullYearFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat);
case 'ja':
return MaterialLocalizationJa(fullYearFormat: fullYearFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat);
case 'km':
return MaterialLocalizationKm(fullYearFormat: fullYearFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat);
case 'ko':
return MaterialLocalizationKo(fullYearFormat: fullYearFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat);
case 'lt':
......
{
"scriptCategory": "dense",
"timeOfDayFormat": "h:mm a",
"openAppDrawerTooltip": "បើកម៉ឺនុយរុករក",
"backButtonTooltip": "ថយក្រោយ",
"closeButtonTooltip": "បិទ",
"deleteButtonTooltip": "យកចេញ",
"nextMonthTooltip": "ខែក្រោយ",
"previousMonthTooltip": "កាលពីខែមុន",
"nextPageTooltip": "ទំព័របន្ទាប់",
"previousPageTooltip": "ទំព័រមុន",
"showMenuTooltip": "បង្ហាញម៉ឺនុយ",
"aboutListTileTitle": "អំពី $applicationName",
"licensesPageTitle": "អាជ្ញាប័ណ្ណ",
"pageRowsInfoTitle": "$firstRow-$lastRow ពី $rowCount",
"pageRowsInfoTitleApproximate": "$firstRow–$lastRow ពីប្រហែល $rowCount",
"rowsPerPageTitle": "ជួរមុខ:",
"tabLabel": "ថេប $tabIndex ពី $tabCount",
"selectedRowCountTitleOne": "បានជ្រើស 1 ធាតុ",
"selectedRowCountTitleOther": "បានជ្រើស $selectedRowCount ធាតុ",
"cancelButtonLabel": "បោះបង់",
"closeButtonLabel": "បិទ",
"continueButtonLabel": "បន្ត",
"copyButtonLabel": "ចម្លង",
"cutButtonLabel": "កាត់",
"okButtonLabel": "យល់ព្រម",
"pasteButtonLabel": "ដាក់",
"selectAllButtonLabel": "ជ្រើសទាំងអស់",
"viewLicensesButtonLabel": "មើលអាជ្ញាប័ណ្ណ",
"anteMeridiemAbbreviation": "AM",
"postMeridiemAbbreviation": "PM",
"timePickerHourModeAnnouncement": "ជ្រើសរើសមួយម៉ោង",
"timePickerMinuteModeAnnouncement": "ជ្រើសនាទី",
"signedInLabel": "ចូល",
"hideAccountsLabel": "លាក់គណនី",
"showAccountsLabel": "បង្ហាញគណនី",
"modalBarrierDismissLabel": "បិទ",
"drawerLabel": "ម៉ឺនុយរុករក",
"popupMenuLabel": "ម៉ឺនុយលេចឡើង",
"dialogLabel": "ប្រអប់",
"alertDialogLabel": "ការជូនដំណឹង",
"searchFieldLabel": "ស្វែងរក",
"reorderItemToStart": "TBD",
"reorderItemToEnd": "TBD",
"reorderItemUp": "TBD",
"reorderItemDown": "TBD",
"reorderItemLeft": "TBD",
"reorderItemRight": "TBD",
"expandedIconTapHint": "TBD",
"collapsedIconTapHint": "TBD",
"remainingTextFieldCharacterCountZero": "TBD",
"remainingTextFieldCharacterCountOne": "TBD",
"remainingTextFieldCharacterCountOther": "TBD"
}
......@@ -116,6 +116,19 @@ void main() {
expect(localizations.selectedRowCountTitle(10000), '10.000 de articole selectate');
expect(localizations.selectedRowCountTitle(10019), '10.019 articole selectate');
expect(localizations.selectedRowCountTitle(123456789), '123.456.789 de articole selectate');
localizations = await GlobalMaterialLocalizations.delegate.load(const Locale('km', ''));
expect(localizations.selectedRowCountTitle(0), 'បានជ្រើស 0 ធាតុ');
expect(localizations.selectedRowCountTitle(1), 'បានជ្រើស 1 ធាតុ');
expect(localizations.selectedRowCountTitle(2), 'បានជ្រើស 2 ធាតុ');
expect(localizations.selectedRowCountTitle(3), 'បានជ្រើស 3 ធាតុ');
expect(localizations.selectedRowCountTitle(5), 'បានជ្រើស 5 ធាតុ');
expect(localizations.selectedRowCountTitle(10), 'បានជ្រើស 10 ធាតុ');
expect(localizations.selectedRowCountTitle(15), 'បានជ្រើស 15 ធាតុ');
expect(localizations.selectedRowCountTitle(29), 'បានជ្រើស 29 ធាតុ');
expect(localizations.selectedRowCountTitle(10000), 'បានជ្រើស 10.000 ធាតុ');
expect(localizations.selectedRowCountTitle(10019), 'បានជ្រើស 10.019 ធាតុ');
expect(localizations.selectedRowCountTitle(123456789), 'បានជ្រើស 123.456.789 ធាតុ');
});
testWidgets('spot check formatMediumDate(), formatFullDate() translations', (WidgetTester tester) async {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment