Recent commit #40 changes default behaviour of ARB string parser to no longer accept
"zzTestString":"Testing a string's apostrophe capability",
The above test string fail with Error: Unbalanced escape quotes. To escape a single quote ', prefix it with another single quote.
however, adding a two-quote like "zzTestStringDouble":"Testing a string''s apostrophe capability",
generates incorrect Dart string if a single-apostrophe is desired as flutters gen-l10n setting use-escape
defaults to false. With a use-escape: false
there now is no way to have arb-editor plugin accept the above zzTestString. The gen-l10n tool works fine and outputs correct single-apostrophe string for the zzTestString string.
To fix this, I have a few options:
- Add
use-escaping: true
setting and two-quote everywhere in my ARB file
- Switch all strings to begin with single-quote, then escape apostrophe where found.
Neither is ideal imho. I believe out-of-box should not mark this test string as erroneous.