loadInitialTranslations method
Loads the initial translations for a given locale from the specified translations list.
Implementation
void loadInitialTranslations(Locale locale, Set<String> initialTranslations) {
logger.log(
"Loading initial translations for locale: ${locale.toLanguageTag()}");
for (String name in initialTranslations) {
var translation = supportedLocales
.firstWhere((l) => l.locale == locale)
.translations
.firstWhere((t) => t.name == name);
loadTranslation(translation);
}
}