Manual language switch in iOS and Android app

  1. 7 years ago

    How can I make a language switch in a multi-language app, independent from the system-wide language setting of the user device?

    This is the background of my question:

    I am making a bilingual app (English and Dutch) and anticipate that some users with a English language device will want to use the app in Dutch (and vice versa). In a small language area as ours, things get mixed, and I would like to give the user a language choice *within* the app.

    In iOS, this is possible in principle, as described here:
    http://stackoverflow.com/questions/9939885/manual-language-selection-in-an-ios-app-iphone-and-ipad
    This requires some programming in C and probably needs to be implemented on the level of PubCoder, not in an individual app.

    in Android apps, the problem is similar, and there is a similar solution in C, as described here:
    http://stackoverflow.com/questions/12908289/how-to-change-language-of-app-when-user-selects-language

    But are there any *other* hooks for the language setting? Does Javascript have access to the language settings?

    Of course I can duplicate all pages and improvise a solution with each page in one language, but that is against the elegant philosophy of PubCoder workspaces. And it won't be maintainable.

    Any help would be greatly appreciated.

    Kind regards,
    Bram

  2. Angelo S

    17 Oct 2016 Administrator

    Hello Bram,
    you can create two workspaces for the two localizations, then your users can switch between them using the "flag" button in the app native toolbar. You can also add an interactive image or button in your layout to do this (maybe in the overlay?) using the "Open Localizations Menu" action.

 

or Sign Up to reply!