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

20 lines
313 B
JavaScript
Raw Normal View History

2022-01-30 23:08:52 +01:00
// 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);