feat: add multilingual interface support
This commit is contained in:
@@ -70,3 +70,15 @@ base map are changed. An open parcel or building information dialog is included
|
||||
too. Copy the URL to share that exact state; opening it restores the same map
|
||||
view and selected feature. Invalid or incomplete map parameters fall back to
|
||||
the normal default view.
|
||||
|
||||
## Translations
|
||||
|
||||
The interface selects English, Spanish, or Portuguese from the browser
|
||||
preference on the first visit and remembers subsequent changes made in
|
||||
Settings. Unsupported languages and missing messages fall back to English.
|
||||
|
||||
To add another language:
|
||||
|
||||
1. Add a dictionary with the same keys to `TRANSLATIONS` in `i18n.js`.
|
||||
2. Translate every value, including accessibility labels and status messages.
|
||||
3. Run `npm test` to verify that the dictionary is complete.
|
||||
|
||||
Reference in New Issue
Block a user