Multiline strings in Flutter *.arb files

385

I think this is not possible. (Please correct me someone if this is wrong!)

You could add \n to the String resource for line breaks if necessary. And to overcome the "painful scroll" I enabled soft wrap for all *.arb files.

For Android Studio:

  1. Right click on row number inside any file
  2. Configure Soft Wraps
  3. Add ; *.arb to entry "Soft-wrap these files", so my configuration looks like this:
*.md; *.txt; *.rst; *.adoc; *.arb

Compare ApplicationResourceBundleSpecification for more information on ARB specification.

Share:
385
Adam Griffiths
Author by

Adam Griffiths

I work as part of the Alexa Shopping team at Amazon, making shopping easier and more interactive for customers around the globe.

Updated on December 01, 2022

Comments

  • Adam Griffiths
    Adam Griffiths over 1 year

    I am internationalizing my flutter app.

    I have some long paragraphs that need to be internationalised, and in the .arb file it becomes painful to scroll.

    How can I break up the paragraph over multiple lines?