RandomSec/extensions/phonetic/module/scripts/load-language.js

20 lines
313 B
JavaScript
Raw Normal View History

// Load the localization file
var dictionary = {};
$.ajax({
url : "command/core/load-language?",
type : "POST",
async : false,
data : {
module : "phonetic",
// lang : lang
},
success : function(data) {
dictionary = data['dictionary'];
lang = data['lang'];
}
});
$.i18n().load(dictionary, lang);