Skip to content
This repository was archived by the owner on Mar 5, 2019. It is now read-only.

DVS-devtools/js-dictionary

Repository files navigation

js-dictionary

[!!!] The source code of this package is on https://github.com/docomodigital/js-utils, this repository will be removed asap

Build Status Coverage Status npm version Greenkeeper badge

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-dictionary/latest

or run the following command inside the js-dictionary folder:

npm run doc:open

About

Library to get Dictionary values

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •