2022-08-18 16:41:59 +02:00
|
|
|
import 'dart:ui';
|
|
|
|
|
2024-04-07 04:58:35 +02:00
|
|
|
const Map<String, Locale> locales = {
|
2022-08-18 16:41:59 +02:00
|
|
|
// Default locale
|
2024-04-07 04:58:35 +02:00
|
|
|
'English (en_US)': Locale('en', 'US'),
|
2022-08-18 16:41:59 +02:00
|
|
|
// Additional locales
|
2024-04-07 04:58:35 +02:00
|
|
|
'Arabic (ar_JO)': Locale('ar', 'JO'),
|
|
|
|
'Catalan (ca_CA)': Locale('ca', 'CA'),
|
|
|
|
'Chinese (zh_CN)': Locale('zh', 'CN'),
|
|
|
|
'Chinese Simplified (zh_Hans)': Locale('zh', 'Hans'),
|
|
|
|
'Czech (cs_CZ)': Locale('cs', 'CZ'),
|
|
|
|
'Danish (da_DK)': Locale('da', 'DK'),
|
|
|
|
'Dutch (nl_NL)': Locale('nl', 'NL'),
|
|
|
|
'Finnish (fi_FI)': Locale('fi', 'FI'),
|
|
|
|
'French (fr_CA)': Locale('fr', 'CA'),
|
|
|
|
'French (fr_FR)': Locale('fr', 'FR'),
|
|
|
|
'German (de_DE)': Locale('de', 'DE'),
|
|
|
|
'Greek (el_GR)': Locale('el', 'GR'),
|
|
|
|
'Hebrew (he_IL)': Locale('he', 'IL'),
|
|
|
|
'Hindi (hi_IN)': Locale('hi', 'IN'),
|
|
|
|
'Hungarian (hu_HU)': Locale('hu', 'HU'),
|
|
|
|
'Italian (it_IT)': Locale('it', 'IT'),
|
|
|
|
'Japanese (ja_JP)': Locale('ja', 'JP'),
|
|
|
|
'Korean (ko_KR)': Locale('ko', 'KR'),
|
|
|
|
'Latvian (lv_LV)': Locale('lv', 'LV'),
|
|
|
|
'Lithuanian (lt_LT)': Locale('lt', 'LT'),
|
|
|
|
'Mongolian (mn_MN)': Locale('mn', 'MN'),
|
|
|
|
'Norwegian Bokmål (nb_NO)': Locale('nb', 'NO'),
|
|
|
|
'Polish (pl_PL)': Locale('pl', 'PL'),
|
|
|
|
'Portuguese (pt_PT)': Locale('pt', 'PT'),
|
|
|
|
'Romanian (ro_RO)': Locale('ro', 'RO'),
|
|
|
|
'Russian (ru_RU)': Locale('ru', 'RU'),
|
|
|
|
'Serbian Cyrillic (sr_Cyrl)': Locale('sr', 'Cyrl'),
|
|
|
|
'Serbian Latin (sr_Latn)': Locale('sr', 'Latn'),
|
|
|
|
'Slovak (sk_SK)': Locale('sk', 'SK'),
|
|
|
|
'Slovenian (sl_SI)': Locale('sl', 'SI'),
|
|
|
|
'Spanish (es_ES)': Locale('es', 'ES'),
|
|
|
|
'Spanish (es_MX)': Locale('es', 'MX'),
|
|
|
|
'Spanish (es_PE)': Locale('es', 'PE'),
|
|
|
|
'Spanish (es_US)': Locale('es', 'US'),
|
|
|
|
'Swedish (sv_FI)': Locale('sv', 'FI'),
|
|
|
|
'Swedish (sv_SE)': Locale('sv', 'SE'),
|
|
|
|
'Thai (th_TH)': Locale('th', 'TH'),
|
|
|
|
'Ukrainian (uk_UA)': Locale('uk', 'UA'),
|
|
|
|
'Vietnamese (vi_VN)': Locale('vi', 'VN'),
|
|
|
|
};
|
2022-08-18 16:41:59 +02:00
|
|
|
|
|
|
|
const String translationsPath = 'assets/i18n';
|