{"library":"gettextjs","type":"library","category":null,"description":"Browser-side GNU gettext implementation for internationalization (i18n). Current stable version is 2.1.1. Provides a `gettext`-like interface in the browser, compiles MO files to JavaScript, includes a webpack loader for MO files, and supports plural forms with `ngettext`. Key differentiators: lightweight, browser-focused, integrates with webpack, and offers both runtime API and pre-compilation. Compared to i18next or Polyglot, gettext.js is closer to the GNU gettext workflow and simpler for projects already using MO files. Release cadence: occasional maintenance updates, as last release was several years ago.","language":"javascript","status":"maintenance","version":"2.1.1","tags":["javascript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install gettextjs","imports":["import { gettext as _ } from 'gettextjs'","import { set_catalog } from 'gettextjs'","import { ngettext } from 'gettextjs'"]},{"cmd":"yarn add gettextjs","imports":[]},{"cmd":"pnpm add gettextjs","imports":[]}],"homepage":null,"github":"https://github.com/ojii/gettext.js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/gettextjs","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}