How to read settings to know language selected | Support | Support

Support Forum

If you want to show a shortcode in forum post - use [ instead of [ as you write it so you can see the shortcode 😉

We use and recommend UK2 for hosting - get a month free

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
How to read settings to know language selected
4th October 2020
10:05 am
Avatar
Playas de Rosarito, Baja California, Mexico
Member
Members
Forum Posts: 153
Member Since:
9th July 2019
sp_UserOfflineSmall Offline

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

4th October 2020
1:42 pm
Avatar
Admin
Forum Posts: 942
Member Since:
4th March 2015
sp_UserOfflineSmall Offline

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.

If you are finding the plugin useful, please subscribe to the app - it's free for your congregation to use and only £9.99pm for a church subscription - free int'l bank transfers with Revolut

5th October 2020
12:33 am
Avatar
Playas de Rosarito, Baja California, Mexico
Member
Members
Forum Posts: 153
Member Since:
9th July 2019
sp_UserOfflineSmall Offline

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!

Forum Timezone: Europe/London

Most Users Ever Online: 101

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Pastor Andres: 153

Rich Cox: 97

David Z.: 84

rrfranks: 69

seanmcint: 54

Allen: 51

Jon: 46

Gavin: 41

Nathan Booth: 36

Janeen: 23

Member Stats:

Guest Posters: 45

Members: 425

Moderators: 0

Admins: 1

Forum Stats:

Groups: 5

Forums: 14

Topics: 620

Posts: 2322

Administrators: andymoyle: 942