@fitbit/bison-i18n
v1.1.0
Published
Tools for Fitbit OS i18n strings format
Downloads
2,066
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'));