{"library":"babel-plugin-ttag","type":"library","category":null,"description":"babel-plugin-ttag (formerly babel-plugin-c-3po) is a Babel plugin for extracting and resolving gettext-like translations at compile time. Current stable version is 1.8.16, released periodically. It uses ES6 tagged template literals (e.g., t`hello`), works with GNU gettext .po files, and offers compile-time resolution with no runtime overhead in the browser. Key differentiators: native template syntax (no sprintf), intelligent extraction by Babel, fast feedback loop (warns on missing translations), and support for universal apps (Node.js and browser). It includes support for plurals (ngettext/msgid), contexts (tct), and JSX without additional configuration. Requires ttag runtime package as a peer dependency.","language":"javascript","status":"active","version":"1.8.16","tags":["javascript","gettext","translations","babel-plugin","i18n"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-ttag","imports":["import { t } from 'ttag'","import { ngettext, msgid } from 'ttag'","import { tct } from 'ttag'","{\n  plugins: ['babel-plugin-ttag']\n}"]},{"cmd":"yarn add babel-plugin-ttag","imports":[]},{"cmd":"pnpm add babel-plugin-ttag","imports":[]}],"homepage":null,"github":"https://github.com/ttag-org/babel-plugin-ttag","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-ttag","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-ttag/compatibility"}}