@fitbit/bison-i18n

Tools for Fitbit OS i18n strings format

Stats

StarsIssuesVersionUpdatedCreatedSize
@fitbit/bison-i18n
1.1.07 months ago3 years agoMinified + gzip package size for @fitbit/bison-i18n in KB

Readme

Tools for Fitbit OS i18n strings format

Usage

import fs from 'fs';
import { TranslationLoader } from 'bison-i18n';

const translations = new TranslationLoader()
  .loadLanguage('en-US', fs.readFileSync('en-US.po'))
  .loadLanguage('fr-FR', fs.readFileSync('fr-FR.po'))
  .build();

fs.writeFileSync('en-US', translations.getLanguage('en-US'));

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.