From b48740bfbbc3a9d0dccee672fbdc7d8a6fab25e1 Mon Sep 17 00:00:00 2001 From: mateusz-bak <32651935+mateusz-bak@users.noreply.github.com> Date: Wed, 17 Apr 2024 21:36:50 +0700 Subject: [PATCH 1/2] refactor: Reordered locales alhabetically by code --- lib/core/constants/locale.dart | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/lib/core/constants/locale.dart b/lib/core/constants/locale.dart index 8d567a6f..dbbe934b 100644 --- a/lib/core/constants/locale.dart +++ b/lib/core/constants/locale.dart @@ -4,28 +4,24 @@ import 'package:openreads/model/app_language.dart'; final supportedLocales = [ AppLanguage('العربية', const Locale('ar', 'SA')), - // AppLanguage('Беларуская мова', const Locale('be', 'BY')), AppLanguage('català', const Locale('ca', 'ES')), AppLanguage('čeština', const Locale('cs', 'CZ')), - AppLanguage('hrvatski', const Locale('hr', 'HR')), - AppLanguage('dansk', const Locale('da', 'DK')), AppLanguage('Deutsch', const Locale('de', 'DE')), - // AppLanguage('ελληνικά', const Locale('el', 'GR')), + AppLanguage('dansk', const Locale('da', 'DK')), AppLanguage('English', const Locale('en', 'US')), AppLanguage('eesti keel', const Locale('et')), AppLanguage('español', const Locale('es', 'ES')), + AppLanguage('suomi', const Locale('fi', 'FI')), AppLanguage('Filipino', const Locale('fil', 'PH')), AppLanguage('français', const Locale('fr', 'FR')), - AppLanguage('suomi', const Locale('fi', 'FI')), AppLanguage('galego', const Locale('gl')), + AppLanguage('hrvatski', const Locale('hr', 'HR')), AppLanguage('हिन्दी', const Locale('hi', 'IN')), - // AppLanguage('magyar', const Locale('hu', 'HU')), - // AppLanguage('Bahasa Indonesia', const Locale('id', 'ID')), AppLanguage('italiano', const Locale('it', 'IT')), AppLanguage('日本語', const Locale('ja', 'JP')), - AppLanguage('ქართული', const Locale('ka', 'GE')), AppLanguage('한국어', const Locale('ko')), - // AppLanguage('lietuvių kalba', const Locale('lt', 'LT')), + AppLanguage('ქართული', const Locale('ka', 'GE')), + AppLanguage('limba română', const Locale('ro', 'RO')), AppLanguage('Nederlands', const Locale('nl', 'NL')), AppLanguage('Norsk', const Locale('no', 'NO')), AppLanguage('ଓଡ଼ିଆ', const Locale('or', 'IN')), @@ -33,10 +29,7 @@ final supportedLocales = [ AppLanguage('polski', const Locale('pl', 'PL')), AppLanguage('português', const Locale('pt', 'PT')), AppLanguage('português brasileiro', const Locale('pt', 'BR')), - AppLanguage('limba română', const Locale('ro', 'RO')), AppLanguage('русский язык', const Locale('ru', 'RU')), - // AppLanguage('slovenčina', const Locale('sk', 'SK')), - // AppLanguage('српски језик', const Locale('sr', 'SP')), AppLanguage('svenska', const Locale('sv', 'SE')), AppLanguage('Türkçe', const Locale('tr', 'TR')), AppLanguage('Українська', const Locale('uk', 'UA')), From e06ef7d6a5af174a78f24a39afc37a0700af53c9 Mon Sep 17 00:00:00 2001 From: mateusz-bak <32651935+mateusz-bak@users.noreply.github.com> Date: Wed, 17 Apr 2024 21:38:49 +0700 Subject: [PATCH 2/2] l10n: Added Malayalam --- assets/translations/ml.json | 1 + lib/core/constants/locale.dart | 1 + 2 files changed, 2 insertions(+) create mode 100644 assets/translations/ml.json diff --git a/assets/translations/ml.json b/assets/translations/ml.json new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/assets/translations/ml.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/lib/core/constants/locale.dart b/lib/core/constants/locale.dart index dbbe934b..ac8bd000 100644 --- a/lib/core/constants/locale.dart +++ b/lib/core/constants/locale.dart @@ -22,6 +22,7 @@ final supportedLocales = [ AppLanguage('한국어', const Locale('ko')), AppLanguage('ქართული', const Locale('ka', 'GE')), AppLanguage('limba română', const Locale('ro', 'RO')), + AppLanguage('മലയാളം', const Locale('ml')), AppLanguage('Nederlands', const Locale('nl', 'NL')), AppLanguage('Norsk', const Locale('no', 'NO')), AppLanguage('ଓଡ଼ିଆ', const Locale('or', 'IN')),