I have a javascript code that needs localisation, ie.
function js_proc() { var some_data = \'this text needs to be translated dynamically at runtime\'; }
Depending on how big the language file is, a quick way to allow javascript to access your entire language array could be to load the array into a global javascript array;
Then access in your javascript like this;
globalLang['some_lang_key']