Translate jQuery-globalize .js files

WebTranslateIt supports jQuery-globalize .js files.

jQuery-globalize files come in 2 flavours:

jQuery-globalize “list”

$.localize("msgDateReq", "en", "Date is required.");
$.localize("msgSubjectReq", "en", "Customer is required.");
// a comment
$.localize("msgTargetReq", "en", "Institution is required.");
// with an escaped double quote!
$.localize("msgTargetReq2", "en", "Institution \" required.");
$.localize("msgTargetReq3", "en", 'Institution \' required.');
$.localize("msgTargetReq4", 'en', "Institution \" required.");
$.localize("msgTargetReq5", 'en', 'Institution \' required.');
$.localize('msgTargetReq6', "en", "Institution \" required.");
$.localize('msgTargetReq7', "en", 'Institution \' required.');
$.localize('msgTargetReq8', 'en', "Institution \" required.");
$.localize('msgTargetReq9', 'en', 'Institution \' required.');

Comments left in the file will be imported as instructions.

jQuery-globalize “hash”

Globalize.addCultureInfo( "fr", {
  messages: {
    "translate": "traduire",
    "hello": "bonjour",
    'test1': 'teststr1',
    'test2': "teststr2",
    // comment
    "test3": 'test\'fdfd'
  }
});

Comments left in the file will be imported as instructions.

More Information