Skip to content

Commit db15626

Browse files
author
Zibi Braniecki
committed
Improve README for fluent-langneg
1 parent 28a0cb9 commit db15626

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

fluent-langneg/README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
Project Fluent, a localization framework designed to unleash
55
the expressive power of the natural language.
66

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+
712
## Installation
813

914
`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.
8489
An example of that scenario is when the user requests `en` locale, and
8590
the application supportes `en-GB` and `en-US`.
8691

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-
9892
## Learn more
9993

10094
Find out more about Project Fluent at [projectfluent.org][], including
@@ -104,3 +98,4 @@ implementations, and information about how to get involved.
10498

10599
[projectfluent.org]: http://projectfluent.org
106100
[FTL]: http://projectfluent.org/fluent/guide/
101+
[Intl.Locale]: https://github.com/tc39/proposal-intl-locale

0 commit comments

Comments
 (0)