{"_id":"next-language-detector","_rev":"7-26b98dbf4a0d2df9f1f9370f532f0e6d","name":"next-language-detector","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"next-language-detector","version":"1.0.0","keywords":["i18next","i18next-languageDetector","next","next.js","nextjs"],"license":"MIT","_id":"next-language-detector@1.0.0","maintainers":[{"name":"adrai","email":"adriano@raiano.ch"}],"homepage":"https://github.com/adrai/next-language-detector","bugs":{"url":"https://github.com/adrai/next-language-detector/issues"},"tsd":{"directory":"test/types"},"dist":{"shasum":"fcc4a75568424d4a0445f13fd77bc54dd8bbd494","tarball":"https://registry.npmjs.org/next-language-detector/-/next-language-detector-1.0.0.tgz","fileCount":17,"integrity":"sha512-7inZhPxFu78L8PBA3JvwWTNXzCXvOiPl7hW5CkQRru4OiOooit2sD33kuq0Bvrwkm/sv8USWtGI05aRE5BbyGQ==","signatures":[{"sig":"MEUCIQDEkCrZkSgLY9FunpyP5jKQlQLcQzDKjDIgTjICYCEY6AIgUnk5aWiq43zTzXHUk7byVQmKN+zNcqvOrZe0D957KUE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhripaCRA9TVsSAnZWagAAc+0QAJiwbqUEbgPLeIz6iJrI\nRg4ZOg33AM6tNKf5YJ+3f5DLlPkDxuRLHUmYTLDDe5GY/k4DynAG1CPzGnvg\nU+g6XhxR98PIyUBWsWjP10oe7mTw1V5rUUJp6Bixloe0m/tRLbjR1UaBqJ2P\neX+4EZbTiGy+IzRqOf9Ew65n+4o5NgE402JayVXIQW0p/mXM51PplB8RUIWe\ncIqbQSk8RDiafXIty4XZy7jKHWBIYZ8Ic0bu8zmm6+gzunhhiRZPxifcJsCt\noE6q7q9rhp+PCo+4ntwuPoPbUzDfAVRdFlB3xNRarM4NhA4+00rksky4Ipzi\naLqyZJGlNg3MBWyWyptoJXo3SU44vO16rvqq3tEyNxHAU48JGT6/FxyNlIgS\nqbGz7C0LVw4vpwJR/vm1NzbrALIy+jlFoeAvacY4MomjRfptB5DI/pJHAM+b\nROhqMAt1EYUPS6XXgF5jxkcZ6e1TQBQYAVD5FhfEcygB+uCp9YVsYAhG5mHV\nupCFef9iws638EIDcuRrAAX6WR/rjnse9S8WB8qFUIE3pP3G46mDfhUlCyq3\n9MKPUAppyCWWcI9mXFh7iTSIMbA746g/5QsqHqTEkVWfBUFZEohfPAikL6vK\nKQBkyXW7b6cycQGit0UNB8O+TBWISrmAIQooI1FlYqHqsy7vhFhAIYcj361X\nr/g1\r\n=+C+w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/cjs/index.js","type":"module","types":"./index.d.ts","module":"./dist/esm/index.js","browser":"./dist/umd/i18nextNextLanguageDetector.js","exports":{".":{"default":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./cjs":{"default":"./dist/cjs/index.js"},"./esm":{"default":"./dist/esm/index.js"},"./src":{"default":"./src/index.js"},"./package.json":"./package.json"},"gitHead":"eff5f2a2f72ef08fac5725a0e44bceab4b1eef08","scripts":{"lint":"npm run lint:javascript && npm run lint:typescript","test":"npm run lint && mocha --colors --reporter spec --recursive test/*.js","build":"rm -rf dist && rollup -c && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json","test:all":"npm run test && npm run test:typescript","preversion":"npm run test && npm run build && git push","postversion":"git push && git push --tags","lint:javascript":"eslint .","lint:typescript":"eslint -c .ts.eslintrc *.d.ts test/types/**/*.test-d.ts","test:typescript":"tsd"},"_npmUser":{"name":"adrai","email":"adriano@raiano.ch"},"repository":{"url":"git+ssh://git@github.com/adrai/next-language-detector.git","type":"git"},"_npmVersion":"8.1.2","description":"This package helps to handle language detection in next.js when using static servers only.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"@babel/runtime":"7.16.3","i18next-browser-languagedetector":"6.1.2"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"0.19.0","mocha":"9.1.3","sinon":"12.0.1","eslint":"7.32.0","rollup":"2.60.2","should":"13.2.3","typescript":"4.5.2","@babel/core":"7.16.0","@types/mocha":"9.0.0","@babel/preset-env":"7.16.4","eslint-plugin-node":"11.1.0","rollup-plugin-babel":"4.4.0","eslint-plugin-import":"2.25.3","rollup-plugin-terser":"7.0.2","eslint-plugin-promise":"5.2.0","eslint-config-standard":"16.0.3","eslint-plugin-standard":"5.0.0","rollup-plugin-commonjs":"10.1.0","@typescript-eslint/parser":"5.5.0","rollup-plugin-node-resolve":"5.2.0","@babel/plugin-transform-runtime":"7.16.4","babel-plugin-add-module-exports":"1.0.4","@typescript-eslint/eslint-plugin":"5.5.0","eslint-plugin-require-path-exists":"1.1.9"},"_npmOperationalInternal":{"tmp":"tmp/next-language-detector_1.0.0_1638804058587_0.9561630883417032","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"next-language-detector","version":"1.0.1","keywords":["i18next","i18next-languageDetector","next","next.js","nextjs"],"license":"MIT","_id":"next-language-detector@1.0.1","maintainers":[{"name":"adrai","email":"adriano@raiano.ch"},{"name":"jamuhl","email":"jan.muehlemann@gmail.com"}],"homepage":"https://github.com/adrai/next-language-detector","bugs":{"url":"https://github.com/adrai/next-language-detector/issues"},"tsd":{"directory":"test/types"},"dist":{"shasum":"82819672c3aca4b326f510558903cd3991187145","tarball":"https://registry.npmjs.org/next-language-detector/-/next-language-detector-1.0.1.tgz","fileCount":17,"integrity":"sha512-K2G9UAVfkXWUh9RIuz61Vz4IDgbU6y11FoYyaj5i+v62TSDrIjXUFDFulDNEf77oPN+j1ZX33UgJ6gaa66FPCQ==","signatures":[{"sig":"MEUCIBSliYCnIWyR/QE99tuzMPv3W/ttLDq9jLJiKP6xZvxDAiEA9Roii9Q1pdXZDBy7gCKFXndSABd7CubEjBqNjgbU7z8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4B1bCRA9TVsSAnZWagAAVpoP/jYIi/KC9uHMQ4z2JzEK\nSoFrj55cJmzWEaIsNJg+RiBfVpLBepCzlese8cqyT5A4rfKxqDhpw8cGiH7P\nHWZK44o/V9xYhJeuqPl17S+DsKVMLrVDei4psYoykCZq1r/6FDFdxBNpsKVg\nn3W1FlLLBUIx81Y8wlE6hoiJHltAdhcH3+xoWeBPvFyKhbU3BZg39Qqfl/oB\n+9RMFhNQ4CN7L1vZ0ITIpBleLjR1JqgnKnI1Ll3OdRoq1lZjv5Wh1FHpzM5O\n4ZpE3N5m8npaEkj5fkKJn9VD0zTNTp7Y3Z0LjivvUXo3Cs9IR3u4kcJLNDtM\nbTYUeSQNVia8HXF2rt+dA3XLOw74rNQx9vdWzGJBuQxkD2M+AoB360OJMZRI\noMGh68i2gff9v0e2UQ6Om/JmpadqxpcFA3I2xXdG0DpUnFo8quQgfIHbFGnl\nS9bfqYkbfVv4GZQSxH6SwjCk7avuU3GSjIoCTyUmAHbAPECarYi7WerpkLlO\nDQ4p8F0IHnQ9e1AVvLHmtNlElk3WPb6DSSYHZDAOxUvtLqpF4oFxh1RLbb2F\nA29qEy10y0/uOXd0mqe5KtpEjkCfC23ndD4lkZqT6woKzx/V3n5N4b+/Dcfq\nTB1jmWWMYldMCQQZLdYDm4xLIm6sTao5Wi63qguz8LVqvhw8hYokjMNih/Vw\nN6cZ\r\n=7Ae7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/cjs/index.js","type":"module","types":"./index.d.ts","module":"./dist/esm/index.js","browser":"./dist/umd/i18nextNextLanguageDetector.js","exports":{".":{"default":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./cjs":{"default":"./dist/cjs/index.js"},"./esm":{"default":"./dist/esm/index.js"},"./src":{"default":"./src/index.js"},"./package.json":"./package.json"},"gitHead":"59b01410b7d6a56a3fe15a31e26d4ff5baf8a0fa","scripts":{"lint":"npm run lint:javascript && npm run lint:typescript","test":"npm run lint && mocha --colors --reporter spec --recursive test/*.js","build":"rm -rf dist && rollup -c && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json","test:all":"npm run test && npm run test:typescript","preversion":"npm run test && npm run build && git push","postversion":"git push && git push --tags","lint:javascript":"eslint .","lint:typescript":"eslint -c .ts.eslintrc *.d.ts test/types/**/*.test-d.ts","test:typescript":"tsd"},"_npmUser":{"name":"adrai","email":"adriano@raiano.ch"},"repository":{"url":"git+ssh://git@github.com/adrai/next-language-detector.git","type":"git"},"_npmVersion":"8.1.2","description":"This package helps to handle language detection in next.js when using static servers only.","directories":{},"_nodeVersion":"16.13.2","dependencies":{"@babel/runtime":"7.16.7","i18next-browser-languagedetector":"6.1.2"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"0.19.1","mocha":"9.1.3","sinon":"12.0.1","eslint":"7.32.0","rollup":"2.63.0","should":"13.2.3","typescript":"4.5.4","@babel/core":"7.16.7","@types/mocha":"9.0.0","@babel/preset-env":"7.16.8","eslint-plugin-node":"11.1.0","rollup-plugin-babel":"4.4.0","eslint-plugin-import":"2.25.4","rollup-plugin-terser":"7.0.2","eslint-plugin-promise":"5.2.0","eslint-config-standard":"16.0.3","eslint-plugin-standard":"5.0.0","rollup-plugin-commonjs":"10.1.0","@typescript-eslint/parser":"5.9.1","rollup-plugin-node-resolve":"5.2.0","@babel/plugin-transform-runtime":"7.16.8","babel-plugin-add-module-exports":"1.0.4","@typescript-eslint/eslint-plugin":"5.9.1","eslint-plugin-require-path-exists":"1.1.9"},"_npmOperationalInternal":{"tmp":"tmp/next-language-detector_1.0.1_1642077530876_0.02599785330569726","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"next-language-detector","version":"1.0.2","keywords":["i18next","i18next-languageDetector","next","next.js","nextjs"],"license":"MIT","_id":"next-language-detector@1.0.2","maintainers":[{"name":"adrai","email":"adriano@raiano.ch"},{"name":"jamuhl","email":"jan.muehlemann@gmail.com"}],"homepage":"https://github.com/adrai/next-language-detector","bugs":{"url":"https://github.com/adrai/next-language-detector/issues"},"tsd":{"directory":"test/types"},"dist":{"shasum":"5489db1857a7e325082612ee75f7c3d0a899a0ab","tarball":"https://registry.npmjs.org/next-language-detector/-/next-language-detector-1.0.2.tgz","fileCount":17,"integrity":"sha512-kw6oMrvSZgT4JW2xay+nOJszKYO0IbBBn209TWwaCD7neBpH/DHZu5tISboKwaOHbrYSptEcUgX+L5Cmx0SJ6g==","signatures":[{"sig":"MEQCIH/shXPywyvqn/1ODFmUv8s3sR/p3UNMZOFN2l3zztSeAiANplRWMewYTK3FJhi0N2A4KfIcGRq5dsS/Zeq/tewUHA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8acHCRA9TVsSAnZWagAAg7AP/2ZYOxXvWUjd4IIGhPgP\nCwdYP+KvKIqmfZh1nBrkdop9QCJHw2yTQ2aS8eFuovUvHWeJKM7WQA+qNlq3\n7OBcYNvLr189FGA1NdUttcGgrsYBoltvYCG2E/Hua5a67/jSzLry8FQ/sjWD\ny3y23xkslSywU4FHFNdszXjLRuwp+6mCDKxkCn6Qgh/vgMWA85duAA3YS1NA\nW4KzFaAJNXRKicEsdtq7OuLZ7EdYvgKKLAFuTIE54usC/QbWinZnQ7EfJB9Y\nam/+WLfPu+wEhKpzf59xqTwJSBKIYDhWORBZbM+nWxud3YD3q0NtbgyCJ4Yw\naHKveVZrBYtLdw/4WkQzOhAcVeb+uhm4E3E+fv95Xd56A8O03K9wXRRRX5z3\nhY8RlSh0yYmKX4VJC0q57eNRAWh4FIrEzwAUUtrF9SkYuQW+6Vs1Z2cQRZht\nM7d+oCdm1gNFbWXexhpQvAfg+W09wahhfyZn0Ph7Rp0fQUVae4aqnduWbx6W\nuIFdqnyy+Th54F4GkdhGgtI5IzkxVG1dd7PfneKuQTAvgKQBnPr1EuYZYymp\nK1ulhmbZWRi/jID6NIlvC24AZHpupJmH0yIXx56x/GJxi+8iXlszLKkMuFkz\nVKsjjelIM1B6M4as7Orayx70HzXbZmo0yafYCqEgFTM3cmOKNepMbL/qaId9\nTot1\r\n=y+d2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/cjs/index.js","type":"module","types":"./index.d.ts","module":"./dist/esm/index.js","browser":"./dist/umd/i18nextNextLanguageDetector.js","exports":{".":{"default":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./cjs":{"default":"./dist/cjs/index.js"},"./esm":{"default":"./dist/esm/index.js"},"./src":{"default":"./src/index.js"},"./package.json":"./package.json"},"gitHead":"e34fa403d7c61ac52b1b7f203ef4bb1abe445d83","scripts":{"lint":"npm run lint:javascript && npm run lint:typescript","test":"npm run lint && mocha --colors --reporter spec --recursive test/*.js","build":"rm -rf dist && rollup -c && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json","test:all":"npm run test && npm run test:typescript","preversion":"npm run test && npm run build && git push","postversion":"git push && git push --tags","lint:javascript":"eslint .","lint:typescript":"eslint -c .ts.eslintrc *.d.ts test/types/**/*.test-d.ts","test:typescript":"tsd"},"_npmUser":{"name":"adrai","email":"adriano@raiano.ch"},"repository":{"url":"git+ssh://git@github.com/adrai/next-language-detector.git","type":"git"},"_npmVersion":"8.1.2","description":"This package helps to handle language detection in next.js when using static servers only.","directories":{},"_nodeVersion":"16.13.2","dependencies":{"@babel/runtime":"7.16.7","i18next-browser-languagedetector":"6.1.2"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"0.19.1","mocha":"9.1.3","sinon":"12.0.1","eslint":"7.32.0","rollup":"2.63.0","should":"13.2.3","typescript":"4.5.4","@babel/core":"7.16.7","@types/mocha":"9.0.0","@babel/preset-env":"7.16.8","eslint-plugin-node":"11.1.0","rollup-plugin-babel":"4.4.0","eslint-plugin-import":"2.25.4","rollup-plugin-terser":"7.0.2","eslint-plugin-promise":"5.2.0","eslint-config-standard":"16.0.3","eslint-plugin-standard":"5.0.0","rollup-plugin-commonjs":"10.1.0","@typescript-eslint/parser":"5.9.1","rollup-plugin-node-resolve":"5.2.0","@babel/plugin-transform-runtime":"7.16.8","babel-plugin-add-module-exports":"1.0.4","@typescript-eslint/eslint-plugin":"5.9.1","eslint-plugin-require-path-exists":"1.1.9"},"_npmOperationalInternal":{"tmp":"tmp/next-language-detector_1.0.2_1643226887633_0.6351873896137101","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"next-language-detector","version":"1.1.0","keywords":["i18next","i18next-languageDetector","next","next.js","nextjs"],"license":"MIT","_id":"next-language-detector@1.1.0","maintainers":[{"name":"adrai","email":"adriano@raiano.ch"},{"name":"jamuhl","email":"jan.muehlemann@gmail.com"}],"homepage":"https://github.com/i18next/next-language-detector","bugs":{"url":"https://github.com/i18next/next-language-detector/issues"},"tsd":{"directory":"test/types"},"dist":{"shasum":"1f5573f6e20c32ac6f038157cf3e35f19cb80a19","tarball":"https://registry.npmjs.org/next-language-detector/-/next-language-detector-1.1.0.tgz","fileCount":18,"integrity":"sha512-TLXMSqweKrrIID0a+PxotItN8MBwIurso3oyz9Odq1VPv3/sdrSpfam2V2eoF462+ibjtSW/P0Xs7gFmeA4Ktw==","signatures":[{"sig":"MEYCIQCkUlQk6GXl4MfUddlBFqxp8X2EAi64aHVOyz798+0/+QIhAPARYtHQsVMIc+6KAfbeMQU+/UqtgjyyZHXQAfJukx8b","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55675},"main":"./dist/cjs/index.js","type":"module","types":"./index.d.mts","module":"./dist/esm/index.js","browser":"./dist/umd/i18nextNextLanguageDetector.js","exports":{".":{"types":{"import":"./index.d.mts","require":"./index.d.ts"},"default":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./cjs":{"types":"./index.d.ts","default":"./dist/cjs/index.js"},"./esm":{"types":"./index.d.mts","default":"./dist/esm/index.js"},"./src":{"default":"./src/index.js"},"./package.json":"./package.json"},"gitHead":"183247c514de6e1cef51e0d752580326df4ded10","scripts":{"lint":"npm run lint:javascript && npm run lint:typescript","test":"npm run lint && mocha --colors --reporter spec --recursive test/*.js","build":"rm -rf dist && rollup -c && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json","test:all":"npm run test && npm run test:typescript","preversion":"npm run test && npm run build && git push","postversion":"git push && git push --tags","lint:javascript":"eslint .","lint:typescript":"eslint -c .ts.eslintrc *.d.ts *.d.mts test/types/**/*.test-d.ts","test:typescript":"tsd"},"_npmUser":{"name":"adrai","email":"adriano@raiano.ch"},"repository":{"url":"git+ssh://git@github.com/i18next/next-language-detector.git","type":"git"},"_npmVersion":"9.8.1","description":"This package helps to handle language detection in next.js when using static servers only.","directories":{},"_nodeVersion":"18.18.2","dependencies":{"@babel/runtime":"7.16.7","i18next-browser-languagedetector":"7.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"0.19.1","mocha":"9.1.3","sinon":"12.0.1","eslint":"7.32.0","rollup":"2.63.0","should":"13.2.3","typescript":"4.5.4","@babel/core":"7.16.7","@types/mocha":"9.0.0","@babel/preset-env":"7.16.8","eslint-plugin-node":"11.1.0","rollup-plugin-babel":"4.4.0","eslint-plugin-import":"2.25.4","rollup-plugin-terser":"7.0.2","eslint-plugin-promise":"5.2.0","eslint-config-standard":"16.0.3","eslint-plugin-standard":"5.0.0","rollup-plugin-commonjs":"10.1.0","@typescript-eslint/parser":"5.9.1","rollup-plugin-node-resolve":"5.2.0","@babel/plugin-transform-runtime":"7.16.8","babel-plugin-add-module-exports":"1.0.4","@typescript-eslint/eslint-plugin":"5.9.1","eslint-plugin-require-path-exists":"1.1.9"},"_npmOperationalInternal":{"tmp":"tmp/next-language-detector_1.1.0_1699652372951_0.9884464615459221","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"next-language-detector","version":"1.1.1","description":"This package helps to handle language detection in next.js when using static servers only.","keywords":["i18next","i18next-languageDetector","next","next.js","nextjs"],"homepage":"https://github.com/i18next/next-language-detector","repository":{"type":"git","url":"git+ssh://git@github.com/i18next/next-language-detector.git"},"bugs":{"url":"https://github.com/i18next/next-language-detector/issues"},"type":"module","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","browser":"./dist/umd/i18nextNextLanguageDetector.js","types":"./index.d.mts","exports":{"./package.json":"./package.json",".":{"types":{"require":"./index.d.ts","import":"./index.d.mts"},"require":"./dist/cjs/index.js","default":"./dist/esm/index.js"},"./cjs":{"types":"./index.d.ts","default":"./dist/cjs/index.js"},"./esm":{"types":"./index.d.mts","default":"./dist/esm/index.js"},"./src":{"default":"./src/index.js"}},"scripts":{"lint:javascript":"eslint .","lint:typescript":"eslint -c .ts.eslintrc *.d.ts *.d.mts test/types/**/*.test-d.ts","lint":"npm run lint:javascript && npm run lint:typescript","build":"rm -rf dist && rollup -c && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json","test:typescript":"tsd","test":"npm run lint && mocha --colors --reporter spec --recursive test/*.js","test:all":"npm run test && npm run test:typescript","preversion":"npm run test && npm run build && git push","postversion":"git push && git push --tags"},"license":"MIT","dependencies":{"@babel/runtime":"7.28.3","i18next-browser-languagedetector":"8.2.0"},"devDependencies":{"@babel/core":"7.28.3","@babel/plugin-transform-runtime":"7.28.3","@babel/preset-env":"7.28.3","@types/mocha":"9.0.0","@typescript-eslint/eslint-plugin":"5.9.1","@typescript-eslint/parser":"5.9.1","babel-plugin-add-module-exports":"1.0.4","eslint":"7.32.0","eslint-config-standard":"16.0.3","eslint-plugin-import":"2.25.4","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"5.2.0","eslint-plugin-require-path-exists":"1.1.9","eslint-plugin-standard":"5.0.0","mocha":"9.1.3","rollup":"2.63.0","rollup-plugin-babel":"4.4.0","rollup-plugin-commonjs":"10.1.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-terser":"7.0.2","should":"13.2.3","sinon":"12.0.1","tsd":"0.19.1","typescript":"4.5.4"},"tsd":{"directory":"test/types"},"_id":"next-language-detector@1.1.1","gitHead":"b0fcb28990c2fb6a9a7e41d69bb43d727e1eae8b","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-XLd6d+jT2xrOQF+e3BnYbSeDfWQQlcZ03BS65uztTqdIN9RyEEgkEOSgZZpUH7pL9PAKowYilnkiTh3uOemQtw==","shasum":"fd045b4dff078256423254d6f133f7b23c0f01a2","tarball":"https://registry.npmjs.org/next-language-detector/-/next-language-detector-1.1.1.tgz","fileCount":18,"unpackedSize":56372,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBLIRhSX0hLqmir2h6FTtHZxrAwUWEHlGH/wRS2KXNkHAiEAtsvNmN3rbl1uEpQPR9pfLwBPCiHgwdC4ZHrOHCBUJyc="}]},"_npmUser":{"name":"adrai","email":"adriano@raiano.ch"},"directories":{},"maintainers":[{"name":"adrai","email":"adriano@raiano.ch"},{"name":"jamuhl","email":"jan.muehlemann@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/next-language-detector_1.1.1_1756377998205_0.5527690095279401"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-06T15:20:58.587Z","modified":"2025-08-28T10:46:38.587Z","1.0.0":"2021-12-06T15:20:58.778Z","1.0.1":"2022-01-13T12:38:51.003Z","1.0.2":"2022-01-26T19:54:47.750Z","1.1.0":"2023-11-10T21:39:33.216Z","1.1.1":"2025-08-28T10:46:38.391Z"},"bugs":{"url":"https://github.com/i18next/next-language-detector/issues"},"license":"MIT","homepage":"https://github.com/i18next/next-language-detector","keywords":["i18next","i18next-languageDetector","next","next.js","nextjs"],"repository":{"type":"git","url":"git+ssh://git@github.com/i18next/next-language-detector.git"},"description":"This package helps to handle language detection in next.js when using static servers only.","maintainers":[{"name":"adrai","email":"adriano@raiano.ch"},{"name":"jamuhl","email":"jan.muehlemann@gmail.com"}],"readme":"# Introduction\n\n[![Actions](https://github.com/i18next/next-language-detector/workflows/node/badge.svg)](https://github.com/i18next/next-language-detector/actions?query=workflow%3Anode)\n[![npm version](https://img.shields.io/npm/v/next-language-detector.svg?style=flat-square)](https://www.npmjs.com/package/next-language-detector)\n\nThis package helps to handle language detection in Next.js when using static servers only.\n\n>Error: i18n support is not compatible with next export. See here for more info on deploying: https://nextjs.org/docs/deployment\n\nIf this error message sounds familiar to you, this module may help.\n\n# Getting started\n\nSource can be loaded via [npm](https://www.npmjs.com/package/next-language-detector).\n\n```bash\n# npm package\n$ npm install next-language-detector\n```\n\n## Usage:\n\n**A complete example can be found [here](https://github.com/i18next/next-language-detector/tree/main/examples/basic).**\n\n**And for a step by step guide please have a look at [this tutorial](https://locize.com/blog/next-i18n-static).**\n\n```js\n// lngDetector.js\nimport languageDetector from 'next-language-detector'\nimport i18nextConfig from '../next-i18next.config'\n\nexport default languageDetector({\n  supportedLngs: i18nextConfig.i18n.locales,\n  fallbackLng: i18nextConfig.i18n.defaultLocale\n})\n```\n\n```js\n// redirect.js\nimport { useEffect } from 'react'\nimport { useRouter } from 'next/router'\nimport lngDetector from './lngDetector'\n\nexport const useRedirect = (to) => {\n  const router = useRouter()\n  to = to || router.asPath\n\n  // language detection\n  useEffect(() => {\n    const detectedLng = lngDetector.detect()\n    if (to.startsWith('/' + detectedLng) && router.route === '/404') {\n      router.replace('/' + detectedLng + router.route)\n      return\n    }\n\n    lngDetector.cache(detectedLng)\n    router.replace('/' + detectedLng + to)\n  })\n\n  return <></>\n}\n```\n\n```js\n// index.js\nimport { useRedirect } from '../lib/redirect';\n\nexport default function Redirect() {\n  useRedirect();\n  return <></>;\n};\n```\n","readmeFilename":"README.md"}