MoathOthman / Localization102

Localization tutorial in swift focusing on the RTL/TLR issue and changing the language without restarting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to change language of application when click on button?

mangireddy58 opened this issue · comments

commented

Hi MoathOthman,
It is possible to change the hole application when click on one button? and one more thing i have multiple Localization. please let me know.

Thnaks.

HI Mango , yes you can have multiple localization, am not sure about the first question , you can change the language with one button , ...
please use https://github.com/MoathOthman/MOLH as it is more advanced and mantained.
happy coding.

commented

Hello MoathOthman,
As my requirement ,
App have language button on Navbar that is visible to every screen ,User can change their language from current screen and app language should be changes with current screen. As I Trying app move to initial screen .

Please help !

@pradeepSinghiO
The app has to restart from beginning , but you can do some routing in the reset method so after setting the rootViewController you can present the latest view controller. but even though you need to re-initialize it again .