v1.3.3+59
All checks were successful
Flutter Schmutter / build (push) Successful in 3m47s

This commit is contained in:
2025-06-17 19:03:40 +02:00
parent 089fe1f8df
commit ee2db04a36
19 changed files with 667 additions and 136 deletions

View File

@@ -15,9 +15,13 @@ class MyTranslations extends Translations {
static Future<void> loadTranslations() async {
final locales = ['en_US', 'de_DE', 'fr_FR', 'nl_NL'];
for (final locale in locales) {
final String jsonString = await rootBundle.loadString('assets/i18n/$locale.json');
final String jsonString = await rootBundle.loadString(
'assets/i18n/$locale.json',
);
final Map<String, dynamic> jsonMap = json.decode(jsonString);
_translations[locale] = jsonMap.map((key, value) => MapEntry(key, value.toString()));
_translations[locale] = jsonMap.map(
(key, value) => MapEntry(key, value.toString()),
);
}
}