Skip to content

Error generating locales with newline in messages #291

Open

Description

@ray007

I'm trying to generate the locale from the json files, some of the messages should be multi-line messages.

No matter which encoding I try to use for the newline (\n, \\n, \\\\n), I always get errors:

error_unexpected Could not format because the source could not be parsed:

line 79, column 54 of .: Unterminated string literal.
   ╷
79 │         'alert_err_prj_connect': 'Cannot connect to project:
   │                                                            ^
   ╵
line 80, column 10 of .: Unterminated string literal.
   ╷
80 │ \n@error',
   │          ^
   ╵

for a line

"alert_err_prj_connect": "Cannot connect to project:\n@error",

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions