MoathOthman / MOLH

Localization helper for iOS apps mainly focusing on the LTR/RTL issue
MIT License
117 stars 36 forks source link

how to set language #20

Closed lamatat closed 5 years ago

lamatat commented 6 years ago

i have two buttons arabic and english .. when clicked on arabic i want to change language to arabic and same with english ...

so i cannot use MOLH.setLanguageTo(MOLHLanguage.currentAppleLanguage() == "en" ? "ar" : "en")

i tried MOLH.setLanguageTo("en") but it didn't do anything ... how to do it?

MoathOthman commented 6 years ago

As you are doing already , you’re need to reset the views , check the demo on how its done , it might help u

Sent from my iPhone

On Jun 6, 2018, at 1:00 PM, lamatat notifications@github.com<mailto:notifications@github.com> wrote:

i have two buttons arabic and english .. when clicked on arabic i want to change language to arabic and same with english ...

so i cannot use MOLH.setLanguageTo(MOLHLanguage.currentAppleLanguage() == "en" ? "ar" : "en")

i tried MOLH.setLanguageTo("en") but it didn't do anything ... how to do it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/MoathOthman/MOLH/issues/20, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABHNhzQfr6njDLDiDZXBc75YkZHDp_8wks5t56hQgaJpZM4UcW1N.

lamatat commented 6 years ago

yes i did but still didn't change...