Community forums
Forum breadcrumbs - You are here:ForumsGeneral discussions: How do you do that?Detecting the current language th …
Detecting the current language the front-end is in - what API do you use?
Scott Kearney@scott-kearney
39 Posts
#1 · October 25, 2019, 10:35 am
Quote from Scott Kearney on October 25, 2019, 10:35 am
The UserContext object has several properties related to multilingual, to assist a developer in determining the language of the user.
Property Description FallbackLanguageId The id code for the fallback language of the user. LanguageCode The ll-cc code for the language of the user LanguageId The id code for the language of the user These properties can be accessed via the following calls:
Akumina.Digispace.UserContext.FallbackLanguageId "1033" Akumina.Digispace.UserContext.LanguageCode "es-es" Akumina.Digispace.UserContext.LanguageId 1034
The UserContext object has several properties related to multilingual, to assist a developer in determining the language of the user.
Property | Description |
---|---|
FallbackLanguageId | The id code for the fallback language of the user. |
LanguageCode | The ll-cc code for the language of the user |
LanguageId | The id code for the language of the user |
These properties can be accessed via the following calls:
Akumina.Digispace.UserContext.FallbackLanguageId "1033" Akumina.Digispace.UserContext.LanguageCode "es-es" Akumina.Digispace.UserContext.LanguageId 1034
Click for thumbs down.0Click for thumbs up.0
Last edited on December 2, 2019, 8:41 am by Scott Kearney