getTranslations static method

Map<String, String> getTranslations(
  1. String locale
)

Returns the full translation map for a given locale code. Falls back to English for unknown locales. Results are cached.

Implementation

static Map<String, String> getTranslations(String locale) {
  return _cache[locale] ??= _loadLocale(locale);
}