I noticed jQuery
has one locale for Spanish
which is es
. When you change your browser to a spanish locale
which can be es, es-US, es-MX, etc
, since there is only one jQuery spanish file, it only loads the file if the locale is es
. Is there a way to convert between the locales that .NET returns to you using the CultureInfo
object to the ones that jQuery expects?
Here is scenario to better explain my situation. If I change my browsers language to es
, CultureInfo.CurrentCulture
returns es-ES
, however, jQuery does not contain the locale es-ES
, it just has es
, but in certain cases it does have something like en-US
and en-GB
, so what is the best way to go about this. Should I just rename locale files or do some sort of conversion?