I need to get the name of the current UI language in a javascript file. I know the following trick:
SP.Res.lcid
But that gets the the LCID. What I really need is the two-letter iso name (like 'en', 'fr', etc)
|
I need to get the name of the current UI language in a javascript file. I know the following trick:
But that gets the the LCID. What I really need is the two-letter iso name (like 'en', 'fr', etc) |
|||
|
|
|
You can create a JS object and fetch the values using the LCID:
|
||||
|