hasCustomTranslationsForLocale method

bool hasCustomTranslationsForLocale(
  1. String locale
)

Checks if there are any custom translations for a given locale.

Returns true if custom translations exist for the locale, false otherwise.

Usage:

bool hasCustom = localizations.hasCustomTranslationsForLocale('fr');

Implementation

bool hasCustomTranslationsForLocale(String locale) {
  return _customTranslations.containsKey(locale);
}