- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2022 05:22 PM
in global ,i user gs.getSession().setLanguage() to change language
Is there a similar way to change session language in scope application
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2022 06:28 PM
Hi
the following code should work. I just tested it in a multi-language instance and in a custom scope:
var util = new global.I18nUtils();
util.setLanguage('en');
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2022 06:28 PM
Hi
the following code should work. I just tested it in a multi-language instance and in a custom scope:
var util = new global.I18nUtils();
util.setLanguage('en');
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2022 07:52 PM
Are you using session_start() at the top of every page? I don't think $_SESSION really has a scope as it accessible everywhere once a session is started. Read this, it should help you out.