ARBTranslationApplier class
Responsible for applying translated items and building result ARBContent's
Constructors
-
ARBTranslationApplier.new({required ARBContent original, required LanguageCode originalLocale, required List<
LanguageCode> translationTargets, required Map<LanguageCode, ARBContentTranslated> translations, required Map<LanguageCode, ARBContent?> originals, required Logger logger}) -
original
- ARBContent as a translation sourceoriginalLocale
- LanguageCode which was sourceLanguage of translationtranslationTargets
- list of languages to whichoriginal
was translatedtranslations
- map with LanguageCode as key andArbContentTranslated
as valueoriginals
- map of original ARB files oftranslations
if they exist
Properties
- canMoveNext → bool
-
no setter
- currentItem → ARBItem
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
final
- original → ARBContent
-
final
- originalLocale → LanguageCode
-
final
-
originals
→ Map<
LanguageCode, ARBContent?> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
translations
→ Map<
LanguageCode, ARBContentTranslated> -
final
-
translationTargets
→ List<
LanguageCode> -
final
Methods
-
getResults(
) → Map< String, ARBContent> - Builds results of applying/discarding changes in all items
-
moveNext(
) → void - Moves applier to next ARBItem
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processCurrentChange(
TranslationApplying applying) → void - Applies, discards changes to current item
-
readTranslationApplyFromConsole(
) → TranslationApplying - If application is running in interactive mode this method will read and parse selected by user type of applying
-
requestApplyCurrentTranslationConfirmation(
) → void - If application is running in interactive mode this method will print available interactive options
-
stdoutCurrentChange(
) → void - Prints current item changes to console
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited