getTranslation static method

String getTranslation(
  1. String key
)

Implementation

static String getTranslation(String key) {
  Map<String, String>? languageMap = translations[GetLocale.langcode];
  return languageMap != null ? languageMap[key] ?? key : key;
}