facebook / Rapid

The OpenStreetMap editor driven by open data, AI, and supercharged features
https://rapideditor.org
ISC License
527 stars 92 forks source link

Change localization on-the-fly #1598

Open bhousel opened 1 month ago

bhousel commented 1 month ago

Being able to change the locale on the fly has been a stretch goal for years. Currently you can only set the locale at startup and it can't change later. This is because historically a lot of our UI components were written in a way that they only work one time (they append themselves to the document).

I've recently updated a bunch of our UI components to be reentrant, meaning they can re-render as needed - this includes relocalizing any text. I'll keep this issue open until it works everywhere.