X Tutup

Flutter

BabelEdit supports Application Resource Bundle Files (.arb) used to translate Flutter applications.

The way Flutter works with the translation files has changed over time.

Older versions of the framework used an extraction tool to create .arb files from source code. BabelEdit up to 2.9.2 supported this behaviour.

This behaviour was inverted with newer versions of Flutter: You now write the .arb file and create the code instead. Which is way simpler than doing it in the other direction.

  • New language files can be created inside BabelEdit
  • Descriptions are now editable via the comments' field in BabelEdit. They are stored in the .arb file of the primary language. Comments in other language files are ignored and will be removed on save!
  • Existing comments from 2.x.x projects are merged with the descriptions from the .arb file.
  • Use the new placeholder editor to edit placeholder data (name, type, description,...)

Translation description and placeholders

ARB file editor: Edit placeholders and descriptions in BabelEdit

Application Resource Bundle files (.arb)

A JSON based file format that also supports meta data for each entry.

{
    "@@last_modified": "2020-01-08T11:39:22.562134",
    "pushCounterText": "You have pushed the button this many times:",
    "@pushCounterText": {
        "description": "A description for the push counter",
        "type": "text",
        "placeholders": {}
    }
}
X Tutup