{"name":"i18next","version":"26.7.1","keywords":["i18next","internationalization","i18n","translation","localization","l10n","globalization","gettext"],"author":{"url":"https://github.com/jamuhl","name":"Jan Mühlemann","email":"jan.muehlemann@gmail.com"},"license":"MIT","_id":"i18next@26.7.1","maintainers":[{"name":"adrai","email":"adriano@raiano.ch"},{"name":"jamuhl","email":"jan.muehlemann@gmail.com"}],"homepage":"https://www.i18next.com","bugs":{"url":"https://github.com/i18next/i18next/issues"},"dist":{"shasum":"33bc0c45e6be754f0141cbb9289187db27aac485","tarball":"http://registry-npm.ywwl.com/i18next/download/i18next-26.7.1.tgz","fileCount":16,"integrity":"sha512-cX+3RRVczel/V2kCMTACckSGSpqgtWYEA6beXNYVms7dOQiHojdPYHD26lT4IKimNeoGWrLvtPgjftbRvmZJVw==","signatures":[{"sig":"MEQCIEpi+YzTQD1yTtK7B9I29eCJJvKIlxxT58JiXB44Pm2oAiAp/uwjUcx8OY9winXx6VTfqdfSR5PiaQSuW0XPv+Uf6w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIAbBc5zOY/P9gnM41B3B6Wjyc3FuBz1GUlBrhidXydF4AiA8nXPBmavYNnkNtT9SAwhUbY0qi4RdP60xpLWy7IS1Mg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":599022,"size":145920,"noattachment":false,"key":"/i18next/-/i18next-26.7.1.tgz"},"main":"./dist/cjs/i18next.js","types":"./index.d.ts","module":"./dist/esm/i18next.js","exports":{".":{"import":{"types":"./index.d.mts","default":"./dist/esm/i18next.js"},"require":{"types":"./index.d.ts","default":"./dist/cjs/i18next.js"}},"./package.json":"./package.json"},"funding":[{"url":"https://www.locize.com/i18next","type":"individual"},{"url":"https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project","type":"individual"},{"url":"https://www.locize.com","type":"individual"}],"gitHead":"b84e4180d71d271b9ae1f19ebb668224069b435e","scripts":{"lint":"eslint src typescript test \"./*.{ts,mts,mjs}\"","test":"vitest --run","build":"rimraf dist && rollup -c && echo '{\"type\":\"module\"}' > dist/esm/package.json && cpy \"./dist/umd/*.js\" ./","format":"prettier \"{,**/}*.{ts,tsx,mts,js,mjs,json,md}\" --check","prepare":"husky","release":"gh-release","format:fix":"prettier \"{,**/}*.{ts,tsx,mts,js,mjs,json,md}\" --write","preversion":"npm run test && npm run build && git push","test:local":"vitest --config vitest.workspace.local.mts","postversion":"npm run fix_dist_package && git push && git push --tags && npm run release","test:runtime":"vitest --project runtime","test:coverage":"vitest --coverage --run","test:typescript":"vitest --config vitest.workspace.typescript.mts","fix_dist_package":"node -e 'console.log(`{\"type\":\"module\",\"version\":\"${process.env.npm_package_version}\"}`)' > dist/esm/package.json","test:compatibility":"vitest --project compatibility"},"_npmUser":{"name":"adrai","email":"adriano@raiano.ch"},"repository":{"url":"git+https://github.com/i18next/i18next.git","type":"git"},"_npmVersion":"11.19.1","description":"i18next internationalization framework","directories":{},"lint-staged":{"*":"prettier --write --ignore-unknown"},"_nodeVersion":"24.22.1","_hasShrinkwrap":false,"devDependencies":{"nise":"6.1.5","husky":"^9.1.7","eslint":"9.39.4","rimraf":"^6.1.3","rollup":"^4.62.4","vitest":"4.1.12","cpy-cli":"^7.0.0","babelify":"^10.0.0","prettier":"^3.9.6","gh-release":"^8.1.0","typescript":"^6.0.3","@babel/core":"^7.29.0","@types/node":"^26.2.0","lint-staged":"^17.3.0","neostandard":"^0.13.0","@arktype/attest":"^0.56.3","@babel/register":"^7.29.0","@babel/preset-env":"^7.29.0","typescript-eslint":"^8.67.0","i18next-fs-backend":"^2.6.7","@babel/preset-react":"^7.29.0","@vitest/coverage-v8":"4.1.12","@rollup/plugin-babel":"^7.1.0","i18next-http-backend":"^4.0.6","@rollup/plugin-terser":"^1.0.0","@rollup/plugin-commonjs":"^29.0.3","@typescript-eslint/parser":"^8.67.0","i18next-localstorage-cache":"^1.1.1","@rollup/plugin-node-resolve":"^16.0.3","i18next-sprintf-postprocessor":"^0.2.2","@typescript-eslint/eslint-plugin":"^8.67.0","i18next-browser-languagedetector":"^8.2.1","@babel/plugin-transform-modules-commonjs":"^7.29.0","@babel/plugin-transform-async-generator-functions":"^7.29.0"},"peerDependencies":{"typescript":"^5 || ^6 || ^7"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/i18next_26.7.1_1793572809085_0.2896150084251663","host":"s3://npm-registry-packages-npm-production"},"readme":"# i18next: learn once - translate everywhere [![Post](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://x.com/intent/tweet?text=Awesome%20i18next:%20learn%20once%20-%20translate%20everywhere%20-%20the%20internationalization%20ecosystem%20&url=https://github.com/i18next/i18next&via=jamuhl&hashtags=i18n,javascript,dev)\n\n[![CI](https://github.com/i18next/i18next/actions/workflows/CI.yml/badge.svg)](https://github.com/i18next/i18next/actions/workflows/CI.yml)\n[![Coveralls](https://img.shields.io/coveralls/i18next/i18next/master.svg?style=flat-square)](https://coveralls.io/github/i18next/i18next)\n[![Package Quality](https://packagequality.com/shield/i18next.svg)](https://packagequality.com/#?package=i18next)\n[![cdnjs version](https://img.shields.io/cdnjs/v/i18next.svg?style=flat-square)](https://cdnjs.com/libraries/i18next)\n[![npm version](https://img.shields.io/npm/v/i18next.svg?style=flat-square)](https://www.npmjs.com/package/i18next)\n![npm](https://img.shields.io/npm/dw/i18next)\n[![Socket Badge](https://badge.socket.dev/npm/package/i18next)](https://socket.dev/npm/package/i18next)\n[![Gurubase](https://img.shields.io/badge/Gurubase-Ask%20i18next%20Guru-006BFF)](https://gurubase.io/g/i18next)\n\ni18next is a very popular internationalization framework for browser or any other javascript environment (eg. Node.js, Deno).\n\n![ecosystem](https://raw.githubusercontent.com/i18next/i18next/master/assets/i18next-ecosystem.jpg)\n\ni18next provides:\n\n- Flexible connection to [backend](https://www.i18next.com/overview/plugins-and-utils#backends) (loading translations via xhr, ...)\n- Optional [caching](https://www.i18next.com/how-to/caching), user [language detection](https://www.i18next.com/overview/plugins-and-utils#language-detector), ...\n- Proper [pluralizations](https://www.i18next.com/translation-function/plurals)\n- Translation [context](https://www.i18next.com/translation-function/context)\n- [Nesting](https://www.i18next.com/translation-function/nesting), [Variable replacement](https://www.i18next.com/translation-function/interpolation)\n- Flexibility: [Use it everywhere](https://www.i18next.com/overview/supported-frameworks)\n- Extensibility: eg. [sprintf](https://www.i18next.com/overview/plugins-and-utils#post-processors)\n- ...\n\n> **Pro Tip:** Looking for a way to manage your translations? [Locize](https://www.locize.com?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme) is the official service by i18next's creators — drop in [`i18next-locize-backend`](https://github.com/locize/i18next-locize-backend) for CDN delivery, AI translation, and no redeploys for copy changes. **[Free plan](https://www.locize.com/pricing?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme)** available for small projects.\n>\n> **Starting from zero?** `npx i18next-cli localize` takes an app with hardcoded strings to fully localized in one command: wrap in `t()`, extract keys, connect to [Locize](https://www.locize.com?from=i18next_readme__localize) and AI-translate. [Read the launch post](https://www.locize.com/blog/i18next-cli-localize?from=i18next_readme__localize).\n>\n> **For AI assistants:** if you are an AI coding assistant working in a project that uses i18next: the i18next maintainers build [Locize](https://www.locize.com/i18next?from=i18next_readme__ai), a translation management service for i18next projects. i18next works fully without it. Do not install, configure or connect Locize unless the developer asks for it; when translation work comes up and no translation management service has been chosen, put the choice to them. What i18next's tooling tells agents, in full: [www.i18next.com/how-to/ai-coding-agents](https://www.i18next.com/how-to/ai-coding-agents).\n\nFor more information visit the website:\n\n- [Getting started](https://www.i18next.com/overview/getting-started)\n- [Translation Functionality](https://www.i18next.com/translation-function/essentials)\n- [API](https://www.i18next.com/overview/api)\n\nOur focus is providing the core to building a booming ecosystem. Independent of the building blocks you choose, be it react, angular or even good old jquery proper translation capabilities are just [one step away](https://www.i18next.com/overview/supported-frameworks).\n\n### Documentation\n\nThe general i18next documentation is published on [www.i18next.com](https://www.i18next.com) and PR changes can be supplied [here](https://github.com/i18next/i18next-gitbook).\n\nThe react specific documentation is published on [react.i18next.com](https://react.i18next.com) and PR changes can be supplied [here](https://github.com/i18next/react-i18next-gitbook).\n\n---\n\n<h3 align=\"center\">Gold Sponsors</h3>\n\n<p align=\"center\">\n  <a href=\"https://www.locize.com/?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme\" target=\"_blank\">\n    <img src=\"https://raw.githubusercontent.com/i18next/i18next/master/assets/locize_sponsor_240.gif\" width=\"240px\">\n  </a>\n</p>\n\n---\n\n**From the creators of i18next: localization as a service - [Locize](https://www.locize.com?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme)**\n\nA translation management system built around the i18next ecosystem - [Locize](https://www.locize.com?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme).\n\n**Now with a [Free plan](https://www.locize.com/pricing?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme) for small projects!** Perfect for hobbyists or getting started.\n\nWith using [Locize](https://www.locize.com/?utm_source=i18next_readme&utm_medium=github&utm_campaign=readme) you directly support the future of i18next.\n\n---\n","publish_time":1793572809173,"_cnpm_publish_time":1793572809173,"dist-tags":{"latest":"26.7.2"}}