getTranslations method
T
getTranslations(
- E locale
Gets the translations of the given locale.
Falls back to the base locale if the given locale is not loaded.
Implementation
T getTranslations(E locale) {
return translationMap[locale] ?? translationMap[utils.baseLocale]!;
}