NMF-earth / nmf-app

Understand and reduce your carbon footprint 🌱 iOS & Android.
https://nmf.earth
GNU General Public License v3.0
496 stars 156 forks source link

Changing language when app is mounted 🌐 #249

Open PierreBresson opened 3 years ago

PierreBresson commented 3 years ago

Mechanism to switch language when the app is open. Screen & translation of dates has already be done in #289)

Missing :

*depending on what's possible, of course it would be even better if it's instantaneous/transparent for the user

Simulator Screen Shot - iPhone 12 - 2021-08-30 at 23 14 35

hb2708 commented 2 years ago

hey, @PierreBresson I will take a look at this.

hb2708 commented 2 years ago

@PierreBresson I found a way to make it work but for that will need to set i18n.locale after the language is updated.

I am not able to find best way to do that but pushing a commit so you can take a look

hb2708 commented 2 years ago

This is what i am trying https://github.com/NMF-earth/nmf-app/pull/343 but it's not very smooth mainly the add Emission -> Main category list does not show localized text.