NmL10n class abstract final

Access to the library's own UI strings.

Works for every app locale: languages the library does not translate fall back to English, and so do individual untranslated strings.

Properties

hashCode → int
The hash code for this object.
no setterinherited
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 Properties

supportedLocales → List<Locale>
Locales with a library translation: the 5 must locales first, then the extra languages built in or registered by nativemind_translations (NmLocaleRegistry).
no setter

Static Methods

of(BuildContext context) → NmLocalizations
Strings for the nearest locale. Falls back to English when the app did not register delegate.

Constants

delegate → const LocalizationsDelegate<NmLocalizations>
Delegate that accepts any locale (unsupported ones load English).
mustLocales → const List<Locale>
English, Russian, Thai, Hindi, Simplified Chinese.