[!!!] The source code of this package is on https://github.com/docomodigital/js-utils, this repository will be removed asap
Library to get Dictionary values
import Dictionary from '@docomodigital/js-dictionary';
const dictObject = {
SEARCH: 'Search!',
GO_BACK: 'Go Back',
};
Dictionary.init({
dict: dictObject,
showKey: 'missing'
});
Dictionary.get('SEARCH'); // 'Search!'
npm install --save @docomodigital/js-dictionary
To read documentation, go to:
http://docomodigital.github.io/js-dictionary/latest
or run the following command inside the js-dictionary folder:
npm run doc:open