1.0.1 • Published 7 years ago
key-translate v1.0.1
translate
Manage your frontend translations
Install
npm install key-translate
Useage
var t = new Translate({
'country.Ukraine' => 'Україна',
'city.Kyiv' => 'Київ',
'city.Kyiv_founded' => 'заснований {age} років тому'
})
t.getMessage('city.Kyiv_founded', {age: (new Date()).getFullYear() - 482})
Tests
1) Install jasmine by
npm -g install jasmine
2) Run tests
npm tests