strongloop / strong-globalize

strong-globalize is built on Unicode CLDR and jquery/globalize and implements automatic extraction of strings from JS source code and HTML templates, lint the string resource, machine-translate them in seconds. In runtime, it loads locale and string resource into memory and provides a hook to persistent logging.
Other
25 stars 16 forks source link

slt-globalize has problems with the spread (...) operator #174

Closed emonddr closed 3 years ago

emonddr commented 3 years ago

The CLI uses the esprima parser which only supports up to ecma version 2017.

The spread operator , ..., was introduced after 2017.

We need to upgrade to a new parser to be able to parse JS files using the latest language features.

emonddr commented 3 years ago

The espree parser is a great alternative

dhmlau commented 3 years ago

@emonddr, the PR #173 has landed. Is this issue good to close?

emonddr commented 3 years ago

@raymondfeng also landed https://github.com/strongloop/strong-globalize/pull/177 to use the babel parser with espree plugin instead of pure espree parser.