How to detect brower culture info from JSON?

Copper Contributor

Hello Community,

 

I have a SharePoint List and want to change the View experience in dependency to the browser language settings. For example I have list columns Language_en and Language_de and I want to display the value either from column Language_de or from Language_en. 

I assume that should be possible with JSON-Formatting, but I haven't found a way to detect the browser language.

 

Could you please help me?

 

Kind regards

Chris

1 Reply

@Chris10250 Hi, I was thinking that it could be done by quite strang hack.

There is method to print localeDateString (https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/column-formatting). So your DE and EN format is different, so it's should be possible to parse/detect culture from toLocaleString().

I don't like this solution, I didn't need to use it finally, but when I tried to find same solution I wasn't successful.