Merge pull request #1518 from thibaultmol/patch-1

Clarified that ISO 639-1 should be used for the language url parameter
This commit is contained in:
Pieter Vander Vennet 2023-07-27 12:51:30 +02:00 committed by GitHub
commit f8f71e86d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ Finally, the URL-hash is the part after the `#`. It is `node/1234` in this case.
The user display language is determined in the following order:
1. If the user did log in and did set their language before with MapComplete, use this language. This language selection is synchronized accross devices using the openstreetmap.org user preferences.
2. Use the language as set by the URL-parameter `language`. This will _disable_ saving the language to localStorage in case a non-logged-in user changes their language
2. Use the language as set by the URL-parameter `language` (following ISO 639-1 | ex. `language=nl`). This will _disable_ saving the language to localStorage in case a non-logged-in user changes their language
3. If the user visited MapComplete before and did change their language manually, this changed language will be saved in local storage. Use the language from local storage
4. Use the navigator-language (if available)
5. Use English