EwenDC / root-automated-setup

Automated Advanced Setup for Leder Game's popular board game Root
https://ewendc.github.io/root-automated-setup/
5 stars 4 forks source link

Add language selector #6

Closed EwenDC closed 1 year ago

EwenDC commented 2 years ago

Currently the application infers what translation to use using the i18next browser language detector. Ideally we should let users choose what language to use the app in.

To implement there should be a drop-down added somewhere to the UI that is clearly visible on initial page load but doesn't get in the way as the user scrolls down. A good candidate is probably the toolbar at the bottom of the screen, in the middle of the space between undo/redo and next step. Changing the language should be handled by simply calling changeLanguage() on the i18next object returned from the useTranslation hook.