@mo-platform/multidict
v1.0.9
Published
Dictionary service client for mo apps
Downloads
19
Readme
JS client for Multidict Service
Multidict js client provides dictionary service in various mo apps.
npm run dev
npm run build is to build
you can also include dictionary from unpkg cdn
Install
<script
src="https://unpkg.com/@mo-platform/[email protected]/dist/multidict.js"></script>
<script type="text/javascript">
var dict = new MultiDictClient();
dict
.search('dyr', 'nb_NO')
.then( function(data) {
console.log(data.data);
data.data.phrases.forEach(function(phrase) {
console.log(phrase);
});
});
</script>