getTranslations method

T getTranslations(
  1. 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]!;
}