ARBTranslationApplier constructor
ARBTranslationApplier({
- 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 source
originalLocale - LanguageCode which was sourceLanguage of translation
translationTargets - list of languages to which original was translated
translations - map with LanguageCode as key and ArbContentTranslated
as value
originals - map of original ARB files of translations if they exist
Implementation
ARBTranslationApplier({
required this.original,
required this.originalLocale,
required this.translationTargets,
required this.translations,
required this.originals,
required this.logger,
}) : _itemsCount = original.items.length,
_resultItems =
translationTargets.map((x) => MapEntry(x, <ARBItem>[])).toMap(),
_visitedKeys =
translationTargets.map((x) => MapEntry(x, <ARBItemKey>[])).toMap();