msda-language-service-client
v0.0.7
Published
language client
Downloads
3
Readme
#msda-language-service-client
#config
var LanguageClient = require('msda-language-service-client');
var config = {
host: "bl.msda.ge",
port: 3013,
path: "/api/",
languages: ["en"]
};
#loadLanguages
language.load(function (err, res) {
console.log(err, res);
});
#getLanguage
language.get("en", "keyword")
#addLanguage
var entry = {
entry: {
"keyword": test2,
"translations": {
"en": test
}
}
};
language.add(entry, function (err, res) {
console.log(err, res);
});
#searchByText
var text = {
language: "en",
text: "text"
};
language.searchByText(text, function (err, res) {
console.log(err, res);
});
#searchByKeyword
var keyword = {
keyword: "gela"
};
language.searchByKeyword(keyword, function (err, res) {
console.log(err, res);
});