0.0.2 • Published 8 years ago

sata-dictionary v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

sata-dictionary

Just a dictionary with items that you can override.

Example

var Dictionary = require('./dist/main');

var dic = new Dictionary({
	'word1': 'default word1',
	'word2': 'default word2'
});
dic.merge({'word1': 'new word1'});

dic.get('word1'); // -> new word1
dic.get('word2'); // -> default word2

Usage

I use this component with React components.

Just pass in context user specified dictionary for overriding labels, classes, etc.