TablexLocale enum

Locales built into the Tablex package.

To add a new locale:

  1. Create lib/i18n/strings_<lang>.i18n.yaml with all keys translated.
  2. Add a case to TablexLocale and TablexLocale.fromLocale.
  3. Add an implementation class at the bottom of strings.g.dart and wire it into TablexStrings.of.
  4. Run dart run build_runner build to regenerate this file from YAML.
Inheritance
Available extensions

Values

en → const TablexLocale

English (default / fallback)

ar → const TablexLocale

Arabic — عربي

zh → const TablexLocale

Mandarin Chinese — 普通话

hi → const TablexLocale

Hindi — हिन्दी

es → const TablexLocale

Spanish — Español

fr → const TablexLocale

French — Français

bn → const TablexLocale

Bengali — বাংলা

pt → const TablexLocale

Portuguese — Português

ru → const TablexLocale

Russian — Русский

ur → const TablexLocale

Urdu — اردو

id → const TablexLocale

Indonesian — Bahasa Indonesia

de → const TablexLocale

German — Deutsch

ja → const TablexLocale

Japanese — 日本語

ha → const TablexLocale

Hausa — Hausa (widely spoken in Nigeria and West Africa)

vi → const TablexLocale

Vietnamese — Tiếng Việt

it → const TablexLocale

Italian — Italiano

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromLocale(Locale locale) TablexLocale
Maps a Flutter Locale to the closest supported TablexLocale. Falls back to TablexLocale.en for any unsupported language code.

Constants

values → const List<TablexLocale>
A constant List of the values in this enum, in order of their declaration.