bzalar
bzalar

Reputation: 47

Is it possible to define a string in Flutter *.arb file that should not be translatable?

In the Android strings.xml file this can be done using translatable attribute:

<string name="inches" translatable="false">in</string>

I could not find any solution for this for the Flutter localization *.arb files.

Upvotes: 3

Views: 300

Answers (1)

Aleksander Matveev
Aleksander Matveev

Reputation: 1

{
  "just_string": "This is a string to translate",
  "some_key": "This string will not be translated",
  "@some_key": {
    "type": "not_text"
  }
}

Upvotes: 0

Related Questions