If `navigator.languages` returns `['da', 'en-US', 'en']`, and the Danish
language is not available, the user interface should be in English.
Currently it is shown in Norwegian, because only `'da'` is taken into
account when deciding on the preferred language (and `match` selects
`nb-NO` using the default `'best fit'` algorithm).
While the Norwegian and Danish languages are similar, I would argue that
this is a bug, as `navigator.languages` cleary states that the fallback
language should be English.
Another potential solution would be to pass `{ algorithm: 'lookup' }` to
the `match` function. However, this might break some cases when a
`'best fit'` approach would be appropriate (e.g. Swiss German falling
back to German).
See https://helvede.net/@jwcph/113497955274343365.
* New translations (Russian)
* New translations (Chinese Simplified)
* Update catalogs.json
* New translations (Chinese Simplified)
* New translations (Portuguese)
* New translations (Portuguese, Brazilian)
* New translations (Finnish)
* New translations (Spanish)
* New translations (Esperanto)
* New translations (Basque)
* New translations (Lithuanian)
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* New translations (Spanish)
* New translations (Basque)
* New translations (Esperanto)
* New translations (Lithuanian)
* New translations (Polish)
* New translations (Italian)
* New translations (Persian)
* New translations (Catalan)
* New translations (Norwegian Bokmal)
* New translations (French)
* New translations (Arabic)
* New translations (Czech)
* New translations (German)
* New translations (Finnish)
* New translations (Hebrew)
* New translations (Japanese)
* New translations (Korean)
* New translations (Dutch)
* New translations (Portuguese)
* New translations (Russian)
* New translations (Ukrainian)
* New translations (Chinese Simplified)
* New translations (Chinese Traditional)
* New translations (Galician)
* New translations (Portuguese, Brazilian)
* New translations (Thai)
* New translations (Occitan)
* New translations (Kabyle)
* Update catalogs.json
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>