{"_id":"@lingui/core@6.8.0","bugs":{"url":"https://github.com/lingui/js-lingui/issues"},"dist":{"shasum":"6f88039ab26c90caf62ea0bfbd4d168a9ce73e0c","tarball":"http://registry-npm.ywwl.com/@lingui/core/download/@lingui/core-6.8.0.tgz","fileCount":8,"integrity":"sha512-MRjinsq93RHw5QpgKHNnDDzCQR2D+XvR/At5QbaR852JozggWYL6+IWFunQgAvz5vI3jjBtDRp+kJufXOtXQFQ==","signatures":[{"sig":"MEUCIBcugtK2KnfHNKhDL6nTqaRqgzIx2KRSNC6ZKJEVBYVjAiEAlm+sGd0IPZB589IcJOCALe+VkKOHMv7wCgkJsIa69TE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDcUDd7AjMUHa1fBz0fqMg87Ls98O3BbHW6emb6zQfRCwIhALdQOBlTTMAISBtmd89ZCPywabq7ROX+owWTHT18r2fA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lingui%2fcore@6.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":30345,"size":8977,"noattachment":false,"key":"/@lingui/core/-/@lingui/core-6.8.0.tgz"},"name":"@lingui/core","type":"module","author":{"name":"Tomáš Ehrlich","email":"tomas.ehrlich@gmail.com"},"engines":{"node":">=22.19.0"},"exports":{".":"./dist/index.mjs","./macro":{"types":"./macro/index.d.mts","browser":"./macro/browser.mjs","default":"./macro/index.mjs"},"./package.json":"./package.json"},"gitHead":"8c0f1ba378076cc49b320cccd2e06c60afe94963","license":"MIT","scripts":{"build":"unbuild","check-types":"tsc --noEmit"},"unbuild":{"declaration":"node16"},"version":"6.8.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c6cc62ee-aab3-49a1-9110-300405c1e3df"}},"homepage":"https://lingui.dev","keywords":["lingui","linguijs","i18n","icu","messageformat","catalog","runtime","localization","translation","pluralization"],"repository":{"url":"git+https://github.com/lingui/js-lingui.git","type":"git","directory":"packages/core"},"_npmVersion":"lerna/10.0.1/node@v22.23.2+x64 (linux)","description":"The Lingui i18n runtime: loads compiled message catalogs, tracks the active locale and formats ICU MessageFormat messages","directories":{},"maintainers":[{"name":"andrii.bodnar","email":"andrii.bodnar@crowdin.com"},{"name":"serhiydmytryshyn","email":"sergey@crowdin.com"}],"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"@lingui/message-utils":"6.8.0","@lingui/babel-plugin-lingui-macro":"6.8.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"catalog:","unbuild":"catalog:","typescript":"catalog:","@lingui/test-utils":"3.0.3"},"peerDependencies":{"babel-plugin-macros":"2 || 3"},"peerDependenciesMeta":{"babel-plugin-macros":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_6.8.0_1790174975331_0.4641906697234295"},"readme":"[![License][badge-license]][license]\n[![Version][badge-version]][package]\n[![Downloads][badge-downloads]][package]\n\n# @lingui/core\n\n> The Lingui i18n runtime: loads compiled message catalogs, tracks the active locale and formats ICU MessageFormat messages\n\n`@lingui/core` is part of [Lingui][documentation]. Lingui is a lightweight, open-source internationalization (i18n) library for JavaScript and TypeScript. It brings compile-time macros and a CLI for message extraction to React, React Native, Vue, SolidJS, Astro, Svelte, and Node.js.\n\nThe package is framework-agnostic and behaves the same in the browser, in Node.js and inside any UI framework. `@lingui/core` exports the `i18n` instance, which loads catalogs, activates a locale and translates messages. `@lingui/core/macro` exports the `t`, `plural`, `select` and related macros, which are compiled into ICU messages at build time and need the [Babel][babel-plugin] or [SWC][swc-plugin] plugin.\n\n## Usage\n\n```js\nimport { i18n } from \"@lingui/core\"\nimport { t } from \"@lingui/core/macro\"\nimport { messages } from \"./locales/cs/messages\"\n\ni18n.load(\"cs\", messages)\ni18n.activate(\"cs\")\n\nfunction greeting(name) {\n  return t`Hello ${name}`\n}\n\ngreeting(\"Fred\") // \"Ahoj Fred\"\n```\n\nThe `messages` module is produced by `lingui extract` and `lingui compile` from [`@lingui/cli`][cli]. Catalogs are compiled ahead of time, so the runtime ships without a MessageFormat parser.\n\nThe [JavaScript tutorial][tutorial] walks through this setup. React projects use [`@lingui/react`][react] on top of this package. See the [core reference][reference] and the [macro reference][macro] for the full API.\n\n## License\n\nThis package is licensed under the [MIT][license] license.\n\n[license]: https://github.com/lingui/js-lingui/blob/main/LICENSE\n[documentation]: https://lingui.dev\n[tutorial]: https://lingui.dev/tutorials/javascript\n[reference]: https://lingui.dev/ref/core\n[macro]: https://lingui.dev/ref/macro\n[cli]: https://www.npmjs.com/package/@lingui/cli\n[react]: https://www.npmjs.com/package/@lingui/react\n[babel-plugin]: https://lingui.dev/installation#choosing-a-transpiler\n[swc-plugin]: https://lingui.dev/ref/swc-plugin\n[package]: https://www.npmjs.com/package/@lingui/core\n[badge-downloads]: https://img.shields.io/npm/dw/@lingui/core.svg\n[badge-version]: https://img.shields.io/npm/v/@lingui/core.svg\n[badge-license]: https://img.shields.io/npm/l/@lingui/core.svg\n","publish_time":1790174975418,"_cnpm_publish_time":1790174975418,"dist-tags":{"canary":"5.1.2","latest":"6.11.0","next":"6.0.0-next.4"}}