makerspace / makeradmin

Stockholm Makerspace member administration and store.
https://docs.makeradmin.se/
21 stars 16 forks source link

Add language option for users #310

Open BerglundDaniel opened 1 year ago

BerglundDaniel commented 1 year ago

Add an option for users to select language. Then over time we can add English translations of the pages

HalfVoxel commented 1 year ago

The frontend automatically chooses the language based on the user's browser's preferred language now. However, there are currently no translations to any other language. So everything is still in English or Swedish, somewhat inconsistently. Swedish (or any other language) support can be added by editing the translations.tsx file. And all current hardcoded swedish strings should be defined using the translation system.

BerglundDaniel commented 11 months ago

Stripe customer object has _preferredlocales which might also be useful to update based on the members language

kriffe commented 6 months ago

Perhaps this also needs to adress how the primary language is stored? strings in code vs db or separate files, etc