{"library":"gettext-to-messageformat","type":"library","category":null,"description":"Converts gettext .po, .pot, and .mo files into messageformat-compatible JSON. Version 0.4.0, released as a stable library with no further updates expected. It uses gettext-parser under the hood and provides functions parsePo and parseMo that return headers, a plural function, and translations object. The plural function can be derived from the Plural-Forms header or provided manually. Key differentiator: bridges the gap between gettext tooling and messageformat-based internationalization in JavaScript, with support for plural forms and context.","language":"javascript","status":"active","version":"0.4.0","tags":["javascript","messageformat","gettext","po","plural-forms","i18n"],"last_verified":"Fri May 01","install":[{"cmd":"npm install gettext-to-messageformat","imports":["const { parsePo } = require('gettext-to-messageformat')","import { parseMo } from 'gettext-to-messageformat'","import { parsePo, parseMo } from 'gettext-to-messageformat'"]},{"cmd":"yarn add gettext-to-messageformat","imports":[]},{"cmd":"pnpm add gettext-to-messageformat","imports":[]}],"homepage":null,"github":"https://github.com/eemeli/gettext-to-messageformat","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/gettext-to-messageformat","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}