From 1969e6ef68f3dd89a7db26d38056e3959c626c8c Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Tue, 15 Sep 2020 18:14:57 -0400 Subject: [PATCH] Update API documentation for multiple `locale` values (re: #7996) --- API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/API.md b/API.md index eb74cea6d..75fd2892c 100644 --- a/API.md +++ b/API.md @@ -31,8 +31,8 @@ of iD (e.g. `http://preview.ideditor.com/release/`), the following parameters ar _Example:_ `hashtags=%23hotosm-task-592,%23MissingMaps` * __`id`__ - The character 'n', 'w', or 'r', followed by the OSM ID of a node, way or relation, respectively. Selects the specified entity, and, unless a `map` parameter is also provided, centers the map on it.
_Example:_ `id=n1207480649` -* __`locale`__ - A code specifying the localization to use, affecting the language, layout, and keyboard shortcuts. The default locale is set by the browser.
- _Example:_ `locale=en-US`, `locale=de`
+* __`locale`__ - A code specifying the localization to use, affecting the language, layout, and keyboard shortcuts. Multiple codes may be specified in order of preference. The first valid code will be the locale, while the rest will be used as fallbacks if certain text hasn't been translated. The default locale preferences are set by the browser.
+ _Example:_ `locale=ja`, `locale=pt-BR`, `locale=nl,fr,de`
_Available values:_ Any of the [supported locales](https://github.com/openstreetmap/iD/tree/develop/dist/locales). * __`map`__ - A slash-separated `zoom/latitude/longitude`.
_Example:_ `map=20.00/38.90085/-77.02271`