1- # fluent- sequence
1+ # @ fluent/ sequence
22
3- ` fluent- sequence ` provides mapping functions from string identifiers to
3+ ` @ fluent/ sequence` provides mapping functions from string identifiers to
44` FluentBundle ` instances taken from synchronous or asynchronous sequences.
55It's part of Project Fluent, a localization framework designed to unleash the
66expressive power of the natural language.
77
88
99## Installation
1010
11- ` fluent- sequence ` can be used both on the client-side and the server-side.
11+ ` @ fluent/ sequence` can be used both on the client-side and the server-side.
1212You can install it from the npm registry or use it as a standalone script (as
1313the ` FluentSequence ` global).
1414
15- npm install fluent- sequence
15+ npm install @ fluent/ sequence
1616
1717
1818## How to use
@@ -21,7 +21,7 @@ An ordered iterable of `FluentBundle` instances can represent the current
2121negotiated fallback chain of languages. This iterable can be used to find the
2222best existing translation for a given identifier.
2323
24- ` fluent- sequence ` provides two mapping functions: ` mapBundleSync ` , and
24+ ` @ fluent/ sequence` provides two mapping functions: ` mapBundleSync ` , and
2525` mapBundleAsync ` . They can be used to find the first ` FluentBundle ` in the
2626given iterable which contains the translation with the given identifier. If
2727the iterable is ordered according to the result of a language negotiation the
@@ -31,7 +31,7 @@ A simple function which formats translations based on the identifier might
3131be implemented as follows:
3232
3333``` js
34- import {mapBundleSync } from " fluent- sequence" ;
34+ import {mapBundleSync } from " @ fluent/ sequence" ;
3535
3636function formatString (id , args ) {
3737 // contexts is a negotiated iterable of FluentBundle instances.
0 commit comments