TGLocalization class

Localization for each locale loads values from json file.

Constructors

TGLocalization(Locale? locale)

Properties

hashCode int
The hash code for this object.
no setterinherited
locale Locale?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load() Future<bool>
Load Json File name based on Language Code and Country Code. Example: "{languageCode}_{countryCode}.json" > "en_us.json"
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareLocaleCustomPath() String
text(String key) String
Text related to localised key. In case of entry won't found, will return back key as text.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

LOCALE_PATH → const String