You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.
Hi. The library does not appear to correctly parse a yaml file with the following keys, specifically where there is a %{count} variable together with additional variables, %{model} in this case:
header:
one: 1 error prohibited this %{model} from being savedother: "%{count} errors prohibited this %{model} from being saved"
ERROR in ./config/locales/en.yml
Module build failed: SyntaxError: Expected "#", "'", "'#", "''", "'{", "'}", "{", [^{}#\0-\x08\x0E-\x1F\x7F], or end of input but "}" found.
at peg$buildStructuredError (/Users/ivan/coding/work/tnc/prisma/node_modules/messageformat-parser/parser.js:368:12)
at peg$parse (/Users/ivan/coding/work/tnc/prisma/node_modules/messageformat-parser/parser.js:1605:11)
at Compiler.compile (/Users/ivan/coding/work/tnc/prisma/node_modules/messageformat/lib/compiler.js:157:13)
at Compiler.compile (/Users/ivan/coding/work/tnc/prisma/node_modules/messageformat/lib/compiler.js:163:26)
at Compiler.compile (/Users/ivan/coding/work/tnc/prisma/node_modules/messageformat/lib/compiler.js:163:26)
at Compiler.compile (/Users/ivan/coding/work/tnc/prisma/node_modules/messageformat/lib/compiler.js:163:26)
at Compiler.compile (/Users/ivan/coding/work/tnc/prisma/node_modules/messageformat/lib/compiler.js:163:26)
at MessageFormat.compile (/Users/ivan/coding/work/tnc/prisma/node_modules/messageformat/lib/messageformat.js:333:22)
at Object.module.exports (/Users/ivan/coding/work/tnc/prisma/node_modules/messageformat-yaml-loader/index.js:19:13)
That was a bit embarrassing; the common suffix was getting reversed. Should be fixed now in the 0.2.0 release I just published. Also switched from js-yaml to yaml.
Hi. The library does not appear to correctly parse a yaml file with the following keys, specifically where there is a
%{count}
variable together with additional variables,%{model}
in this case:The resulting object has the following keys:
Removing the
%{model}
variable or renaming theother
key to something different does remove the parse error.The text was updated successfully, but these errors were encountered: