google / arb-editor

A VS Code extension to help with .arb files used for translation messages in software.
https://marketplace.visualstudio.com/items?itemName=Google.arb-editor
Apache License 2.0
52 stars 7 forks source link

Escaping syntax not working #39

Closed johanjk closed 1 year ago

johanjk commented 1 year ago

Expected Behavior

Escaping syntax as described in the docs should be supported.

Steps to Reproduce the Problem

{
  "helloWorld": "Hello! '{Isn''t}' this a wonderful day?"
}

Gives: Error: Unbalanced right delimiter found in string

Or:

{
  "helloWorld": "Hello!' {Isn''t}' this a wonderful day?"
}

Gives "{Isn''t}" is not a valid placeholder name.

mosuem commented 1 year ago

Thanks for filing this! The ICU MessageFormat syntax also specifies the escaping behavior.