File tree 1 file changed +6
-11
lines changed
1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 4
4
Project Fluent, a localization framework designed to unleash
5
5
the expressive power of the natural language.
6
6
7
+ It's main function is to provide functionality around the
8
+ [ Intl.Locale] [ ] API with a focus
9
+ on language negotiation, matching and selection.
10
+
11
+
7
12
## Installation
8
13
9
14
` fluent-langneg ` can be used both on the client-side and the server-side.
@@ -84,17 +89,6 @@ in case the requested locale is too generic.
84
89
An example of that scenario is when the user requests ` en ` locale, and
85
90
the application supportes ` en-GB ` and ` en-US ` .
86
91
87
- Unicode CLDR maintains a complete list of likely subtags that the
88
- user can load into ` fluent-langneg ` to replace the minimal version.
89
-
90
- ``` javascript
91
- let data = require (' cldr-core/supplemental/likelySubtags.json' );
92
-
93
- let supported = negotiateLanguages (requested, available, {
94
- likelySubtags: data .supplemental .likelySubtags
95
- });
96
- ```
97
-
98
92
## Learn more
99
93
100
94
Find out more about Project Fluent at [ projectfluent.org] [ ] , including
@@ -104,3 +98,4 @@ implementations, and information about how to get involved.
104
98
105
99
[ projectfluent.org ] : http://projectfluent.org
106
100
[ FTL ] : http://projectfluent.org/fluent/guide/
101
+ [ Intl.Locale ] : https://github.com/tc39/proposal-intl-locale
You can’t perform that action at this time.
0 commit comments