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 was archived by the owner on Jun 8, 2019. It is now read-only.
This package implements a parser in JavaScript that parses the industry standard [ICU Message strings][ICU] — used for internationalization — into an AST. The produced AST can then be used by a compiler, like [`intl-messageformat`][intl-mf], to produce localized formatted strings for display to users.
15
+
16
+
This parser is written in [PEG.js][], a parser generator for JavaScript. This parser's implementation was inspired by and derived from Alex Sexton's [messageformat.js][] project. The differences from Alex's implementation are:
17
+
18
+
- This project is standalone.
19
+
- It's authored as ES6 modules compiled to CommonJS and the Bundle format for the browser.
20
+
- The produced AST is more descriptive and uses recursive structures.
21
+
- The keywords used in the AST match the ICU Message "spec".
0 commit comments