@tutorbook/intl

0.5.2 • Public • Published

@tutorbook/translations

This package contains all of the translations for Tutorbook's new web app. We're using react-intl for the i18n of our website.

Take a look at this blog post for some examples that are similar to how we're localizing our website.

Setup

To install the formatjs CLI (to automatically extract new defaultMessages defined using the defineMessages React hook and the FormattedMessage React component) run the following:

$ npm i -g formatjs

Usage

To automatically extract new defaultMessages defined using the defineMessages React hook and the FormattedMessage React component run the following (from the root of the repository):

$ formatjs extract --out-file src/intl/locales/en.json src/*/lib/*.tsx

/@tutorbook/intl/

    Package Sidebar

    Install

    npm i @tutorbook/intl

    Weekly Downloads

    0

    Version

    0.5.2

    License

    SEE LICENSE IN LICENSE

    Unpacked Size

    39.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • nicholaschiang