Skip to content

Commit 9a5034a

Browse files
committed
Fix documentation of langneg.negotiateLanguages, fixing #547
The documentation for `filtering` and `matching` had been swapped in the README.
1 parent b56f6a6 commit 9a5034a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fluent-langneg/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,27 @@ The API supports three negotiation strategies:
3838

3939
### filtering (default)
4040

41-
In this strategy the algorithm will look for the best matching available
42-
locale for each requested locale.
41+
In this strategy the algorithm will try to match as many available locales
42+
as possible for each of the requested locale.
4343

4444
Example:
4545

4646
requested: ['de-DE', 'fr-FR']
4747
available: ['it', 'de', 'en-US', 'fr-CA', 'de-DE', 'fr', 'de-AU']
4848

49-
supported: ['de-DE', 'fr']
49+
supported: ['de-DE', 'de', 'fr', 'fr-CA']
5050

5151
### matching
5252

53-
In this strategy the algorithm will try to match as many available locales
54-
as possible for each of the requested locale.
53+
In this strategy the algorithm will look for the best matching available
54+
locale for each requested locale.
5555

5656
Example:
5757

5858
requested: ['de-DE', 'fr-FR']
5959
available: ['it', 'de', 'en-US', 'fr-CA', 'de-DE', 'fr', 'de-AU']
6060

61-
supported: ['de-DE', 'de', 'fr', 'fr-CA']
61+
supported: ['de-DE', 'fr']
6262

6363
### lookup
6464

0 commit comments

Comments
 (0)