utils/locales library

Properties

kFilteredLocales List<Locale>
Filters kLocales to include only the first occurrence of each language code. This prevents duplicate language entries across different countries.
final
kLocales Iterable<Locale>
List of all locales generated from country-language mapping. Each entry uses the language code from the mapping and the country code as the locale's country.
final

Functions

isRtlLocale(String languageCode) bool
Checks if a given language code is an RTL (Right-To-Left) language.