itomo_locale_l10n 0.1.6 copy "itomo_locale_l10n: ^0.1.6" to clipboard
itomo_locale_l10n: ^0.1.6 copied to clipboard

Localized translations (CLDR-derived) for itomo_locale_core entities — country names, currency names, language names, timezone labels.

itomo_locale_l10n #

CLDR-derived translations for itomo_locale_core entities.

Release status #

GitHub-only for now (not published to pub.dev yet).

Install #

dependencies:
  itomo_locale_l10n:
    path: ../itomo_locale/packages/dart-l10n
import 'package:itomo_locale_core/itomo_locale_core.dart';
import 'package:itomo_locale_l10n/itomo_locale_l10n.dart';

void main() {
  final vn = WorldCountry.fromCca2('VN');
  print(vn.l10n('vi').common); // Việt Nam
  print(vn.l10n('en').common); // Vietnam
}

API #

Translation lifecycle #

  • loadTranslation(locale)
  • isLocaleSupported(locale)
  • getSupportedTranslationLocales()

Entity extensions #

  • WorldCountry.l10n(locale) -> LocalizedName
  • FiatCurrency.l10n(locale) -> String
  • NaturalLanguage.l10n(locale) -> String
  • IanaTimezone.l10n(locale) -> String

Name helpers #

  • getCurrencyName(alpha3, locale)
  • getCurrencySymbol(alpha3, [locale])
  • getLanguageName(iso6393, locale)
  • getTimezoneName(tzId, locale)

Localized lists #

  • getAllCountriesLocalized(locale)
  • getAllCurrenciesLocalized(locale)
  • getAllLanguagesLocalized(locale)
  • getAllTimezonesLocalized(locale)
  • searchCountriesLocalized(query, locale)

License #

MIT © iTomo Vietnam

0
likes
160
points
0
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Localized translations (CLDR-derived) for itomo_locale_core entities — country names, currency names, language names, timezone labels.

Homepage
Repository (GitHub)
View/report issues

Topics

#i18n #l10n #cldr #locale #translation

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

itomo_locale_core

More

Packages that depend on itomo_locale_l10n