RandomSec/extensions/phonetic/module/scripts/load-language.js
2018-12-31 14:41:33 +01:00

20 lines
313 B
JavaScript

// 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);