3.1.2 • Published 2 years ago

@sensorfactdev/i18n v3.1.2

Weekly downloads
64
License
MIT
Repository
github
Last release
2 years ago

Sensorfact i18n

npm version Build Status Coverage Status

Install

yarn add @sensorfactdev/i18n

Example

import { getI18n } from '@sensorfactdev/i18n';

const translations = [
  {
    key: 'some.id.you.want.to.translate',
    en_GB: 'Translated into English',
    nl_NL: 'Vertaald naar Nederlands',
  }
]

const i18n = getI18n(translations, 'en_GB');
i18n.text('some.id.you.want.to.translate'); // 'Translated into English'
i18n.number(10000);
i18n.currency(10000, 'EUR');
i18n.date(new Date());

For more usage info check the unit tests or MDN docs on Intl.

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

4 years ago

3.0.4

5 years ago

3.0.2

5 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.1.0

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago