Commit 363768e
committed
i18n lang detection: remove language variant from detected langs
If the browser reports en-US as the preferred language that was
previously disregarded since it doesn't match any translations. This fix
strips off the variant, i.e. the part after the dash, so en-US becomes en.
Fixes #941 parent 8f13c69 commit 363768e
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
0 commit comments