0.2.0 • Published 4 months ago

@jil/translate v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

@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

4 months ago

0.1.20

7 months ago

0.1.19

11 months ago

0.1.18

1 year ago

0.1.17

1 year ago

0.1.14

1 year ago

0.1.15

1 year ago

0.1.16

1 year ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago