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?

Rob
  • 47,999
  • 5
  • 74
  • 91

7 Answers7

2

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

Community
  • 1
  • 1
Arnis Lapsa
  • 45,880
  • 29
  • 115
  • 195
2

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
  • 13,505
  • 11
  • 64
  • 87
0

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.

Localize javascript messages and validation text

Community
  • 1
  • 1
ScottE
  • 21,530
  • 18
  • 94
  • 131
0

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
  • 1,878
  • 13
  • 10
0

the updated doc link of dojo about localization: http://dojotoolkit.org/documentation/tutorials/1.8/i18n/

cn123h
  • 2,302
  • 1
  • 21
  • 16
  • 1.Welcome to Stack Overflow. We use a question and answer format here, not a threaded conversation format, which means that until you get full access to the comment system at 50 rep you can't reply to other users except on your own posts. Using an "answer" for that purpose. – Prahalad Gaggar Jan 11 '13 at 13:37
0

I have developed Jquery based Resource location plugin this can be used in any Web Application. This is very easy to use and very light weight just 3KB. You can download plugin from Github or Install via Nuget.

Refer to this link - http://www.pritambaldota.com/index.php/jquery-based-resource-localization/

0

There's the globalize library: https://github.com/jquery/globalize

Seems pretty active and preferred by some.

jl.
  • 752
  • 6
  • 19