L10nUtils class
Localization utils.
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 Methods
-
getArbFile(
L10nConfig config, String locale) → String - Returns ARB file name by locale.
-
getArbFileParts(
L10nConfig config) → List< String> - Returns 2 parts of ARB file name.
-
getArbMessagesFile(
L10nConfig config) → String - Returns ARB messages file name.
-
getBaseArbFile(
L10nConfig config) → String - Returns ARB file name for base locale.
-
getDiffsXmlFileName(
String fileName) → String -
getDirPath(
L10nConfig config) → String - Returns path of directory with localization files.
-
getMainArb(
L10nConfig l10nConfig) → Future< File> -
getMainXmlFileName(
L10nConfig config) → String - Returns name for xml file of main project localization.
-
getXmlFilesPath(
L10nConfig config, String locale) → String -
Returns dir path with xml translations files for
locale
.
Constants
- arbMessagesSuffix → const String
- diffsSuffix → const String