TranslationTemplate class

Catalog that stores all message templates.

Implementers

Constructors

TranslationTemplate(String projectName, {String locale})

Properties

defaultLocale String
final
hashCode int
The hash code for this object. [...]
read-only, inherited
lastModified DateTime
read / write
messages Map<String, MainMessage>
final
originalMessage Map<String, List<MainMessage>>
@visibleForTesting, read / write
projectName String
Project name for the translation project The name of translation files will need to follow the following pattern {projectName}_{locale}.{format} eg: intl_en.arb [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addTemplateMessages(List<ReadableFile> dartFiles, {ExtractConfig config}) Future
Extract template messages from Intl classes inside dart files
generateTemplate(TranslationFormat<FileData> format) List<FileData>
Generate a translation template file in the desired format
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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