@@ -43,12 +43,6 @@ function GetOption(options, property, type, values, fallback) {
43
43
* a string with BCP47 locale ID to be used
44
44
* as a last resort locale.
45
45
*
46
- * likelySubtags:
47
- * a key-value map of locale keys to their most expanded variants.
48
- * For example:
49
- * 'en' -> 'en-Latn-US',
50
- * 'ru' -> 'ru-Cyrl-RU',
51
- *
52
46
*
53
47
* It returns an Array of strings with BCP47 locale IDs sorted according to the
54
48
* user preferences.
@@ -76,8 +70,6 @@ export default function negotiateLanguages(
76
70
) {
77
71
78
72
const defaultLocale = GetOption ( options , 'defaultLocale' , 'string' ) ;
79
- const likelySubtags = GetOption (
80
- options , 'likelySubtags' , 'object' , undefined ) ;
81
73
const strategy = GetOption ( options , 'strategy' , 'string' ,
82
74
[ 'filtering' , 'matching' , 'lookup' ] , 'filtering' ) ;
83
75
@@ -94,7 +86,7 @@ export default function negotiateLanguages(
94
86
95
87
const supportedLocales = filterMatches (
96
88
resolvedReqLoc ,
97
- resolvedAvailLoc , strategy , likelySubtags
89
+ resolvedAvailLoc , strategy
98
90
) ;
99
91
100
92
if ( strategy === 'lookup' ) {
0 commit comments