ARBTranslationApplier constructor

ARBTranslationApplier({
  1. required ARBContent original,
  2. required LanguageCode originalLocale,
  3. required List<LanguageCode> translationTargets,
  4. required Map<LanguageCode, ARBContentTranslated> translations,
  5. required Map<LanguageCode, ARBContent?> originals,
  6. 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();