@boost/translate
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.1 • Public • Published

    Translate - Boost

    Build Status npm version npm deps

    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 '@boost/translate';
    
    const msg = createTranslator(['common', 'errors'], '../path/to/resources');
    
    msg('common:welcome', { name: 'Boost' }); // Hello Boost!

    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

    yarn add @boost/translate
    

    Documentation

    Install

    npm i @boost/translate

    DownloadsWeekly Downloads

    4,213

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    34.9 kB

    Total Files

    31

    Last publish

    Collaborators

    • milesj