0.2.0 • Published 2 years ago
@jil/translate v0.2.0
@jil/translate
Package and application level translations made easy. Wraps the powerful i18next library to abstract complexity away and define common server-side settings.
import {createTranslator} from '@jil/translate';
const msg = createTranslator(['common', 'errors'], '../path/to/resources');
msg('common:welcome', {name: 'Jil'}); // Hello Jil!
Features
- Isolated translator instances.
- Namespace aware resource bundles.
- Automatic locale detection, from command line options, or from the operating system.
- Supports multiple file types: JavaScript, JSON, YAML.
- Message interpolation, pluralization, nesting, and more.
- Plus all other features found in i18next!
Installation
npm i @jil/translate
Documentation
0.2.0
2 years ago
0.1.20
2 years ago
0.1.19
2 years ago
0.1.18
2 years ago
0.1.17
2 years ago
0.1.14
3 years ago
0.1.15
3 years ago
0.1.16
3 years ago
0.1.12
3 years ago
0.1.13
3 years ago
0.1.11
3 years ago
0.1.10
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.9
3 years ago
0.1.4
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago