How to read settings to know language selected

About Support Support How to read settings to know language selected

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3093
    Avatar for Pastor AndresPastor Andres
    Moderator

    Is there a way to determine the language the user has selected in the app? Javascript or other…

    #4788
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    You are digging deep now on the app ;-)
    The chosen language is saved on local storage
    window.localStorage.getItem(‘locale’);
    the language strings pushed out from churchadminplugin.com are at
    window.localStorage.getItem(‘language’) – don’t forget that can be randomly updated from my server, so best to put your extra strings in a different storage location.

    #4791
    Avatar for Pastor AndresPastor Andres
    Moderator

    Thank you so very much. That was perfect! Our language selection on the custom app pages is now set by the user’s language setting!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.