NamespaceFileTranslationLoader class
Loads translations from separate files
- Inheritance
-
- Object
- TranslationLoader
- FileTranslationLoader
- NamespaceFileTranslationLoader
Constructors
Properties
- assetBundle ↔ AssetBundle
-
getter/setter pairoverride
- basePath → String
-
finalinherited
-
decodeStrategies
← List<
BaseDecodeStrategy> ? -
no getterinherited
- fallbackDir → String
-
final
- fallbackFile → String?
-
finalinherited
- forcedLocale ← Locale?
-
Used to force the locale to load
no getterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- locale ↔ Locale?
-
Currently locale used by the library
getter/setter pairinherited
-
namespaces
→ List<
String> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- separator → String
-
finalinherited
- useCountryCode → bool
-
finalinherited
- useScriptCode → bool
-
finalinherited
Methods
-
composeFileName(
) → String -
Compose the file name using the format languageCode_countryCode
inherited
-
findDeviceLocale(
) → Future< Locale> -
Return the device current locale
inherited
-
load(
) → Future< Map> -
Return the translation Map for the namespace
override
-
loadFile(
String fileName) → Future< Map> -
Load the fileName using one of the strategies provided
inherited
-
loadString(
String fileName, String extension) → Future< String> -
Load the file using the AssetBundle rootBundle
inherited
-
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