ARBTranslator class abstract
Public API for translation of ARB file
Constructors
- ARBTranslator.new({required AbstractTranslationService translationSvc, required ARBContent arb, required LanguageCode sourceLanguage, required Logger logger})
-
translationSvc
- API service which will be used for translation of itemsarb
- the file content which should be translatedsourceLanguage
- the language ofarb
- ARBTranslator.create({required AbstractTranslationService translationSvc, required ARBContent arb, required LanguageCode sourceLanguage, required Logger logger})
-
translationSvc
- API service which will be used for translation of itemsarb
- the file content which should be translatedsourceLanguage
- the language ofarb
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 translationoptions
- a set of flags/keys which customize translation of given file
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited