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

Ignore ARB String returns null #11

Closed amin79 closed 8 months ago

amin79 commented 8 months ago

Hello. I have this code:

"iban": "IBAN",
  "@iban": {
    "translator": {
      "ignore": true
    }
  },

But it sets"iban": nullto all translated files.

Is it a normal behaviour?

theLee3 commented 8 months ago

No, this bug must have been introduced alongside recent changes. Thanks for bringing it to my attention. Working on a fix now.

theLee3 commented 8 months ago

Fixed in 2.3.1, available now.

amin79 commented 8 months ago

Thank's for your great package and support :)

amin79 commented 8 months ago

Now instead of NULL, it's completely removed. It should be like this or it's another problem?

theLee3 commented 8 months ago

This is the correct behavior. If you choose not to translate a value, it is not added to the translated ARB file. The app will fallback to the default ARB file. So in this case, IBAN will be used for each language.