views:

1541

answers:

4

I'm developing a chat application, and I want to have the application localized according to the particular language in that country. Does jQuery support this, or do I need to use something else for localization?

+1  A: 

If you are using Asp.Net, this might interest you.

Arnis L.
A: 

And here is another one I came up with using .net global resource files as well, but it is probably a bad idea if you have a lot of localized strings because it loads up synchronously. You'd definitely want to test this for your application, but it worked well for my situation. And of course, I don't know if you're using .net or not.

http://stackoverflow.com/questions/987594/localize-javascript-messages-and-validation-text

ScottE
+2  A: 

Well I had this localization problem to solve too. I did it without JQuery (like Arnis said Jquery doesn't solve anything).

I created XML files that hold the lang dictionary for my data. I keep these lang files in the memory and based on whichever language is set, I fetch the data using XPath functions.

It's fast, efficient, logical and works well.

Cyril Gupta
A: 

Different JavaScript libraries have different goals. jQuery doesn't support localization out of the box. Instead, I'd recommend you to take a look at internationalization functions provided by Dojo Toolkit. It supports i18n with translation bundles plus automatic number, currency and date formatting for the whole world thanks to Unicode Common Locale Data Repository.

Maine
Neither link worked and I had trouble googlin' them too.
knowncitizen
Corrected links after Dojo moved old articles to a different sub-domain.
Maine