theLee3 / flutter_auto_translator

A command-line tool to translate ARB files.
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

Need to ensure translation order when preferring a template that is yet to be translated/updated #3

Closed theLee3 closed 11 months ago

theLee3 commented 11 months ago

Currently crashes because file is not found or will be missing new translations if the target order is not adjusted according to the prefer-lang-templates dependencies from l10n.yaml.

translator:
  targets:
    - es-ES
    - fr
    - ja
    - ko

prefer-lang-templates: {
  'ko': 'ja' <---- PROBLEM (app_ja.arb will be created before app_ko.arb)
}