1- # fluent- syntax
1+ # @ fluent/ syntax
22
3- ` fluent- syntax ` is a parser for Fluent translation files, FTL. Project Fluent
4- is a localization framework designed to unleash the expressive power of the
5- natural language.
3+ ` @ fluent/ syntax` is a parser for Fluent translation files, FTL. Project
4+ Fluent is a localization framework designed to unleash the expressive power
5+ of the natural language.
66
77
88## Installation
99
10- ` fluent- syntax ` can be used both on the client-side and the server-side. You
10+ ` @ fluent/ syntax` can be used both on the client-side and the server-side. You
1111can install it from the npm registry or use it as a standalone script (as the
1212` FluentSyntax ` global).
1313
14- npm install fluent- syntax
14+ npm install @ fluent/ syntax
1515
1616
1717## How to use
1818
1919``` javascript
20- import { parse , Resource } from ' fluent- syntax' ;
20+ import {parse , Resource } from " @ fluent/ syntax" ;
2121
2222const res = parse (`
23- brand-name = Foo 3000
24- welcome = Welcome, { $name }, to { brand-name }!
23+ - brand-name = Foo 3000
24+ welcome = Welcome, {$name}, to {- brand-name}!
2525` );
2626
2727assert (res instanceof Resource);
2828```
2929
3030The API reference is available at
31- http://projectfluent.org/fluent.js/fluent- syntax .
31+ http://projectfluent.org/fluent.js/syntax .
3232
3333
3434## Compatibility
@@ -37,7 +37,7 @@ For legacy browsers, the `compat` build has been transpiled using Babel's [env
3737preset] [ ] :
3838
3939``` javascript
40- import ' fluent- syntax/compat' ;
40+ import " @ fluent/ syntax/compat" ;
4141```
4242
4343
0 commit comments