ARBTranslator class abstract

Public API for translation of ARB file

Constructors

ARBTranslator({required AbstractTranslationService translationSvc, required ARBContent arb, required LanguageCode sourceLanguage, required Logger logger})
translationSvc - API service which will be used for translation of items arb - the file content which should be translated sourceLanguage - the language of arb
ARBTranslator.create({required AbstractTranslationService translationSvc, required ARBContent arb, required LanguageCode sourceLanguage, required Logger logger})
translationSvc - API service which will be used for translation of items arb - the file content which should be translated sourceLanguage - the language of arb
factory

Properties

arb ARBContent
final
hashCode int
The hash code for this object.
no setterinherited
logger Logger
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceLanguage LanguageCode
final
translationSvc AbstractTranslationService
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
translate({required List<LanguageCode> languages, required Map<LanguageCode, ARBContent?> existFiles, TranslationOptions? options}) Future<Map<LanguageCode, ARBContentTranslated>>
Returns Map of translated ARB to given languages existFiles - map of exist translations (exist entries can be skipped from translation options - a set of flags/keys which customize translation of given file

Operators

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