java - How to get locale within JSTL with dash as separator? -
pagecontext.request.locale
return locale
"en_us"
but current javascript library (dojo) seeking 'en-us', 'es-es'..etc
is there api use other customized javascript function so?
the locale class has tolanguagetag()
method want: http://docs.oracle.com/javase/7/docs/api/java/util/locale.html#tolanguagetag()
Comments
Post a Comment