I have a javascript code that needs localisation, ie.
function js_proc() { var some_data = \'this text needs to be translated dynamically at runtime\'; }
Create a json object in the global scope of the page output for your javascript strings:
Then you can use it throughout your Javascript app using the syntax:
oGlobalStrings.some_data
Works very well and can be handled very easily throughout your app.