@fitbit/bison-i18n
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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'));

Readme

Keywords

none

Package Sidebar

Install

npm i @fitbit/bison-i18n

Weekly Downloads

439

Version

1.1.0

License

BSD-3-Clause

Unpacked Size

16.7 kB

Total Files

12

Last publish

Collaborators

  • gmaniak
  • stefanrm
  • hexxeh
  • orviwan