feat: add multilingual interface support

This commit is contained in:
2026-07-24 16:00:12 +01:00
parent d2567c59ce
commit 16383c2a3f
10 changed files with 788 additions and 84 deletions
+12
View File
@@ -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.