General Approaches to Localization of JavaScript messages ...

K

Kedar Mhaswade

I have seen a few approaches to general support for Localization in
JavaScript (for a large site in production). Some people bundle the
HTML pages and messages separately and reuse the script code.

What is the best practice as far as localization support is concerned?

Since the HTML and the script code is usually generated dynamically by
the server-side components and environments like Java have excellent
support for the locale-specific resource bundles, is it a good
strategy to:
- remember the locale though cookie
- return HTML pages and JavaScript code

that matches the given locale?

I have seen this approach implemented at one/two places and thought
there was no choice around it.

Comments?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,690
Members
48,796
Latest member
Greg L.

Latest Threads

Top