IntlTranslationHelper class




jsonDecoder ↔ JsonCodec
read / write
messages ↔ Map<String, List<MainMessage>>
Keeps track of all the messages we have processed so far, keyed by message name.
read / write
plainParser Parser
pluralAndGenderParser Parser
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited


aaa(String outputDirectoryPath, String localizationFileName) → void
generateLocaleFile(File file, String targetDir, MessageGeneration generation) → void
Create the file of generated code for a particular locale. We read the ARB data and create BasicTranslatedMessage instances from everything, excluding only the special _locale attribute that we use to indicate the locale. If that attribute is missing, we try to get the locale from the last section of the file name.
recreateIntlObjects(String id, dynamic data) BasicTranslatedMessage
Regenerate the original IntlMessage objects from the given data. For things that are messages, we expect id not to start with "@" and data to be a String. For metadata we expect id to start with "@" and data to be a Map or null. For metadata we return null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() → String
Returns a string representation of this object.


operator ==(dynamic other) → bool
The equality operator.