0.1.6 • Published 2 years ago
@inlang/fluent-syntax-converters v0.1.6
@inlang/fluent-syntax-converters
Parse and serialize file formats to and from Fluent.
Supported Converters (Formats)
Goto ./src/converters
Missing a converter (format)? Make a pull request, or open a feature request here.
Writing Converters
"It's simple". Only two functions are required parse
and serialize
. How they are implemented does not matter. We found Peggy.js useful to at least create a serialization grammar. A gentle introduction can be found here.
Tips for PEG(GY.js) parsing
- use the online playground https://peggyjs.org/online
- copy & paste the grammer from/into the playground and from/into the converters
grammar
variable - run the unit tests