localizationsForLocale method

ClerkSdkLocalizations localizationsForLocale(
  1. Locale locale
)

Retrieves the localization for the specified local falling back to the fallbackLocalization

Implementation

ClerkSdkLocalizations localizationsForLocale(Locale locale) {
  return localizations[locale.toLanguageTag()] ?? // full tag e.g. en-GB
      localizations[locale.languageCode] ?? // just the language e.g. en
      fallbackLocalization;
}