{"_id":"@actra-development-oss/ng-i18n-aot-loader","_rev":"13-b2cef1bf9e77843cbeb065bf5d82db88","name":"@actra-development-oss/ng-i18n-aot-loader","description":"angular 6 i18n pre-loader for webpack 4 to support AOT with dynamic locale changes","dist-tags":{"latest":"2.0.0"},"versions":{"0.0.5":{"name":"@actra-development-oss/ng-i18n-aot-loader","description":"angular 4 i18n pre-loader for webpack 2 to support AOT with dynamic locale changes","keywords":["angular","aot","i18n","webpack"],"license":"MIT","version":"0.0.5","author":{"name":"Gabriel Schuster - actra.development","email":"opensource@actra.de","url":"http://www.actra.de/velopment"},"homepage":"https://github.com/actra-development-oss/ng-i18n-aot-loader#readme","repository":{"type":"git","url":"git+ssh://git@github.com/actra-development-oss/ng-i18n-aot-loader.git"},"bugs":{"url":"https://github.com/actra-development-oss/ng-i18n-aot-loader/issues","email":"opensource@actra.de"},"publishConfig":{"registry":"https://registry.npmjs.com/","access":"public"},"dependencies":{"loader-utils":"^1.0.2","object-assign":"^4.1.0","fs":"^0.0.2","@angular/core":"^4.1.0","@angular/compiler":"^4.1.0"},"devDependencies":{},"peerDependencies":{},"files":["index.js","LICENSE","package.json","README.md"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"e4b730d31d6619ef5a918c5fe24d930425f73886","_id":"@actra-development-oss/ng-i18n-aot-loader@0.0.5","_shasum":"9d630b96007d0aa8713a00b3616074617ca65bff","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"g.schuster","email":"npmjs.com@actra.de"},"dist":{"shasum":"9d630b96007d0aa8713a00b3616074617ca65bff","tarball":"https://registry.npmjs.org/@actra-development-oss/ng-i18n-aot-loader/-/ng-i18n-aot-loader-0.0.5.tgz","integrity":"sha512-IOxzRQiKP7C8jhg0C83wCuupfix2lP+/i1EhiC2893+CjAJuLjDB+n12LtjRF2zB9n5cYrH0ftxrzk/aY1JKKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICuP7LU2n4bfQsEgx2WspiF/xeyLR+J2hsCYHt0d14JzAiArSSsiO1Ao9GJufSmTNlxtllw0dtclfpzuuZ3h0hm/gw=="}]},"maintainers":[{"name":"g.schuster","email":"npmjs.com@actra.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-i18n-aot-loader-0.0.5.tgz_1498738224596_0.9025824728887528"},"directories":{}},"1.0.0":{"name":"@actra-development-oss/ng-i18n-aot-loader","description":"angular 4 i18n pre-loader for webpack 2 to support AOT with dynamic locale changes","keywords":["angular","aot","i18n","webpack"],"license":"MIT","version":"1.0.0","author":{"name":"Gabriel Schuster - actra.development","email":"opensource@actra.de","url":"http://www.actra.de/velopment"},"homepage":"https://github.com/actra-development-oss/ng-i18n-aot-loader#readme","repository":{"type":"git","url":"git+ssh://git@github.com/actra-development-oss/ng-i18n-aot-loader.git"},"bugs":{"url":"https://github.com/actra-development-oss/ng-i18n-aot-loader/issues","email":"opensource@actra.de"},"publishConfig":{"registry":"https://registry.npmjs.com/","access":"public"},"dependencies":{"loader-utils":"^1.0.2","object-assign":"^4.1.0","fs":"^0.0.2","@angular/core":"^4.1.0","@angular/compiler":"^4.1.0"},"devDependencies":{"mkdirp":"0.5.1","ncp":"2.0.0","npm-run-all":"4.0.2","rimraf":"2.6.1","rollup":"0.43.0","uglify-js":"3.0.21","yarn":"0.24.6"},"peerDependencies":{"@angular/core":"^4.1.0"},"files":["dist/index.js","dist/index.umd.js","dist/index.umd.min.js","dist/CHANGELOG.md","dist/LICENSE","dist/package.json","dist/README.md"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"yarn run run-s -- build:clean build:copy","build:clean":"yarn run rimraf -- ./dist && yarn run mkdirp -- ./dist","build:copy":"yarn run run-s -- build:copy-1 build:copy-2 build:copy-3 build:copy-4 build:copy-5","build:copy-1":"yarn run ncp -- ./package.json ./dist/package.json","build:copy-2":"yarn run ncp -- ./CHANGELOG.md ./dist/CHANGELOG.md","build:copy-3":"yarn run ncp -- ./index.js ./dist/index.js","build:copy-4":"yarn run ncp -- ./LICENSE ./dist/LICENSE","build:copy-5":"yarn run ncp -- ./README.md ./dist/README.md","publishToNpmjs":"yarn run build && npm publish ./dist --access public --registry https://registry.npmjs.com/","mkdirp":"mkdirp","ncp":"ncp","rimraf":"rimraf","rollup":"rollup","run-s":"run-s","uglifyjs":"uglifyjs","yarn":"yarn"},"_id":"@actra-development-oss/ng-i18n-aot-loader@1.0.0","_shasum":"03f294c62a29253c279d63cfd478c9346f39f0eb","_from":"dist","_resolved":"file:dist","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"g.schuster","email":"npmjs.com@actra.de"},"dist":{"shasum":"03f294c62a29253c279d63cfd478c9346f39f0eb","tarball":"https://registry.npmjs.org/@actra-development-oss/ng-i18n-aot-loader/-/ng-i18n-aot-loader-1.0.0.tgz","integrity":"sha512-LpEigcFnQW0hsVAeTWo3q6D4IgVdoNfhVH5WYI48ztK+nfo/NQrA+a+3Ze4LycgmTk892s42Pp/w3PrTVgfAeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcOhPP63BPypD87RET/e2DRpHeZanliISC0JS31pfJ+wIgW90tecxaJcYg/qFKRIcIKD1eYCc+QQVkvG3E02xSNKc="}]},"maintainers":[{"name":"g.schuster","email":"npmjs.com@actra.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-i18n-aot-loader-1.0.0.tgz_1498796356331_0.20942965312860906"},"directories":{}},"1.0.2":{"name":"@actra-development-oss/ng-i18n-aot-loader","description":"angular 4 i18n pre-loader for webpack 2 to support AOT with dynamic locale changes","keywords":["angular","aot","i18n","webpack"],"license":"MIT","version":"1.0.2","author":{"name":"Gabriel Schuster - actra.development","email":"opensource@actra.de","url":"http://www.actra.de/velopment"},"homepage":"https://github.com/actra-development-oss/ng-i18n-aot-loader#readme","repository":{"type":"git","url":"git+ssh://git@github.com/actra-development-oss/ng-i18n-aot-loader.git"},"bugs":{"url":"https://github.com/actra-development-oss/ng-i18n-aot-loader/issues","email":"opensource@actra.de"},"dependencies":{"loader-utils":"1.1.0","object-assign":"4.1.1","fs":"0.0.2","@angular/core":"4.2.5","@angular/compiler":"4.2.5"},"files":["dist/index.js","dist/index.umd.js","dist/index.umd.min.js","dist/CHANGELOG.md","dist/LICENSE","dist/package.json","dist/README.md"],"main":"index.js","_id":"@actra-development-oss/ng-i18n-aot-loader@1.0.2","scripts":{},"_shasum":"6121df4cb1c1cd78a1ff7084ec55c256c4e0ce2d","_from":"dist","_resolved":"file:dist","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"g.schuster","email":"npmjs.com@actra.de"},"dist":{"shasum":"6121df4cb1c1cd78a1ff7084ec55c256c4e0ce2d","tarball":"https://registry.npmjs.org/@actra-development-oss/ng-i18n-aot-loader/-/ng-i18n-aot-loader-1.0.2.tgz","integrity":"sha512-RejnNk2WaBKTjqWbRkDPpRMw9k1tDDemz9xp2G978EGHrgebJjDYxvdaNTDl1CH/P2GZrdpgx/wslVRV6nZG4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCG3gjjOVnl8omZZCwb7bxYLNEZ3dvnnChg2XEIfE9ELQIgf/0zRQoOlQF61dkJANF13PxYNHqExd1e9xg5VVT8GUA="}]},"maintainers":[{"name":"g.schuster","email":"npmjs.com@actra.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-i18n-aot-loader-1.0.2.tgz_1500473951921_0.26542901154607534"},"directories":{}},"1.0.3":{"name":"@actra-development-oss/ng-i18n-aot-loader","description":"angular 4 i18n pre-loader for webpack 2 to support AOT with dynamic locale changes","keywords":["angular","aot","i18n","webpack"],"license":"MIT","version":"1.0.3","author":{"name":"Gabriel Schuster - actra.development","email":"opensource@actra.de","url":"http://www.actra.de/velopment"},"homepage":"https://github.com/actra-development-oss/ng-i18n-aot-loader#readme","repository":{"type":"git","url":"git+ssh://git@github.com/actra-development-oss/ng-i18n-aot-loader.git"},"bugs":{"url":"https://github.com/actra-development-oss/ng-i18n-aot-loader/issues","email":"opensource@actra.de"},"dependencies":{"loader-utils":"1.1.0","object-assign":"4.1.1","fs":"0.0.2","@angular/core":"4.2.5","@angular/compiler":"4.2.5","escape-html":"1.0.3"},"files":["dist/index.js","dist/index.umd.js","dist/index.umd.min.js","dist/CHANGELOG.md","dist/LICENSE","dist/package.json","dist/README.md"],"main":"index.js","_id":"@actra-development-oss/ng-i18n-aot-loader@1.0.3","scripts":{},"_shasum":"b9876dcf2a0c089849844bac9b9d2f10a644fc85","_from":"dist","_resolved":"file:dist","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"g.schuster","email":"npmjs.com@actra.de"},"dist":{"shasum":"b9876dcf2a0c089849844bac9b9d2f10a644fc85","tarball":"https://registry.npmjs.org/@actra-development-oss/ng-i18n-aot-loader/-/ng-i18n-aot-loader-1.0.3.tgz","integrity":"sha512-5VOsKJEGNInC9cyCLI8Aev3o6PPRLBWS6TEaDkakOuqWOrpV/ug6ZspTFeuoWNkldHCK+lzM+5u5VAVCbUgFYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEu9xxl3hUBpjklSmlzQtCea+nId9kgGPQ9C30mrYUWWAiB89D6KE8zLujL3AK45vLrUkptGhpBiYPj3CZPBSM7G8Q=="}]},"maintainers":[{"name":"g.schuster","email":"npmjs.com@actra.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-i18n-aot-loader-1.0.3.tgz_1502894755453_0.5417822632007301"},"directories":{}},"1.0.4":{"name":"@actra-development-oss/ng-i18n-aot-loader","description":"angular 4 i18n pre-loader for webpack 2 to support AOT with dynamic locale changes","keywords":["angular","aot","i18n","webpack"],"license":"MIT","version":"1.0.4","author":{"name":"Gabriel Schuster - actra.development","email":"opensource@actra.de","url":"http://www.actra.de/velopment"},"homepage":"https://github.com/actra-development-oss/ng-i18n-aot-loader#readme","repository":{"type":"git","url":"git+ssh://git@github.com/actra-development-oss/ng-i18n-aot-loader.git"},"bugs":{"url":"https://github.com/actra-development-oss/ng-i18n-aot-loader/issues","email":"opensource@actra.de"},"dependencies":{"loader-utils":"1.1.0","object-assign":"4.1.1","fs":"0.0.2","@angular/core":"4.2.5","@angular/compiler":"4.2.5","escape-html":"1.0.3"},"files":["dist/index.js","dist/index.umd.js","dist/index.umd.min.js","dist/CHANGELOG.md","dist/LICENSE","dist/package.json","dist/README.md"],"main":"index.js","_id":"@actra-development-oss/ng-i18n-aot-loader@1.0.4","scripts":{},"_shasum":"6fddd3ffb144b3858deda5e175aec84ca175f849","_from":"dist","_resolved":"file:dist","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"g.schuster","email":"npmjs.com@actra.de"},"dist":{"shasum":"6fddd3ffb144b3858deda5e175aec84ca175f849","tarball":"https://registry.npmjs.org/@actra-development-oss/ng-i18n-aot-loader/-/ng-i18n-aot-loader-1.0.4.tgz","integrity":"sha512-0dAITFUx/Xz/kYdpnlD3ViZ96wvwTKxtJn0hGOVYT+39ZGugzXeUuUBh55/El/sQbhy13nHk2rYWMCjBTKJ4Gg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGY2VulLh6jveA4A74XRVIkBiVOxH8hH7FEyOI1RO+iFAiBZbekA4f3p/95XhAzYBo8jmjQy5ICbzlmSHq+5AZpNkg=="}]},"maintainers":[{"name":"g.schuster","email":"npmjs.com@actra.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-i18n-aot-loader-1.0.4.tgz_1503418296648_0.2982666534371674"},"directories":{}},"1.0.5":{"name":"@actra-development-oss/ng-i18n-aot-loader","description":"angular 4 / 5 i18n pre-loader for webpack 2 to support AOT with dynamic locale changes","keywords":["angular","aot","i18n","webpack"],"license":"MIT","version":"1.0.5","author":{"name":"Gabriel Schuster - actra.development","email":"opensource@actra.de","url":"http://www.actra.de/velopment"},"homepage":"https://github.com/actra-development-oss/ng-i18n-aot-loader#readme","repository":{"type":"git","url":"git+ssh://git@github.com/actra-development-oss/ng-i18n-aot-loader.git"},"bugs":{"url":"https://github.com/actra-development-oss/ng-i18n-aot-loader/issues","email":"opensource@actra.de"},"dependencies":{"loader-utils":"1.1.0","object-assign":"4.1.1","fs":"0.0.2","@angular/core":"^4.1.0 || 5.0.0-beta.0 - 5.0.0-beta.3","@angular/compiler":"^4.1.0 || 5.0.0-beta.0 - 5.0.0-beta.3","escape-html":"1.0.3"},"files":["dist/index.js","dist/index.umd.js","dist/index.umd.min.js","dist/CHANGELOG.md","dist/LICENSE","dist/package.json","dist/README.md"],"main":"index.js","_id":"@actra-development-oss/ng-i18n-aot-loader@1.0.5","scripts":{},"_shasum":"02cb77e730fd32f67efea57e36abad9392bbf8dc","_from":"dist","_resolved":"file:dist","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"g.schuster","email":"npmjs.com@actra.de"},"dist":{"shasum":"02cb77e730fd32f67efea57e36abad9392bbf8dc","tarball":"https://registry.npmjs.org/@actra-development-oss/ng-i18n-aot-loader/-/ng-i18n-aot-loader-1.0.5.tgz","integrity":"sha512-rmhJF28BaBdnRH5paquE7LA4FjL0mVNVEpXLIpWM2Rzbtwb53e2kPtGpbYwCnu0UV4kofsWWGQsV+tOcM/P6Ww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFxuMfIW6H/bBugwXX+E6fBfsSJGB13bzxTxPSACkzkBAiEA4BByaONG2EksEc9cPT+zRs+HqVCInGjm1+Y/EdEAyCg="}]},"maintainers":[{"name":"g.schuster","email":"npmjs.com@actra.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-i18n-aot-loader-1.0.5.tgz_1503744082109_0.15178955951705575"},"directories":{}},"1.0.6":{"name":"@actra-development-oss/ng-i18n-aot-loader","description":"angular 4 / 5 i18n pre-loader for webpack 2 to support AOT with dynamic locale changes","keywords":["angular","aot","i18n","webpack"],"license":"MIT","version":"1.0.6","author":{"name":"Gabriel Schuster - actra.development","email":"opensource@actra.de","url":"http://www.actra.de/velopment"},"homepage":"https://github.com/actra-development-oss/ng-i18n-aot-loader#readme","repository":{"type":"git","url":"git+ssh://git@github.com/actra-development-oss/ng-i18n-aot-loader.git"},"bugs":{"url":"https://github.com/actra-development-oss/ng-i18n-aot-loader/issues","email":"opensource@actra.de"},"dependencies":{"loader-utils":"1.1.0","object-assign":"4.1.1","fs":"0.0.2","@angular/core":"^4.1.0 || 5.0.0-beta.0 - 5.0.0-beta.3","@angular/compiler":"^4.1.0 || 5.0.0-beta.0 - 5.0.0-beta.3","escape-html":"1.0.3"},"files":["dist/index.js","dist/index.umd.js","dist/index.umd.min.js","dist/CHANGELOG.md","dist/LICENSE","dist/package.json","dist/README.md"],"main":"index.js","_id":"@actra-development-oss/ng-i18n-aot-loader@1.0.6","scripts":{},"_shasum":"24536c39a9c8f1ff835573761269963a0b6982db","_from":"dist","_resolved":"file:dist","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"g.schuster","email":"npmjs.com@actra.de"},"dist":{"shasum":"24536c39a9c8f1ff835573761269963a0b6982db","tarball":"https://registry.npmjs.org/@actra-development-oss/ng-i18n-aot-loader/-/ng-i18n-aot-loader-1.0.6.tgz","integrity":"sha512-VBK1MVRnARYIKX77Y8JKvHqIpaQzD7SlfHlUGQYzvsnmnYmmduWqFP8IMcC0m9SiTwfOMKEsSwBeKQenG504PA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG3JuRgwX3/jLUT7oXVv22rMLbJFpwZiPUPxXRbu9ED1AiBQeYAYasPxoWA0Xf1QZt3nTn4DMbbbUfgTgelH5LCACQ=="}]},"maintainers":[{"name":"g.schuster","email":"npmjs.com@actra.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-i18n-aot-loader-1.0.6.tgz_1503747503714_0.14416522067040205"},"directories":{}},"2.0.0":{"name":"@actra-development-oss/ng-i18n-aot-loader","description":"angular 6 i18n pre-loader for webpack 4 to support AOT with dynamic locale changes","keywords":["angular","aot","i18n","webpack"],"license":"MIT","version":"2.0.0","author":{"name":"Gabriel Schuster - actra.development","email":"opensource@actra.de","url":"http://www.actra.de/velopment"},"homepage":"https://github.com/actra-development-oss/ng-i18n-aot-loader#readme","repository":{"type":"git","url":"git+ssh://git@github.com/actra-development-oss/ng-i18n-aot-loader.git"},"bugs":{"url":"https://github.com/actra-development-oss/ng-i18n-aot-loader/issues","email":"opensource@actra.de"},"dependencies":{"loader-utils":"1.1.0","object-assign":"4.1.1","fs":"0.0.2","@angular/core":"^6.0.2","@angular/compiler":"^6.0.2","escape-html":"1.0.3"},"files":["dist/index.js","dist/index.umd.js","dist/index.umd.min.js","dist/CHANGELOG.md","dist/LICENSE","dist/package.json","dist/README.md"],"main":"index.js","_id":"@actra-development-oss/ng-i18n-aot-loader@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"g.schuster","email":"npmjs.com@actra.de"},"dist":{"integrity":"sha512-NlbwZ7Gc4rrrfug0Wb+VrwLdjbzCi/Zbi0ipUC8gqp/ZGAiuHWq5AfrRBl3BU+L/kfKY8oGzTjaCMn9P7w1Hww==","shasum":"5deb003d38515cba980d266fb7258f553edd0cfa","tarball":"https://registry.npmjs.org/@actra-development-oss/ng-i18n-aot-loader/-/ng-i18n-aot-loader-2.0.0.tgz","fileCount":5,"unpackedSize":20211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbA3RLCRA9TVsSAnZWagAArCIP+wWVuZRlEd26qNOTQWoA\nZRjzfvM7YLz1Kq9tpbJ14I+oKjO4AnYNg9+ef7kYlUyIouCL9/ng53G1MrVl\nsq1quQwmeYELNQgvR/U+Zq0m8XhnlJpVXjHSKnsrYKMrN2KmQSJzpGUhqouc\npHZ17rZBOH9SEb52lwSswAYwDUYoihoZaiN+dwg1mcatXnf0/6VrF+5IWwfB\njhV1g3nckI4ZP3llcb/JLvVnUwzvZCb+9aYgzmt6quX9jErDojxV5UexQZri\nZ/g86DiokQ2IhobfJrKz07P+lQ/Eo332IB0oqWaJX36eAcH7R6a60zV52n3B\niV9CjXadl2W9umYjCZLlud4HtwgkFLRCG488WBZzADwq8ARd2RPJu9ptjP15\nGCs7l1Ep0t3dlgp4nMrSUZpkVPJ1ijQ1Yz+x7V2h4XGwKjsN3/DFwUjaorZW\n2HkUtJ2Diy6QYbxRIVgZpapah6mhL09DuC2y3UKgZ62SjX2L4JHkOGJzcwWy\nSRavBgj1Th1/uHjxRr04aefYkCaoBpxeOZXp0NTDPmrToGq0aJU2brjpVhUZ\nwLozOAtCAj6LajsHikP9REQuGPeLdcDwFlk58gEWuimmYcSdLLPKCfutuuRY\nA52T7ou9bhevbxafzNQycE6e4kUoDnpCBPH1adT+U+GJeF+0NqpV6KXU0rTC\ndIuA\r\n=RuAq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF+GMync4IxCWF1Zzs/psEeLpnrzH90I8WJPXI/8Uc6aAiBSIGO1lP5XtZ1J1tpD0O7NeQ6O9TAbaUCdPKVe4BnWPQ=="}]},"maintainers":[{"name":"g.schuster","email":"npmjs.com@actra.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-i18n-aot-loader_2.0.0_1526953033681_0.7633856982862428"},"_hasShrinkwrap":false}},"readme":"# ng-i18n-aot-loader [Proof-Of-Concept]\nangular i18n pre-loader for webpack 2 to support AOT with dynamic locale changes\n\nWhen building angular with AOT, at the time of writing, applications need to be built as separate bundles for each locale.  \nTo circumvent this \"problem\" you may use this pre-loader until the angular team has implemented a clean solution.\n\n\n## What it does\nThe loader modifies the application's HTML before it get's passed to angular's compiler by rendering it for each locale and wrapping all translations into `ng-container`s.  \nIf you're using `ng-content` or `router-outlet` inside your templates those get filtered out and replaced by a template reference injected to the end of the HTML because they may only occur once per\ndocument but would occur multiple times (your number of locales + 1) after modification.  \nAll bindings and contexts stay intact and there's no need to do special magic to your code.  \nTo actually change the displayed locale, a service is provided (by [@actra-development-oss/ng-i18n-aot-module](https://github.com/actra-development-oss/ng-i18n-aot-module)) that you may include in your component(s) to call `setLocale('new_locale')` on it.\n\n\n## JIT and AOT\nThe loader works for both JIT and AOT builds and thus also with hot module replacement.  \nJust keep in mind that when changing translatable texts inside your templates you have to extract the translations again as their message ids change.  \nThis is also true when not using this loader - it's the way angular calculates the message ids.  \nSo the process would be: `change html` => `extract texts` => `update translations` => `rebuild html`.  \nDepending on your dev setup webpack may do the HTML rebuild automatically for you when the translation files change.  \nIf not you can trigger a HTML rebuild for individual files simply by updating the desired file, e.g. adding a new-line, and saving it for webpack to catch the change.\n\n\n## Demo\nA simple demo is hosted in a separate repository: https://github.com/actra-development-oss/ng-i18n-aot-demo  \nDemo page: https://actra-development-oss.github.io/ng-i18n-aot-demo/\n\n\n## Example\nGiven this (partial) source:\n```html\n<div class=\"mat-app-background\">\n    <ng-content></ng-content>\n    \n    <md-chip-list>\n        <md-chip i18n>First chip</md-chip>\n        <md-chip color=\"primary\" i18n i18n-title=\"Second chip title\" title=\"Second chip :-)\">Second chip</md-chip>\n        <md-chip color=\"accent\" i18n>Third chip</md-chip>\n    </md-chip-list>\n    \n    <router-outlet></router-outlet>\n</div>\n```\n\nThe loader would produce this result, given one locale \"de-DE\" translation file:\n```html\n<ng-container *ngI18nAot=\"'automaticallyGeneratedUniqueIdPerHtmlFile'; locale: 'de-DE'\">\n    <div class=\"mat-app-background\">\n        <ng-container *ngTemplateOutlet=\"automaticallyGeneratedTemplate1\"></ng-container>\n        \n        <md-chip-list>\n            <md-chip>Erster Chip</md-chip>\n            <md-chip color=\"primary\" title=\"Zweiter Chip :)\">Zweiter Chip</md-chip>\n            <md-chip color=\"accent\">Dritter Chip</md-chip>\n        </md-chip-list>\n        \n        <ng-container *ngTemplateOutlet=\"automaticallyGeneratedTemplate2\"></ng-container>\n    </div>\n</ng-container>\n<ng-container *ngI18nAot=\"'automaticallyGeneratedUniqueIdPerHtmlFile'; isDefault: true\">\n    <div class=\"mat-app-background\">\n        <ng-container *ngTemplateOutlet=\"automaticallyGeneratedTemplate1\"></ng-container>\n        \n        <md-chip-list>\n            <md-chip>First chip</md-chip>\n            <md-chip color=\"primary\" title=\"Second chip :-)\">Second chip</md-chip>\n            <md-chip color=\"accent\">Third chip</md-chip>\n        </md-chip-list>\n        \n        <ng-container *ngTemplateOutlet=\"automaticallyGeneratedTemplate2\"></ng-container>\n    </div>\n</ng-container>\n<ng-template #automaticallyGeneratedTemplate1><ng-content></ng-content></ng-template>\n<ng-template #automaticallyGeneratedTemplate2><router-outlet></router-outlet></ng-template>\n```\n\n\n## Compatibility to angular syntax and tools\nThere's no need to learn **any** new syntax or tools.  \nThe loader uses plain angular i18n-syntax, so just tag your HTML with `i18n` or `i18n-<attributeName>` attributes as you would do in any regular angular 2 / 4 app.  \nYou can also still use e.g. the ng-xi18n tool from angular-cli to generate the translation sources.\n\n\n## How to use it\nInstall the packages `npm install @actra-development-oss/ng-i18n-aot-loader @actra-development-oss/ng-i18n-aot-module` and define the loader as a pre-loader in your webpack config:\n```js\nmodule: {\n    rules: [\n        {\n            enforce: 'pre',\n            test:    /\\.html$/,\n            use:     [\n                {\n                    loader:  '@actra-development-oss/ng-i18n-aot-loader',\n                    options: {\n                        enabled:            true,\n                        translationFiles:   ['/path/to/src/locales/messages.de.xlf'],\n                        translationFormat: 'xliff'\n                    }\n                }\n            ],\n            include: [\n                '/path/to/src'\n            ],\n            exclude: [\n                '/path/to/src/index.html'\n            ]\n        },\n        // your other loaders...\n    ]\n}\n```\n\nInclude the module into your applications main module:\n```typescript\nimport { NgI18nAotModule } from '@actra-development-oss/ng-i18n-aot-module';\n\n// ...\n\n@NgModule({\n    // ...\n    imports:      [\n        NgI18nAotModule.forRoot(),\n        // ...\n    ],\n    // ...\n})\n@Injectable()\nexport class ApplicationModule {\n    // ...\n}\n```\n\nInclude the module into a) every module that uses translations *OR* b) once into your shared module that is included in all your modules.  \nCode shows option b), include in shared module:\n```typescript\nimport { NgI18nAotModule } from '@actra-development-oss/ng-i18n-aot-module';\n\n// ...\n\n@NgModule({\n    // ...\n    exports:      [\n        NgI18nAotModule,\n        // ...\n    ],\n    // ...\n})\nexport class SharedModule {\n}\n```\n\nTo actually change the displayed locale use the service:\n```typescript\nimport { NgI18nAotService } from '@actra-development-oss/ng-i18n-aot-module';\n\n@Component({\n    // ...\n    template: `\n        <button (click)=\"setLocale('en_US')\">en_US</button> <button (click)=\"setLocale('de_DE')\">de_DE</button><br />\n        Current locale: {{locale}}\n    `\n})\nexport class MyComponent {\n    public locale: string;\n    \n    \n    constructor(protected ngI18nAotService: NgI18nAotService) {\n        this.locale = this.ngI18nAotService.getLocale();\n    }\n    \n    \n    public setLocale(locale: string): void {\n        this.locale = locale;\n        \n        this.ngI18nAotService.setLocale(this.locale);\n    }\n}\n```\n\n\n## Options\n| Option            | Type     | Explanation |\n|-------------------|----------|-------------------------------------------------------------|\n| enabled           | boolean  | Whether the loader should modify the HTML or not.           |\n| translationFiles  | string[] | Paths of all your locale files to render.                   |\n| translationFormat | string   | Format of the translation files as used by angular:<br />xlf / xliff, xlf2 / xliff2, xmb, xtb |\n","maintainers":[{"name":"g.schuster","email":"npmjs.com@actra.de"}],"time":{"modified":"2022-06-12T14:16:52.276Z","created":"2017-06-29T12:10:25.559Z","0.0.5":"2017-06-29T12:10:25.559Z","1.0.0":"2017-06-30T04:19:17.395Z","1.0.1":"2017-07-19T14:07:29.526Z","1.0.2":"2017-07-19T14:19:12.899Z","1.0.3":"2017-08-16T14:45:56.367Z","1.0.4":"2017-08-22T16:11:37.662Z","1.0.5":"2017-08-26T10:41:23.145Z","1.0.6":"2017-08-26T11:38:24.735Z","2.0.0":"2018-05-22T01:37:13.763Z"},"homepage":"https://github.com/actra-development-oss/ng-i18n-aot-loader#readme","keywords":["angular","aot","i18n","webpack"],"repository":{"type":"git","url":"git+ssh://git@github.com/actra-development-oss/ng-i18n-aot-loader.git"},"author":{"name":"Gabriel Schuster - actra.development","email":"opensource@actra.de","url":"http://www.actra.de/velopment"},"bugs":{"url":"https://github.com/actra-development-oss/ng-i18n-aot-loader/issues","email":"opensource@actra.de"},"license":"MIT","readmeFilename":"README.md","users":{"g.schuster":true}}