Since I had to change number formats to local, I wrot a javaScript function and add it to public.common.js to replace English formatted numbers with local format.
But I neead to detect current language and do the replacement in case of local language selected.
How can I detect it with java script? If I done the mission wrong and gone to chasing the goose any recommendation appreciated.
Not sure if it works because i've never tried to be honest :)
You have WorkContext always available to your razor views, so you can use it to access its methods. (only accessible to your razor views, so don't put WorkContext in .js files.