@docomodigital/js-dictionary

3.0.2 • Public • Published

js-dictionary

npm version

Library to get Dictionary values

Usage

import Dictionary from '@docomodigital/js-dictionary';

const dictObject = {
    SEARCH: 'Search!',
    GO_BACK: 'Go Back',
};

Dictionary.init({
    dict: dictObject,
    showKey: 'missing'
});

Dictionary.get('SEARCH'); // 'Search!'

Installation

NPM

npm install --save @docomodigital/js-dictionary

Documentation

To read documentation, go to:

http://docomodigital.github.io/js-utils/js-dictionary/latest

Readme

Keywords

none

Package Sidebar

Install

npm i @docomodigital/js-dictionary

Weekly Downloads

20

Version

3.0.2

License

MIT

Unpacked Size

14.8 kB

Total Files

10

Last publish

Collaborators

  • everdrone
  • blame_etc