RandomSec/OpenRefine/extensions/phonetic/module/scripts/load-language.js
2022-01-04 16:31:32 +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);