{"_id":"i18next-resource-store-loader","_rev":"14-186dc7aa312b29bf9f95924edc317a98","name":"i18next-resource-store-loader","description":"a resStore loader for webpack and i18next","dist-tags":{"latest":"0.1.3"},"versions":{"0.0.1":{"name":"i18next-resource-store-loader","version":"0.0.1","author":{"name":"atroo","url":"info@atroo.de"},"description":"a resStore loader for webpack and i18next","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"https://github.com/atroo/i18next-loader"},"homepage":"https://github.com/atroo/i18next-loader","maintainers":[{"name":"atroo","email":"info@atroo.de"}],"gitHead":"21c5c578962245eb9b0f5e1c24af6f77b6f30d25","bugs":{"url":"https://github.com/atroo/i18next-loader/issues"},"_id":"i18next-resource-store-loader@0.0.1","scripts":{},"_shasum":"01cb7bd6cb0d6104daea963f34cfb8427faa9e20","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"atroo","email":"info@atroo.de"},"dist":{"shasum":"01cb7bd6cb0d6104daea963f34cfb8427faa9e20","tarball":"https://registry.npmjs.org/i18next-resource-store-loader/-/i18next-resource-store-loader-0.0.1.tgz","integrity":"sha512-LUbtkDX+KvOs2CyhXDli0ez+RPYhrXoDpakU5XAp48QohUcEMMlc+5RA/IgjKbK5NHfsIsdPD7eeRLEfei6HhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEN3bkclazHXOiHEIoasZJtU2wmhbD9gERXfPWqhZpZCAiBOqX+3ef6nu4fg5xxfqKKoLmfrPCgXlcsHqHFeXZkd/Q=="}]},"directories":{}},"0.0.2":{"name":"i18next-resource-store-loader","version":"0.0.2","author":{"name":"atroo","url":"info@atroo.de"},"description":"a resStore loader for webpack and i18next","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"keywords":["webpack","i18next","static","resource"],"repository":{"type":"git","url":"https://github.com/atroo/i18next-resource-store-loader"},"homepage":"https://github.com/atroo/i18next-resource-store-loader","maintainers":[{"name":"atroo","email":"info@atroo.de"}],"devDependencies":{"gulp":"^3.8.10","gulp-mocha":"^1.1.1","gulp-util":"^3.0.1","chai":"^1.9.2"},"gitHead":"541eb9e91924a6e9ce8155fdd418b6c19cef4447","bugs":{"url":"https://github.com/atroo/i18next-resource-store-loader/issues"},"_id":"i18next-resource-store-loader@0.0.2","scripts":{},"_shasum":"7bfc6d5fc77221f23201ba80e405a8118d422eaa","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"atroo","email":"info@atroo.de"},"dist":{"shasum":"7bfc6d5fc77221f23201ba80e405a8118d422eaa","tarball":"https://registry.npmjs.org/i18next-resource-store-loader/-/i18next-resource-store-loader-0.0.2.tgz","integrity":"sha512-HHPT4NPwwUmSTm/1d3itjvxxmXuFxFCTUcWt1sg5JdPwug11Qn7VGUv6QRJORguRTT79k/DvNf2VXql/5jEdxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZm/sOoiH0rFMrpALGXP275afO+dFXSx0+VMA48uYjcgIhAIL5B2LQuZNWT/4IlWltWRHZ8BWvwd+MjpA06bPvFamI"}]},"directories":{}},"0.0.3":{"name":"i18next-resource-store-loader","version":"0.0.3","author":{"name":"atroo","url":"info@atroo.de"},"description":"a resStore loader for webpack and i18next","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"keywords":["webpack","i18next","static","resource"],"repository":{"type":"git","url":"git+https://github.com/atroo/i18next-resource-store-loader.git"},"homepage":"https://github.com/atroo/i18next-resource-store-loader","maintainers":[{"name":"atroo","email":"info@atroo.de"}],"dependencies":{"loader-utils":"^0.2.11"},"devDependencies":{"chai":"^1.9.2","gulp":"^3.8.10","gulp-mocha":"^1.1.1","gulp-util":"^3.0.1"},"gitHead":"96f04e84751ba96e845d4bbbd68c34ffb73bfbcc","bugs":{"url":"https://github.com/atroo/i18next-resource-store-loader/issues"},"_id":"i18next-resource-store-loader@0.0.3","scripts":{},"_shasum":"17889395550d2f8eea3e63d1eb15441249ed286a","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"atroo","email":"info@atroo.de"},"dist":{"shasum":"17889395550d2f8eea3e63d1eb15441249ed286a","tarball":"https://registry.npmjs.org/i18next-resource-store-loader/-/i18next-resource-store-loader-0.0.3.tgz","integrity":"sha512-74A/esj7alreZmFJuwCJRUkYsyCExsXvFemQxTswUBdwiIOT8aYjlWtV2daw7d/EMDNKmrS06Up202UkOFhkww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6NpO1vKiheOeEynGYsWyxhxfRlEkY8KPqZAaoyHbQSAiEAtedOxV7N+GlE+GfP4Pwu2nPf+88x4e8pQNmjqeJ1l94="}]},"directories":{}},"0.0.4":{"name":"i18next-resource-store-loader","version":"0.0.4","author":{"name":"atroo","url":"info@atroo.de"},"description":"a resStore loader for webpack and i18next","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"keywords":["webpack","i18next","static","resource"],"repository":{"type":"git","url":"git+https://github.com/atroo/i18next-resource-store-loader.git"},"homepage":"https://github.com/atroo/i18next-resource-store-loader","maintainers":[{"name":"atroo","email":"info@atroo.de"}],"dependencies":{"loader-utils":"^0.2.11"},"devDependencies":{"chai":"^1.9.2","gulp":"^3.8.10","gulp-mocha":"^1.1.1","gulp-util":"^3.0.1"},"gitHead":"f5f751985b864a399786b059841e73f08793d7a4","bugs":{"url":"https://github.com/atroo/i18next-resource-store-loader/issues"},"_id":"i18next-resource-store-loader@0.0.4","scripts":{},"_shasum":"670a19e789c73b36886efde4e3c9de64f933f47c","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"atroo","email":"info@atroo.de"},"dist":{"shasum":"670a19e789c73b36886efde4e3c9de64f933f47c","tarball":"https://registry.npmjs.org/i18next-resource-store-loader/-/i18next-resource-store-loader-0.0.4.tgz","integrity":"sha512-zhu+TN4HnxaN3Cg86LUSkPLMS275iiE2aD/4wh4QfJKJc+JZx1fbXJHBK131jLvfgRlB5em06jLiBaGj0mkH8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHOg2gx/Wnnz7WqEykIvzwbBCKJwy9dnuRysZw2sX5O4AiEA+CWYQMRDLUTYxRjULSO4yryY9yFHr3u2lRQGk0sSRNQ="}]},"directories":{}},"0.0.5":{"name":"i18next-resource-store-loader","version":"0.0.5","author":{"name":"atroo","url":"info@atroo.de"},"description":"a resStore loader for webpack and i18next","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"keywords":["webpack","i18next","static","resource","loader"],"repository":{"type":"git","url":"git+https://github.com/atroo/i18next-resource-store-loader.git"},"homepage":"https://github.com/atroo/i18next-resource-store-loader","maintainers":[{"name":"atroo","email":"info@atroo.de"}],"dependencies":{"loader-utils":"^0.2.11"},"devDependencies":{"chai":"^1.9.2","gulp":"^3.8.10","gulp-mocha":"^1.1.1","gulp-util":"^3.0.1"},"gitHead":"1e39e06985540a637f28bf6c5fe4a218fca13544","bugs":{"url":"https://github.com/atroo/i18next-resource-store-loader/issues"},"_id":"i18next-resource-store-loader@0.0.5","scripts":{},"_shasum":"907a8d8ec4fdba3ea172dd3afa133310919215f1","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"atroo","email":"info@atroo.de"},"dist":{"shasum":"907a8d8ec4fdba3ea172dd3afa133310919215f1","tarball":"https://registry.npmjs.org/i18next-resource-store-loader/-/i18next-resource-store-loader-0.0.5.tgz","integrity":"sha512-dBloktFUvMlWymUUMy8Tg1tPBdtrDPNGBcKNvovdcQXZz7Qha+UVn4fDGSEE/9Ak4cfbTe5zBkVUayStBM/jHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAfP1sgbbzIazej2QoTlMr4ecrQ82SEtFs1fCJKRMbSGAiAXffKUqc9zTSf0rqbpFUmgJKtvgaCcs2YyjZWOY5hTAQ=="}]},"directories":{}},"0.1.0":{"name":"i18next-resource-store-loader","version":"0.1.0","author":{"name":"atroo","url":"info@atroo.de"},"description":"a resStore loader for webpack and i18next","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"keywords":["webpack","i18next","static","resource","loader"],"repository":{"type":"git","url":"git+https://github.com/atroo/i18next-resource-store-loader.git"},"homepage":"https://github.com/atroo/i18next-resource-store-loader","maintainers":[{"name":"atroo","email":"info@atroo.de"}],"dependencies":{"loader-utils":"^0.2.11","lodash":"^4.6.1"},"devDependencies":{"chai":"^1.9.2","gulp":"^3.8.10","gulp-mocha":"^1.1.1","gulp-util":"^3.0.1"},"gitHead":"721679a47253ec5bb3f8a59c05ef5c5ebe1fcaa1","bugs":{"url":"https://github.com/atroo/i18next-resource-store-loader/issues"},"_id":"i18next-resource-store-loader@0.1.0","scripts":{},"_shasum":"c44190f1222170a5315b1cc21a2e2513865523f1","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"atroo","email":"info@atroo.de"},"dist":{"shasum":"c44190f1222170a5315b1cc21a2e2513865523f1","tarball":"https://registry.npmjs.org/i18next-resource-store-loader/-/i18next-resource-store-loader-0.1.0.tgz","integrity":"sha512-fM3VZC8qSu/3QLvT762qZLQQcUf6Qc4JX2q8LR4jlh87hmjJtTlnATiDAyyhFDKQmEPa/qImimQr5qW9ScTl8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF9mmXPF0drFx5LzZ3HFGqrT3fZFFULV38SY+3pgA8jHAiEA3yyG/UTO6tfKms1kEEcBOea0JoEHnezya6CazOjeFlk="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/i18next-resource-store-loader-0.1.0.tgz_1458723098940_0.623890261631459"},"directories":{}},"0.1.1":{"name":"i18next-resource-store-loader","version":"0.1.1","author":{"name":"atroo","url":"info@atroo.de"},"description":"a resStore loader for webpack and i18next","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"keywords":["webpack","i18next","static","resource","loader"],"repository":{"type":"git","url":"git+https://github.com/atroo/i18next-resource-store-loader.git"},"homepage":"https://github.com/atroo/i18next-resource-store-loader","maintainers":[{"name":"atroo","email":"info@atroo.de"}],"dependencies":{"loader-utils":"^0.2.11","lodash":"^4.6.1"},"devDependencies":{"chai":"^1.9.2","gulp":"^3.8.10","gulp-mocha":"^1.1.1","gulp-util":"^3.0.1"},"gitHead":"a79451066e0d8ef8346c0355260376ba73efcc0e","bugs":{"url":"https://github.com/atroo/i18next-resource-store-loader/issues"},"_id":"i18next-resource-store-loader@0.1.1","scripts":{},"_shasum":"6630ba3a95c10711973b0352c32823a77f3f805f","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"atroo","email":"info@atroo.de"},"dist":{"shasum":"6630ba3a95c10711973b0352c32823a77f3f805f","tarball":"https://registry.npmjs.org/i18next-resource-store-loader/-/i18next-resource-store-loader-0.1.1.tgz","integrity":"sha512-0oIu6NKalDUgBwICBwtdHehFIK5abB1SZ5i1BOdOiaWwh5xWNlmkH0zXqoIHIUllTlukYf2viE0Kzy/gyR4MTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIzpmECD8ob1dzjQyBClfNjeMWV9K0ZJtgiYPVlj7CMwIgDnN5y3byHT+z39T2A2K2bZkQUZbGSzN1Y15bGvgZUPU="}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/i18next-resource-store-loader-0.1.1.tgz_1458725391422_0.8012777187395841"},"directories":{}},"0.1.2":{"name":"i18next-resource-store-loader","version":"0.1.2","author":{"name":"atroo","url":"info@atroo.de"},"description":"a resStore loader for webpack and i18next","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"keywords":["webpack","i18next","static","resource","loader"],"repository":{"type":"git","url":"git+https://github.com/atroo/i18next-resource-store-loader.git"},"homepage":"https://github.com/atroo/i18next-resource-store-loader","maintainers":[{"name":"atroo","email":"info@atroo.de"}],"dependencies":{"loader-utils":"^0.2.11","lodash":"^4.6.1"},"devDependencies":{"chai":"^1.9.2","gulp":"^3.8.10","gulp-mocha":"^1.1.1","gulp-util":"^3.0.1"},"gitHead":"40544f93c60eaa4277a53f25e4d9663b996950a7","bugs":{"url":"https://github.com/atroo/i18next-resource-store-loader/issues"},"_id":"i18next-resource-store-loader@0.1.2","scripts":{},"_shasum":"0e2b7aa498e47a3d89cb2f28dcc58fe3ff502b26","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"atroo","email":"info@atroo.de"},"dist":{"shasum":"0e2b7aa498e47a3d89cb2f28dcc58fe3ff502b26","tarball":"https://registry.npmjs.org/i18next-resource-store-loader/-/i18next-resource-store-loader-0.1.2.tgz","integrity":"sha512-Rg/IxSY1XvxsrKCzASQfxEHuDmrZ8Yt0mjvO+jJZpJ0LLvHceaZ9ZYpuc61vRe7avnKtY6weyHLD5DmwGaiBUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCn5EBgazgWfWBmmeERajG114DvXd3Kyq3TKeeXXkpZnwIhAIjCG40LBXjdapM9MWyCm1zIohEQlEatDKOSwG6lDS7v"}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18next-resource-store-loader-0.1.2.tgz_1497357221503_0.008732761954888701"},"directories":{}},"0.1.3":{"name":"i18next-resource-store-loader","version":"0.1.3","author":{"name":"atroo","url":"info@atroo.de"},"description":"a resStore loader for webpack and i18next","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"keywords":["webpack","i18next","static","resource","loader"],"repository":{"type":"git","url":"git+https://github.com/atroo/i18next-resource-store-loader.git"},"homepage":"https://github.com/atroo/i18next-resource-store-loader","maintainers":[{"name":"atroo","email":"info@atroo.de"}],"dependencies":{"lodash":"^4.6.1"},"devDependencies":{"chai":"^1.9.2","gulp":"^3.8.10","gulp-mocha":"^1.1.1","gulp-util":"^3.0.1"},"gitHead":"cb41358224d7ed9222602cdf1d6f2f4cd5d2969d","bugs":{"url":"https://github.com/atroo/i18next-resource-store-loader/issues"},"_id":"i18next-resource-store-loader@0.1.3","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-pPcW8b1+Vh2te2q1y1LvbONXcfs66Zm+boYceJzsV/VwMGvOajgXFmAxUd9EE49atuhVzkiXMbIJWvUrson4lA==","shasum":"d52a871c55fed2ff7dc11f523ea99542e2414dda","tarball":"https://registry.npmjs.org/i18next-resource-store-loader/-/i18next-resource-store-loader-0.1.3.tgz","fileCount":21,"unpackedSize":18648,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFvlSdLfuX+zklDBRZUMa5CbUhCycViooa6n9v/dsJeVAiEAlQPjtURfcLzB/ADQbhKWmO8yQN5JXRb9TI5bv9lV+m4="}]},"_npmUser":{"name":"atroo","email":"info@atroo.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18next-resource-store-loader_0.1.3_1695106547950_0.24676717312527674"},"_hasShrinkwrap":false}},"readme":"**Deprecated Package**\n\n> we don't activley use this package anymore as now overloading has become way more easy by requiring json data directly. By flattening key and exploding seperate files into the \"resources structure\" you can basically achieve the same if you want you i18next ressource bundled\n\n```\nimport germanBaseTrans from './translation-gen/de/de-base.json';\nimport englishBaseTrans from './translation-gen/en/en-base.json';\n\nconst germanTrans = {\n  ...germanBaseTrans,\n};\n\nconst englishTrans = {\n  ...englishBaseTrans,\n};\n\n...\n  i18n\n    .init({\n      resources: {\n        de: {\n          translation: germanTrans,\n        },\n        en: {\n          translation: englishTrans,\n        },\n      },\n      ...\n    })\n```\n\n# i18next-resource-store-loader\n\n`npm install i18next-resource-store-loader`\n\nThis loader generates the `resStore` config needed for **i18next** to avoid loading language resources via extra HTTP requests. It generates this config given a directory.\n\n## Usage\n\nIn this example we will assume the following file structure:\n\n```\n└── app\n    └── src\n        ├── assets\n        │   └── i18n\n        │       ├── index.js\n        │       ├── de\n        │       │   └── translation.json\n        │       └── en\n        │           └── translation.json\n        └── js\n            └── main.js\n```\n\nUse the loader in the following way:\n\n```javascript\n// File: main.js\nvar i18n = require(\"i18next\");\nvar resBundle = require(\"i18next-resource-store-loader!../assets/i18n/index.js\");\n\ni18n.init({\n  resources: resBundle,\n});\n\n// Use the resources as documented on i18next.com\ni18n.t(\"key\");\n```\n\nFor older versions of i18n < 2.X, use the old property names while setting up i18n\n\n```javascript\n// File: main.js\nvar i18n = require(\"i18next-client\");\nvar resBundle = require(\"i18next-resource-store-loader!../assets/i18n/index.js\");\n\ni18n.init({\n  resStore: resBundle,\n});\n\n// Use the resources as documented on i18next.com\n// e.g. 'translation' namespace\ni18n.t(\"translation:key\");\n```\n\nAnd you're done! The `index.js` can be empty, it's just needed to point the loader to the root directory of the locales.\n\n## Advanced Usage\n\n### Filter\n\nYou can filter files in your file structure using include and exclude parameters:\n\n```javascript\n// will only load files with json extension\nvar resBundle = require(\"i18next-resource-store-loader\" +\n  \"?include=\\\\.json$!../assets/i18n/index.js\");\n```\n\n```javascript\n// will skip files with json extension\nvar resBundle = require(\"i18next-resource-store-loader\" +\n  \"?exclude=\\\\.json$!../assets/i18n/index.js\");\n```\n\n### Override\n\nIn cases of customized applications it may be handy to have an easy way to replace particular parts of the res store bundle with customized values. The loader supports that by two query parameters.\n\n```javascript\n// will replace everyhting from base with what is existent in override\nvar resBundle = require(\"i18next-resource-store-loader\" +\n  \"?overrideDir=override&baseDir=base!../assets/i18n/index.js\");\n```\n\nThis configures the loader to work on a file structure like the following:\n\n```\n└── app\n    └── src\n        ├── assets\n        │   └── i18n\n        │       ├── index.js\n        │       ├── base\n        │       │   ├── de\n        │       │   │   └── translation.json\n        │       │   └── en\n        │       │       └── translation.json\n        │       └── override\n        │           └── en\n        │               └── translation.json\n        │\n        └── js\n            └── main.js\n```\n\nEverthing from base/en/translation.js will be overridden with stuff noted in override/en/translation.js - partial overrides are possible.\n","maintainers":[{"name":"atroo","email":"info@atroo.de"}],"time":{"modified":"2023-09-19T06:55:48.253Z","created":"2015-01-23T13:14:52.662Z","0.0.1":"2015-01-23T13:14:52.662Z","0.0.2":"2015-01-24T18:11:52.186Z","0.0.3":"2015-10-01T15:29:45.677Z","0.0.4":"2015-10-06T06:33:36.178Z","0.0.5":"2015-10-08T06:30:32.873Z","0.1.0":"2016-03-23T08:51:41.261Z","0.1.1":"2016-03-23T09:29:53.916Z","0.1.2":"2017-06-13T12:33:42.742Z","0.1.3":"2023-09-19T06:55:48.107Z"},"homepage":"https://github.com/atroo/i18next-resource-store-loader","repository":{"type":"git","url":"git+https://github.com/atroo/i18next-resource-store-loader.git"},"author":{"name":"atroo","url":"info@atroo.de"},"bugs":{"url":"https://github.com/atroo/i18next-resource-store-loader/issues"},"readmeFilename":"README.md","keywords":["webpack","i18next","static","resource","loader"],"users":{"ungurys":true}}