TranslationCatalog class

Catalog that stores all translation messages

Inheritance

Constructors

TranslationCatalog(String projectName, {String locale})

Properties

defaultLocale String
The default locale
read / write, override-getter
hashCode int
The hash code for this object. [...]
read-only, inherited
lastModified DateTime
read / write, override
locales List<String>
read-only
messages Map<String, MainMessage>
final, inherited
metadata Map<String, String>
read / write
originalMessage Map<String, List<MainMessage>>
@visibleForTesting, read / write, inherited
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 [...]
read / write, override-getter
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
translatedMessages Map<String, List<BasicTranslatedMessage>>
read / write

Methods

addTemplateMessages(List<ReadableFile> dartFiles, {ExtractConfig config}) Future
Extract template messages from Intl classes inside dart files
inherited
addTranslations(List<ReadableFile> files, {TranslationFormat<FileData> format}) Future
generateDartMessages({GenerationConfig config}) List<StringFileData>
generateTemplate(TranslationFormat<FileData> format) List<FileData>
Generate a translation template file in the desired format
inherited
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