C# Resources - How to find actual language file in use?

Posted by Chris Meek on Stack Overflow See other posts from Stack Overflow or by Chris Meek
Published on 2010-05-17T10:56:55Z Indexed on 2010/05/17 11:00 UTC
Read the original article Hit count: 254

Filed under:
|

I have a number resx files as follows,

Resources-es-ES.resx Resources-es.resx Resources.resx (english defaults)

They are compiled into an assembly and I use them for localising my web pages by simply referring to Resources.Ok for example. My question is whether there is a way to find out the "rendered culture", e.g. if I come into the site with my CurrentUICulture set to "fr-fr" for example it will fall back to using the English resources and I'm wondering how to get that information to help me with some JavaScript localisation.

© Stack Overflow or respective owner

Related posts about c#

Related posts about resources