{"_id":"@dvcol/vite-plugin-i18n","_rev":"3-39691620902012db8eb83a361f6c3d31","name":"@dvcol/vite-plugin-i18n","dist-tags":{"latest":"1.1.3"},"versions":{"1.1.0":{"name":"@dvcol/vite-plugin-i18n","type":"module","version":"1.1.0","description":"Vite plugin to generate merged i18n locales","homepage":"https://github.com/dvcol/vite-plugin-i18n","bugs":{"url":"https://github.com/dvcol/vite-plugin-i18n/issues"},"repository":{"type":"git","url":"git+https://github.com/dvcol/vite-plugin-i18n.git"},"keywords":["typescript","library","vite","wite-plugin","i18n","locale","json"],"license":"MIT","author":{"name":"dvcol"},"engines":{"node":">=18","pnpm":">= 7"},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js","types":"./dist/index.d.ts"}},"publishConfig":{"access":"public"},"dependencies":{"vite":"^4.2.1","chalk":"^5.2.0"},"devDependencies":{"@types/node":"^18.15.11","@commitlint/cli":"^17.5.1","@commitlint/config-conventional":"^17.4.4","@dvcol/eslint-plugin-presets":"^1.3.4","eslint":"^8.37.0","extract-changelog-release":"^1.0.2","husky":"^8.0.3","prettier":"^2.8.7","standard-version":"^9.5.0","tsup":"^6.7.0","typescript":"^4.9.5"},"scripts":{"build":"tsup lib/index.ts --format cjs,esm --dts --clean","watch":"npm run build -- --watch lib","lint":"eslint \"+(lib|scripts)/**\"","lint:fix":"eslint \"+(lib|scripts)/**\" --fix","release":"standard-version","release:changelog":"extract-changelog-release > RELEASE.md"},"_id":"@dvcol/vite-plugin-i18n@1.1.0","_integrity":"sha512-l5lbLNQ6xw4TgWSeu4+g8O95Upq4W2WUxwywpNhZXHSgK1rMfiSC4B2Fk2A5gTeOXw24ipaC6K+/yS6ZExvS3g==","_resolved":"/tmp/2ba5ce1674ed0194b0662cb722bca5dc/dvcol-vite-plugin-i18n-1.1.0.tgz","_from":"file:dvcol-vite-plugin-i18n-1.1.0.tgz","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-l5lbLNQ6xw4TgWSeu4+g8O95Upq4W2WUxwywpNhZXHSgK1rMfiSC4B2Fk2A5gTeOXw24ipaC6K+/yS6ZExvS3g==","shasum":"f0dc3f537c43a5a19203737d83b3fdad8b8310f1","tarball":"https://registry.npmjs.org/@dvcol/vite-plugin-i18n/-/vite-plugin-i18n-1.1.0.tgz","fileCount":8,"unpackedSize":28139,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8QfLkjlTS7wir9nuTvEsY+vM0jxhlith60p5T4KeCfQIgQcKnwIi9VAGcJsXrStIJfbZVAuCN+EyVTWV2bkkNYnw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLybjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxWw//cZ2fJBAq2Q5I/+I5PtDKcZLIl21Na7zcbCLRkRMnV9BEij0e\r\nfsWsnAUR59406wfd1jjhLKjeaF2dx+p/oK3rH5UZvBd4b4WuuMtyGmxKylt3\r\nQTbgFHDa0AsmUmLaXd93pLwqDJWv33KWbDrE2EuswVC2hQ1L4c5Oke0WFqiD\r\n9ElwDIKD8vn1ojSaQAKBRUWlu60vmKbnjT5y6dRCbfp7eH8ita1xA46oGTFg\r\nwXy3hS24kJd4j2EzMbXpbF3VJh/mfKf5/ZWLPVWHFJcTF4uImNXVyLEe+9EV\r\nmGp4M72U8rDDQQ2ydgnJ4InnlebtwmFhOzWVo2mGnHXTmE8ETSlq+Ua/mEnU\r\nhrfZTSudlpGMViYBBi1yb7H3yPHhNOJ3KMhkZYPtrLq+3FmH5loiT9fquoux\r\nKVmJLzR/oYjHPXZwpgPLm2SMQMpYiO8+fYD33jv9mqS/WgekL2kpdE/Y/+Mi\r\nwdGqyLITZgvlICJm8IO4yjdCoRwSIGPY8y7YnmAjkDFrL9hVS2vpVU8GWrgD\r\nrVwx3A1yZySniuVAw1WIvOMLdgcpXhZFIu9RbgK80tNEifvi5gK8VpXUyuwB\r\nRVEXEeYKbz+sWrQKDBifH45j3oasr2PzjiB2cNBB9iWNgFlOKOex8ZS8uqti\r\n1Ia0Hw2aB8oaaV55l/CTmJGAX95uPw7VJvM=\r\n=aVgt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dvcol","email":"dvcol.public@gmail.com"},"directories":{},"maintainers":[{"name":"dvcol","email":"dvcol.public@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-i18n_1.1.0_1680811747606_0.4730850692854447"},"_hasShrinkwrap":false},"1.1.1":{"name":"@dvcol/vite-plugin-i18n","type":"module","version":"1.1.1","description":"Vite plugin to generate merged i18n locales","homepage":"https://github.com/dvcol/vite-plugin-i18n","bugs":{"url":"https://github.com/dvcol/vite-plugin-i18n/issues"},"repository":{"type":"git","url":"git+https://github.com/dvcol/vite-plugin-i18n.git"},"keywords":["typescript","library","vite","wite-plugin","i18n","locale","json"],"license":"MIT","author":{"name":"dvcol"},"engines":{"node":">=18","pnpm":">= 7"},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js","types":"./dist/index.d.ts"},"./types":{"types":"./types/index.d.ts"},"./*":"./*"},"publishConfig":{"access":"public"},"dependencies":{"vite":"^4.2.1","chalk":"^5.2.0"},"devDependencies":{"@types/node":"^18.15.11","@commitlint/cli":"^17.5.1","@commitlint/config-conventional":"^17.4.4","@dvcol/eslint-plugin-presets":"^1.3.4","eslint":"^8.37.0","extract-changelog-release":"^1.0.2","husky":"^8.0.3","prettier":"^2.8.7","standard-version":"^9.5.0","tsup":"^6.7.0","typescript":"^4.9.5"},"scripts":{"build":"tsup lib/index.ts --format cjs,esm --dts --clean","watch":"npm run build -- --watch lib","lint":"eslint \"+(lib|scripts)/**\"","lint:fix":"eslint \"+(lib|scripts)/**\" --fix","release":"standard-version","release:changelog":"extract-changelog-release > RELEASE.md"},"_id":"@dvcol/vite-plugin-i18n@1.1.1","_integrity":"sha512-4zYvPEsCC3FHem7Q7VH+WDxa/F/we8XNcTvef4Y2DKcjXn5QpjWmIzPCtkVkKrtzVWRc/r/WOtgXR9pUQmSIiQ==","_resolved":"/tmp/23bcf17b51dc67c5661be17e89a0d170/dvcol-vite-plugin-i18n-1.1.1.tgz","_from":"file:dvcol-vite-plugin-i18n-1.1.1.tgz","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-4zYvPEsCC3FHem7Q7VH+WDxa/F/we8XNcTvef4Y2DKcjXn5QpjWmIzPCtkVkKrtzVWRc/r/WOtgXR9pUQmSIiQ==","shasum":"c73dd0f772b3c06d209d6cde5202436403ceef18","tarball":"https://registry.npmjs.org/@dvcol/vite-plugin-i18n/-/vite-plugin-i18n-1.1.1.tgz","fileCount":9,"unpackedSize":29453,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEnyyrHIbQY5yviWhl6IgMaRYeu5HGi/tyN25vuQKZUbAiEAlQNIW3PvHqdM7zC5xzf/3mo9EvYQQiOW3wl5wDiNbPg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLztTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpmcw//VBof+dw3A+UQhv00iDsiXoudTG3nXMC4qf0+WqbhnP9Jr69B\r\nUccBR5RVUDm3AOXAAEqsQtxYOET1M8XrFGdVMqR8gGhfT4J+JoPJqAHm4JP2\r\nG+L93Hn7Lg8QIQyMtWDgmuNRMUCrvicd2qSdhGQu8D2HOF0Az9a9N4WmK3hS\r\nrB3xQN9IJ+N+bkBWEMEgXgMOaS6ghTY/XRYy65YQfSiWfUdgOduSXMgaPHBN\r\nE6XUBsq1Z2UZeLrFkvdd/7cJGozVkkCv8XY8yIhRV5ywiyBxBxLZ6IOa94gn\r\nG/Ao7LSaQRqp7J6U+ESIoJ5slKQRsdLXgC+21xTSWDRxpRcCFJDApl9G1qId\r\nNm9h0t6ITTHLb7orjplbgpwD/MJ3O8hwmuaK+fZmn4P8FJC4k8yP+vJFKhS3\r\nYRfcdAGz7IcxarTe9fn/6ugyPlz8mfQ8EOTUKOB1WBGGNaHC9sXUMlGDyFu9\r\nwYQLjxohoQcGcjqjv5fbqLvXvBRbyz1QMw+a3Tv+gYkthoIgL6hSNfz4U2ZA\r\nUk4ky+9rVjGhPEuIgFiQyTlYOcTnXWgvAhAiI/bHGkNT7NPRQYdu8+QQHZw3\r\nkczqBMigvrZPJfNI9v0mN17TABlWRX7rHlFXsdl0dXD+4a56VhPwPe0HV4db\r\nBjwkQ7gY6d6zjXzUekEckRNdfXhCyGaieaQ=\r\n=rX25\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dvcol","email":"dvcol.public@gmail.com"},"directories":{},"maintainers":[{"name":"dvcol","email":"dvcol.public@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-i18n_1.1.1_1680816979504_0.9452393840402344"},"_hasShrinkwrap":false},"1.1.2":{"name":"@dvcol/vite-plugin-i18n","type":"module","version":"1.1.2","description":"Vite plugin to generate merged i18n locales","homepage":"https://github.com/dvcol/vite-plugin-i18n","bugs":{"url":"https://github.com/dvcol/vite-plugin-i18n/issues"},"repository":{"type":"git","url":"git+https://github.com/dvcol/vite-plugin-i18n.git"},"keywords":["typescript","library","vite","wite-plugin","i18n","locale","json"],"license":"MIT","author":{"name":"dvcol"},"engines":{"node":">=18","pnpm":">= 7"},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js","types":"./dist/index.d.ts"},"./types":{"types":"./types/index.d.ts"},"./*":"./*"},"publishConfig":{"access":"public"},"dependencies":{"vite":"^4.2.1","chalk":"^5.2.0"},"devDependencies":{"@types/node":"^18.15.11","@commitlint/cli":"^17.5.1","@commitlint/config-conventional":"^17.4.4","@dvcol/eslint-plugin-presets":"^1.3.4","eslint":"^8.37.0","extract-changelog-release":"^1.0.2","husky":"^8.0.3","prettier":"^2.8.7","standard-version":"^9.5.0","tsup":"^6.7.0","typescript":"^4.9.5"},"scripts":{"build":"tsup lib/index.ts --format cjs,esm --dts --clean","watch":"npm run build -- --watch lib","lint":"eslint \"+(lib|scripts)/**\"","lint:fix":"eslint \"+(lib|scripts)/**\" --fix","release":"standard-version","release:changelog":"extract-changelog-release > RELEASE.md"},"_id":"@dvcol/vite-plugin-i18n@1.1.2","_integrity":"sha512-SQxoPNjzYEzAxfJMv392ioGU1+4YP5cpAURonbeeqKTDIw7N9OdLpgbla8s4ZfFetbZX0rg76azs7lZbSAIflg==","_resolved":"/tmp/d87fed617c18f45f7f43ae2f01c1d30b/dvcol-vite-plugin-i18n-1.1.2.tgz","_from":"file:dvcol-vite-plugin-i18n-1.1.2.tgz","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-SQxoPNjzYEzAxfJMv392ioGU1+4YP5cpAURonbeeqKTDIw7N9OdLpgbla8s4ZfFetbZX0rg76azs7lZbSAIflg==","shasum":"cf177b29657900059718738362967ac207488344","tarball":"https://registry.npmjs.org/@dvcol/vite-plugin-i18n/-/vite-plugin-i18n-1.1.2.tgz","fileCount":9,"unpackedSize":29674,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGeLf/3isrhdQpfq5Wl2MwRfJZcPzpe3kHHvlgyWkVMwIgfmcveLJVcokBYcUztmNAKA9rd6zV2ox86d492grVE38="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkL0ETACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzoQ/+LPguF3u+/tPPVWDg4AYZhfX1jMTwkRAVTnKtZCx0M+oV3+0c\r\nRkT1bKIEFUq4MocngiWfR+HgLEpyvY3yuKJip+i1SGkQKXnw4Eac+2T00eds\r\na0w1nCxIeUPMvr5rUr3NUSavz6cLS1HRKSoBKn8pdT1vDzVuRsd2xHq0VFU+\r\npb3Yu24M7rfQTnZcSI4ayajRpWX0yxuJIsbcYvMmjkGdBGPgOiAVHDQ2EZ6T\r\nQH+uR+uaiyBvqDn9jMwo4IoBpPjTtv9oZcB201Td7wk9Yz0EYTRK5E/zakYB\r\nMo6vDh31N4lBLo5SbimqLK44Phkya+Kz8EUtyGn6TFJVbAiwKBrYSQBECP7i\r\ngFiH731nCJ8VedSuOuO0h+D3PI3L4zLrJv0AtwkLYob7ycEETRZY8fQXm5Yl\r\nFxic+NAjks38k+chXeM0RQntZtlhGdx4LWBGOlhYXOgKrapXo+9jtfxf3eOD\r\nzEDH4tATyiDQhIdl8Dor8KiOUF/9exJ/MRExrTMC/wQEx+lk9HcBBKVXzKaG\r\nCdLth15gOb61tgRka9Zcwawbu1sWMuh2KE68odckgvsA+HkwqhNaEBLgafjo\r\nSQNsMKW3JkaHesLYvu5LtJYbbQF+1i9ERgYk+mEtZgMHbl4bX4B2VC7wCZ65\r\nhJW0G5uK9MkrVlYFH0O9u3dQLkNht6tgYSg=\r\n=7ORI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dvcol","email":"dvcol.public@gmail.com"},"directories":{},"maintainers":[{"name":"dvcol","email":"dvcol.public@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-i18n_1.1.2_1680818450982_0.22205264994958052"},"_hasShrinkwrap":false},"1.1.3":{"name":"@dvcol/vite-plugin-i18n","type":"module","version":"1.1.3","description":"Vite plugin to generate merged i18n locales","homepage":"https://github.com/dvcol/vite-plugin-i18n","bugs":{"url":"https://github.com/dvcol/vite-plugin-i18n/issues"},"repository":{"type":"git","url":"git+https://github.com/dvcol/vite-plugin-i18n.git"},"keywords":["typescript","library","vite","wite-plugin","i18n","locale","json"],"license":"MIT","author":{"name":"dvcol"},"engines":{"node":">=18","pnpm":">= 7"},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js","types":"./dist/index.d.ts"},"./types":{"types":"./types/index.d.ts"},"./*":"./*"},"publishConfig":{"access":"public"},"dependencies":{"vite":"^4.2.1","chalk":"^5.2.0"},"devDependencies":{"@types/node":"^18.15.11","@commitlint/cli":"^17.5.1","@commitlint/config-conventional":"^17.4.4","@dvcol/eslint-plugin-presets":"^1.3.4","eslint":"^8.37.0","extract-changelog-release":"^1.0.2","husky":"^8.0.3","prettier":"^2.8.7","standard-version":"^9.5.0","tsup":"^6.7.0","typescript":"^4.9.5"},"scripts":{"build":"tsup lib/index.ts --format cjs,esm --dts --clean","watch":"npm run build -- --watch lib","lint":"eslint \"+(lib|scripts)/**\"","lint:fix":"eslint \"+(lib|scripts)/**\" --fix","release":"standard-version","release:changelog":"extract-changelog-release > RELEASE.md"},"_id":"@dvcol/vite-plugin-i18n@1.1.3","_integrity":"sha512-SsHH1UUGLtxuH9iZrzVziZ9njxidNi3j58iyWEmedYNo3KKHutDzu6JMKg1ZyvvCxNnEMasf5tjq7aRZw4cwmA==","_resolved":"/tmp/aef1f779233f28999c8ff69878b978c9/dvcol-vite-plugin-i18n-1.1.3.tgz","_from":"file:dvcol-vite-plugin-i18n-1.1.3.tgz","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-SsHH1UUGLtxuH9iZrzVziZ9njxidNi3j58iyWEmedYNo3KKHutDzu6JMKg1ZyvvCxNnEMasf5tjq7aRZw4cwmA==","shasum":"4aaa0be56a0774961e8923a4b9e21bd9dba3841a","tarball":"https://registry.npmjs.org/@dvcol/vite-plugin-i18n/-/vite-plugin-i18n-1.1.3.tgz","fileCount":9,"unpackedSize":30185,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF5RH2uXGvC6eAALnNYtcmw5R1YRb/bqjCq03kYGoZ63AiEAqTaTtBzteS/Tk7lDAna84xLeDK24VPjGOqpagtw0qL8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRRmIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4vw/+NtYh+X0ZHf3pttxuO9zApiy14O8blAMdqD87m8xk3hhfWvON\r\nfZICXxTByB24s+RIdZiEwe99dTNUlEYCx5lfjdC6pyvl70tdTZKonbcLThXJ\r\ngSV7nJWqaqMEvL9FZInNkU3D5OiyfGiTVFflwYluvt2qezfuBCvPSdw8qhNa\r\nGanZ+ud291mR9OT3D3V+CRIzEtL25hPKd0+PWnVLOI4LFw+diK7N2MNn6PZz\r\nXoaJ/VYOqm+OwRW2hJrCCmzEpPunejiv6VNfDifZIUv4DV2LqI1I74tIgLEp\r\nizZMJK0YY0nkdAkpsDspffrtGPbiEbildhLfeDzc5nfdNAdtbl7KNbwHN/3R\r\n2imxGlgy8BsdchiXvHcMnqiBjqpqqLWctJ5UNdcQWa1tvoOJgl9Nsdae4aEw\r\nPFjdPEuSh9YknXbDbVx/AEeMokS14pvL7yLLnbdwi2JgZPmWzzPLWjj1mrJg\r\n52vDHhklubpppPDtewvo0gz8ST/v2ZdjbGPayk5WzR2WZDqWd4hBDEs7C0i9\r\nK9cMHlTOtIZPrcgGhWZFmvbdA1FdYsgj/NDqPtRbgAzYUf7/oUEXio1PK8ZM\r\nJdk7cwAawI+AP+udhnk3pFmwJsVlvQTd8BH/8rMUqcXoZYgvulfxFjZRb+hT\r\nuTjNq55a8g2l5RWMi6nV4xG2Sy3w0MzWDLk=\r\n=MIfy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dvcol","email":"dvcol.public@gmail.com"},"directories":{},"maintainers":[{"name":"dvcol","email":"dvcol.public@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-i18n_1.1.3_1682250120437_0.7241117672304065"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-06T20:09:07.524Z","1.1.0":"2023-04-06T20:09:07.798Z","modified":"2023-04-23T11:42:00.715Z","1.1.1":"2023-04-06T21:36:19.667Z","1.1.2":"2023-04-06T22:00:51.145Z","1.1.3":"2023-04-23T11:42:00.608Z"},"maintainers":[{"name":"dvcol","email":"dvcol.public@gmail.com"}],"description":"Vite plugin to generate merged i18n locales","homepage":"https://github.com/dvcol/vite-plugin-i18n","keywords":["typescript","library","vite","wite-plugin","i18n","locale","json"],"repository":{"type":"git","url":"git+https://github.com/dvcol/vite-plugin-i18n.git"},"author":{"name":"dvcol"},"bugs":{"url":"https://github.com/dvcol/vite-plugin-i18n/issues"},"license":"MIT","readme":"# vite-plugin-i18n\n\n**vite-plugin-i18n** is a vite plugin to generate static json locale files, either in a virtual object or in a dist folder.\n\nIt parses all json i18n files in a given folder and merge them by language scope.\n\nFiles need to conform to the following structure to be properly parsed:\n\n```\nsrc\n├── ...\n├── root\n│   ├── locale.en.json\n│   ├── locale.es.json\n│   ├── locale.fr.json\n│   └── ...\n│   └── models\n│       ├── models.en.json\n│       ├── models.es.json\n│       ├── models.fr.json\n│       └── ...\n└── ...\n```\n\nWhere src/root is the given root folder containing files to be parsed.\n\n## Usage\n\n#### Install dev dependency :\n\n```shell\nyarn add vite-plugin-i18n -D\nnpm install vite-plugin-i18n --save-dev\npnpm install vite-plugin-i18n --save-dev\n```\n\n#### Add the plugin to your `vite.config.ts`:\n\n```typescript\n// vite.config.ts\nimport { viteI18nPlugin } from \"./vite-plugin-i18n\";\n\nexport default {\n  plugins: [\n    viteI18nPlugin({\n      path: \"src/i18n\",\n      out: \"dist/locale\",\n    }),\n  ],\n};\n```\n\n#### Use virtual module :\n\n```typescript\nimport { locales, watchLocales } from 'virtual:vite-plugin-i18n';\n\nconsole.info('My locales at runtime', locales);\n\nwatchLocales((data: Locale) => console.info('My locales on hot reload', data));\n```\n\n#### Use hot module reload :\n\n```typescript\nif (import.meta.hot) {\n  import.meta.hot.on('virtual:vite-plugin-i18n', ({ data }) => {\n    console.info(data) // new locale\n  })\n}\n```\n\n## API\n\n### options\n\n- Type: Object\n\n#### options.path\n\n- Type: `string`\n- Default: `undefined`\n\nThe path where the plugin will attempt to parse json formatted files into unified locales.\n\n#### options.out\n\n- Type: `boolean | string | { dir: string; name?: string } | (locale: string, messages: RecursiveRecord<string>) => string`\n- Default: `undefined`\n\nAn string, option object or resolver function to compute the filepath and filename of generated locales.\n\nBy default, the plugin will not write files and only generate a virtual module (see [vite virtual modules](https://vitejs.dev/guide/api-plugin.html#virtual-modules-convention))\n\nIf output is enabled the files will be generated with the following structure:\n\n```\ndist\n├── ...\n├── locales\n│   ├── en.json\n│   ├── es.json\n│   ├── fr.json\n│   └── ...\n└── ...\n```\n\nYou can provide a custom folder path, file name, or file name resolver like this:\n\n```typescript\nviteI18nPlugin({\n  path: \"src/i18n\",\n  out: \"dist/locales\",\n});\n```\n\n```typescript\n viteI18nPlugin({\n  path: \"src/i18n\",\n  out: {\n    dir: 'dist/_locales'\n    name: 'my-custom-name'\n  },\n})\n```\n\n```typescript\nviteI18nPlugin({\n  path: \"src/i18n\",\n  out: (locale, messages) => `prefix-${locale}-${messages[\"suffixe\"]}.json`,\n});\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}