walkthrough

const translator = Translator({
  defaultLocale: 'en-GB',
  delimiters: ['{{', '}}'],
  locales: {
    'en-GB': {
      words: {
        'test': {
          'test2': 'Test {{name}}!'
        }
      },
      converters: {}
    }
  }
});

const translated = translator.translate('test.test2', {
  name: 'Bob'
});

// returns 'Test Bob!'

for a full specification of the Translator class please refer to it's documentation.

Rik Hoffbauer 2015
Documentation generated by JSDoc 3.4.0 on 2015-12-03T20:18:08+01:00