{"_id":"@angannat/localize-js","_rev":"8-97f918df2ea73cfcc0b64fb8a6e7b10a","name":"@angannat/localize-js","dist-tags":{"latest":"2.0.4"},"versions":{"1.0.0":{"name":"@angannat/localize-js","version":"1.0.0","description":"Simple localization package.","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"rimraf lib && tsc","watch":"tsc --watch","test":"jest","test:watch":"jest --watch"},"repository":{"type":"git","url":"git+https://github.com/antoine-gannat/localize-js.git"},"keywords":["localization","locale","localize"],"author":{"name":"Antoine GANNAT"},"license":"MIT","bugs":{"url":"https://github.com/antoine-gannat/localize-js/issues"},"homepage":"https://github.com/antoine-gannat/localize-js#readme","dependencies":{},"devDependencies":{"@types/jest":"^26.0.22","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.5.4","ts-loader":"^8.1.0","typescript":"^4.2.4"},"gitHead":"7a8e31ae96d9d917a4852f09fc3830040003e600","_id":"@angannat/localize-js@1.0.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-1iB7cFH/24wJcElPpod2YarqXSPuvfQouT+c5NmTaNKZU/AS9A2HxSAvIBMLML3VHXrZ0RQOYpX++foPCsqPtg==","shasum":"ba52612a9d726bc7e60cb515f4eb9d4c94a19faa","tarball":"https://registry.npmjs.org/@angannat/localize-js/-/localize-js-1.0.0.tgz","fileCount":20,"unpackedSize":24307,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcxwSCRA9TVsSAnZWagAAMe8QAJ/TOoH6nO5xZ9qdnSX7\nusPWPycX6pdGQhLW4bUWYZH/k4UHFeBk5/T8e1wiroYbYTd3L/N40+kmojIY\n0j3YfN7pA6pgFXMw5HuLVdX2QvR21oEyawWQcXCkN7Ju9fc3Q1EUbnWTVI3i\nfgGp/5Ho5ThMmdxOl4noz/R8hSN7tA5XScew+u9PcbB6pR0FVLp5PxKmW9gR\nu9OmBvHDyXgwQEexDnXvrXPxU67WdRYEKL83mDLN6LHRjeeiYWQvgXpoUXVP\nGA4XRLgYTUE1wL1qSDZIV5Bk4BxYiDC7fXMXY3zb8Rang57PnszQAwG2fbMS\n1bvEqrl8QcBacyBmg8T8wnkUf4/NdDv/bVV2fEiqoXELQrsQgK8abJ8NLRRD\nPM8vC7cq0W4Z8EQlUI2IMwH5IJeNh9of1YcSWMqnhPgIOoXUh+MZYG694ltk\nu6xLbVTvtpLG0lQfeFsnL3z+YOfAeWhbIvD5biZVgmaZOiseZs2obAg+/3WT\n0obAPnjcb3Q0yfHJKxMZTWwn9braBx0fRBdZ/n+3/QDWs0o6KNPfZzdszvrH\nIExzE7FwmRkY4myfTS8DTMBP4rWwrdrMqOZ4YGdok0oyXZsLIiNxuOvpfrcc\nHktbEUe2U3CJkzxJeCbbicTSpCAqw4Co8J1zb+rPOWUZlU5j4wKZ0tle/DWY\nGPcW\r\n=C1VE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4rhShhdEZOpai8zsgRyhl/Zc9x1U6ZL26OZqKrUR5CwIhALEz5uUHHCvc3IzLPzkxBV23HJPm3RI19kF8p+jY8+Ij"}]},"_npmUser":{"name":"angannat","email":"antoine.gannat@gmail.com"},"directories":{},"maintainers":[{"name":"angannat","email":"antoine.gannat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/localize-js_1.0.0_1618156562400_0.870130616293713"},"_hasShrinkwrap":false},"1.0.1":{"name":"@angannat/localize-js","version":"1.0.1","description":"Simple localization package.","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"rimraf lib && tsc","watch":"tsc --watch","test":"jest","test:watch":"jest --watch"},"repository":{"type":"git","url":"git+https://github.com/antoine-gannat/localize-js.git"},"keywords":["localization","locale","localize"],"author":{"name":"Antoine GANNAT"},"license":"MIT","bugs":{"url":"https://github.com/antoine-gannat/localize-js/issues"},"homepage":"https://github.com/antoine-gannat/localize-js#readme","dependencies":{},"devDependencies":{"@types/jest":"^26.0.22","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.5.4","ts-loader":"^8.1.0","typescript":"^4.2.4"},"gitHead":"806613434dc5e26f05befbc035c13b9fb3d5e389","_id":"@angannat/localize-js@1.0.1","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eNT3p57lr2Bsb9KRNiFbxN+Nec+aLpgpl//QjDTL4wloZykMe6rHgHRQlkA3Bpyb4ABOzK5UnrkEoa74TAoCwg==","shasum":"393552e977901773105da01f768947c48f8e1167","tarball":"https://registry.npmjs.org/@angannat/localize-js/-/localize-js-1.0.1.tgz","fileCount":20,"unpackedSize":27233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcycXCRA9TVsSAnZWagAA+nMQAI3DKCxGYnUp6HzDtI0J\nux1qAnV3s5Q09FDPqZlr182COrYoQAEyHZ7B0Z+0RJXCiQAQySe26wx7vMLi\ngPowhj8gJ9Rw93sMVDxufucJSQmNgrhULMjLujYIadIRoV+lHnb2JjqcZcnL\n6XVUf7W5sW4HBzhHQvSZXWMv7WxySbCXRunNwtyGmWMB0uRWXgvAejuKgCi2\nehieR1vr9ldFTYNft9NN6q/DCLpUYMOjphX6OsRf3dJQXWOcq4sAS250QBOA\nlY8ITTeeD8ExGUChsOtsZkxAa/gtjh9tmn8sDQqn71L93Z4Fg1uu8mSeaCVn\nKsX2UFnTpyhcC+yF1n/giKu2FmhncyAf83EKAQrIphlP/P8wiIpjUxd5QG75\nB2Zfxu2BKKtfW3ABiyyTJPGWMZsBLL2W3BCExjmBJ/Qu8YIEnWSLZqppPUp6\nh0GpsP60GPBabodC3rOiAWJevQRG9oq5RFsMAQ+BP/U2kWmJzFgVJ2W0BZiY\nKGOx+wuPXmx2yEcL5WKha5zz3Q267MTooJMHrRHzQOhek2FfQOfoBkxJHiSH\njMSLDFhtcsFmuNgCbpc0K2Bsg2WUjCHQf8a0JwEDKdfnZbz7mxi7UQMT7the\njFYycYVvYCJ/X8Zn6u3KBy5S/5znnJF7ge7FSZ4+OO00YA0gAsGkqwzZoRyj\nxJo1\r\n=i+Bc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJwscPqcGtGI29M49Fwu1TKavkipWs+je/yufua62ZrgIgfQ4pjXNRqpoKkZ7xJbMDA1RWk0ueYOfJIGiq+s3OpG0="}]},"_npmUser":{"name":"angannat","email":"antoine.gannat@gmail.com"},"directories":{},"maintainers":[{"name":"angannat","email":"antoine.gannat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/localize-js_1.0.1_1618159382868_0.6501684130317451"},"_hasShrinkwrap":false},"1.0.2":{"name":"@angannat/localize-js","version":"1.0.2","description":"Simple localization package.","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"rimraf lib && tsc","watch":"tsc --watch","test":"jest","test:watch":"jest --watch"},"repository":{"type":"git","url":"git+https://github.com/antoine-gannat/localize-js.git"},"keywords":["localization","locale","localize"],"author":{"name":"Antoine GANNAT"},"license":"MIT","bugs":{"url":"https://github.com/antoine-gannat/localize-js/issues"},"homepage":"https://github.com/antoine-gannat/localize-js#readme","dependencies":{},"devDependencies":{"@types/jest":"^26.0.22","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.5.4","ts-loader":"^8.1.0","typescript":"^4.2.4"},"gitHead":"756d8b37746d226d8ceb92bc282d8b8cff69ca91","_id":"@angannat/localize-js@1.0.2","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4/XacnIM384jtiXqD6XVQO5aejmjMjKexTtk2K7Te4K1tEKRWHunD19V3DHy+sIFx57cfC5qeQ1yXnFRlB2/hA==","shasum":"1d1c365711b044aaa6b2683898198d109ea63aed","tarball":"https://registry.npmjs.org/@angannat/localize-js/-/localize-js-1.0.2.tgz","fileCount":20,"unpackedSize":24869,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcz9cCRA9TVsSAnZWagAAkmgP/0Wv8EM/en66DY86CT3h\nOkIBBtxYLv9SIgaheCjKT6kPw3jq/SZoGBluo7v3xSqDJxdlkJdoZM7GI8DL\nlSezCCey1ep3RDLc6DxRvAQjlb/nqsUIwYVwB2W6MN3grCoh+plmJAyaG4BD\ncvC3qsW930Q1Z95HyBNKRuQFKkvQFC0/TXkvZ/hqrPZwzb2vY+QvgKujgDJO\nHcG8DAgWonDC2rSDDdsUKrSifsEU1IBbEFoXh64u0wWFVL7jc9MENYfzMgXN\n7l9T2huM5n1N0bsw8KkxfXs+WPM9bI2Ts5hsN9laC8qSShZBsk8L+4h02Aa4\nN3eB1z7T5xxLx9GVbi3tJoFBckb7wyk6/+XwROkFDc7xHiQ625ovXPinrz2p\nluP/mZUNfF5ajfnCN/xxyQkANW5t0FoeZmubJ6DlZAQBugr5Z0r0b8YIU7i2\nRz7mnH0/kn6eXbIKoqKlmgbwLcU+PWQs9jPwwDaZGTyLueKX1JyjvehN05cY\ndjKFIiaawyJvKN2BKjYQlvFEAXeDlE/j0W3oeGAlhz7VeQsWec8NenF8on6A\nXmz2eq6SvsBiMflMQ9h2609I4xYwBkOXI++6H2QNZd2EbAKSHchNrRd6AJQB\nJy4xdEQOnJpQ/7tqM5fOh4z/ktcJRH+1Rb/kzd70SMP8g5U1Wkl5iofxQpHw\nwg4c\r\n=AlhP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFp54lZlafNcn37KrfchaSXtEZX3T3ZeNVy68KiBr/+eAiAiOrItaiZY9ZkkcVLJJl5dlt8GqeUxRD2XcFt8vMWfOg=="}]},"_npmUser":{"name":"angannat","email":"antoine.gannat@gmail.com"},"directories":{},"maintainers":[{"name":"angannat","email":"antoine.gannat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/localize-js_1.0.2_1618165595941_0.48884812630815233"},"_hasShrinkwrap":false},"2.0.0":{"name":"@angannat/localize-js","version":"2.0.0","description":"Simple localization package.","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"rimraf lib && tsc","watch":"tsc --watch","test":"jest","test:watch":"jest --watch"},"repository":{"type":"git","url":"git+https://github.com/antoine-gannat/localize-js.git"},"keywords":["localization","locale","localize"],"author":{"name":"Antoine GANNAT"},"license":"MIT","bugs":{"url":"https://github.com/antoine-gannat/localize-js/issues"},"homepage":"https://github.com/antoine-gannat/localize-js#readme","dependencies":{},"devDependencies":{"@types/jest":"^26.0.22","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.5.4","ts-loader":"^8.1.0","typescript":"^4.2.4"},"gitHead":"a57257dc4cf8305a322d55ed5da95d8fc735de01","_id":"@angannat/localize-js@2.0.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5jVnfNexjsnaYPDF5zvejUFnzWrvBs58lKIux3laLE9AuA3F0xj3I1Mlq+YvpUMFzpyZ2OQ5JFnkyl4j5/5KFQ==","shasum":"dae3210b498619660a14cdf9fc1b28bbd0962519","tarball":"https://registry.npmjs.org/@angannat/localize-js/-/localize-js-2.0.0.tgz","fileCount":20,"unpackedSize":19435,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfCU6CRA9TVsSAnZWagAAdcMP/jk4oO+lOD+RsuGiA7gL\nSRdfLHeH93AJG/WJkwW14xH/a1THNc18YkjbvsNexgwR7G//1K3fDdij6cbV\nvtctyzEy/azoj60JLyBLJo+0HJJBQTUKv9XpcYPLD+juPJ5o59mpGdFYj9LZ\npB5+87rT59meb2mz+3Lc0O9S4dqAKDQLsc8PyRf/47XJfNXk8dXyIDxVxQG1\nKnkhUNK6vsmz49amO4L6Edzhs+0qrUE/6/EW3EE4C89qxDuvjPCFAy4nsSzu\nNvssHicEEUDkRQHjEt+RvRAKz5K58d2ckY/5tthP54FsgOaXmGOo9rx4y5HM\n7CioTfWP5LD3k1o4N0NCaYKwkzwe9ippzvVfLZDRKCnzbMps1UxwcZIOZ69h\nSUjZwpYgLmpDSpYBJMBvLWJBcH7QFiuebE5VSohg6Tf6v2nnmTS9sJQiJmyy\nkhK2RzLYtyavmSyx62NJe+oYi2lxTVpJVZuNcY6YK31h+fA6/YVB5pPmEQow\nRQE2q7cY+r+UOqxFOs+g1JORVVcM7CNiu/A3Qunz3JC/fF2d9JCudc9U+L3O\npfaeyv1LF8SQ588XVafZuAIrP44XS2IWYoCIL6fHUvo7IMg0BtdUhzNdWzK2\nAHNYXUhkHBiuJ4WisOgSCWyuw/GMOBpgsSU/aU008b7mdY6VVgZbL371XMlk\n6Da6\r\n=ABD7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE2b5e/aWRYjvVuKv6bs2s8Kv62J2B123XDx0OD3FFp+AiEA/Eswc1NT/V+VLAa5EsmoDMvMQEJyFrzJLXGoVxM2nYI="}]},"_npmUser":{"name":"angannat","email":"antoine.gannat@gmail.com"},"directories":{},"maintainers":[{"name":"angannat","email":"antoine.gannat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/localize-js_2.0.0_1618748727966_0.04886011782480937"},"_hasShrinkwrap":false},"2.0.1":{"name":"@angannat/localize-js","version":"2.0.1","description":"Simple localization package.","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"rimraf lib && tsc","watch":"tsc --watch","test":"jest","test:watch":"jest --watch"},"repository":{"type":"git","url":"git+https://github.com/antoine-gannat/localize-js.git"},"keywords":["localization","locale","localize"],"author":{"name":"Antoine GANNAT"},"license":"MIT","bugs":{"url":"https://github.com/antoine-gannat/localize-js/issues"},"homepage":"https://github.com/antoine-gannat/localize-js#readme","dependencies":{},"devDependencies":{"@types/jest":"^26.0.22","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.5.4","ts-loader":"^8.1.0","typescript":"^4.2.4"},"gitHead":"dfcc3bad823157dffe2cff339957fd77b014362f","_id":"@angannat/localize-js@2.0.1","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-JOxyi3ASTH9ap8AbC9XDQpB9oGmNSiNG+VPSkVKdVntM91SIMJLk1yucCXbKRYGuw94tn3Hd3wrZwOx3ZgrOfw==","shasum":"bb30a6ad1d445b625b1e520e027ee27fd161cc6a","tarball":"https://registry.npmjs.org/@angannat/localize-js/-/localize-js-2.0.1.tgz","fileCount":20,"unpackedSize":20062,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfDmiCRA9TVsSAnZWagAAciAP/j9Hn8JvtvwrLyb+M3Z1\nMlnDUKeEJKBMKUdesCMkz8ZZRrxv3IBzDv1ovAr8A6y5pwFM2of3IljbU1xB\nKbBVLgBggAHIZcgYLNNtcHCB2Ik8LrhMEq92fVv9a5P+ZzQYyRimZy4eA8Ta\ngXEzGjWr+mkfgQMI7hPGkpx6FEzJRkfgdMg/LV4FRsbfhXO/gdsKSG9mwXkS\nIsE3e1a3tnAbohZJjIQjS4dCE2ej758DvVhuFcy5lgbGV3DUUyVzHV1GcnGF\nMUQYolz1NJ6ewN6nhBTCPJirVeN2rtxgcJ05C3m5xLryjbcRz5pn3ZelBS/8\nkZRU8UAVLbE+ycq/GcmkN+xwnpKwoloUWNDQSL+RIYk6ADHVtJz417okFM0n\nj4T4xwcivDGcLAY9TlNXSqIxDxv7U1/fWOcwaLW3Dqx5lSXkOHiIJYcAHh3M\ngFiTra8qtBNt8rwQn9uwt1NBLNaSXZK4P4oelq+zhP11Y8LxxmPu8HeiMqj2\njMD+5tIoIL/fcvBoqYG0yjydj5YB26wO6vzS26ulrLtmRTRc3hwfwIxpkzzK\n84CS8RBINol/BlZWh7UipI+hB6s4GByP4irunYgEvmR3BH42SoPCI7+DuAxV\njL75pL1/VBrF1p6mZSn4+IAmJvjvHS5rVCM2zG5LwvQfhiEE/csrmiyWeuhV\nLRe9\r\n=qoc1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEx7Q8ugMIjibM/MoYK+tEi30ygPdc+6EhNenf6DAYSJAiEAoqrfRBZ14DKU9zDEr8UHugKK3Pc9jgqAR4ZyzxjoCwQ="}]},"_npmUser":{"name":"angannat","email":"antoine.gannat@gmail.com"},"directories":{},"maintainers":[{"name":"angannat","email":"antoine.gannat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/localize-js_2.0.1_1618753953786_0.47581781611332996"},"_hasShrinkwrap":false},"2.0.2":{"name":"@angannat/localize-js","version":"2.0.2","description":"Simple localization package.","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"rimraf lib && tsc","watch":"tsc --watch","test":"jest","test:watch":"jest --watch"},"repository":{"type":"git","url":"git+https://github.com/antoine-gannat/localize-js.git"},"keywords":["localization","locale","localize"],"author":{"name":"Antoine GANNAT"},"license":"MIT","bugs":{"url":"https://github.com/antoine-gannat/localize-js/issues"},"homepage":"https://github.com/antoine-gannat/localize-js#readme","dependencies":{},"devDependencies":{"@types/jest":"^26.0.22","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.5.4","ts-loader":"^8.1.0","typescript":"^4.2.4"},"licenseText":"MIT License\n\nCopyright (c) 2021 Antoine GANNAT\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@angannat/localize-js@2.0.2","dist":{"shasum":"2ada1092b225dadb8511ff20be18e42f0c3c30a8","integrity":"sha512-cfV4Wg6YF3MmYgOtM7h2SfndaZIrvKvXDqPFK1mgEm+jubv+IjE5AmUL0CJekCZX2p+xR+aeLAk8rvCLkLnl5Q==","tarball":"https://registry.npmjs.org/@angannat/localize-js/-/localize-js-2.0.2.tgz","fileCount":18,"unpackedSize":14312,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQzlUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoccA//QM6sysjkUpk61dIjWpNg243AysdBjpqOtvfSgpQQ2/43N5wD\r\nD+00Wh3dUOSTU2WFFP0Giclv5b0JOmU46jAPYG8K/bykxm4eplGKvL2u72fX\r\ngDH10Yw92TK+Rfb6zkE0T3IssLcfS7JK5Dm8VUFG+8weAy8GbXEwaSUFQtQN\r\nEsVJJRHTZENfPo2Xd6W/T1J3ImPONLsUCHq99LrEJdcEkhWTArLSbekxqIvb\r\n4IjJfNrMTFXHIZg8DqD+laLcizhj94D1pC3GvAyzhj8WcMw0hX5y52P6cIYB\r\nmAxFwV4QTYX1MxZaMGliy0oNYREgF7ZAEpjm7LDcAXUXz2S99XiP30q1p5jL\r\n8uhXoc22r6pxge23aejYpXHorgwmkEK7gZQA5NwE5nJ+hPgXkfa+pveJW6nd\r\nnbC1ONTAAZEy0NncokCMxralfW2pXYwA8/joGMr3KAPz2yHYKxuhy+cxcmKG\r\ngJn73EBRKZWS/UzyIes9Y7LgH6DyQYxfpRK5SETol5OhO69+KIVwizqS0YUU\r\n3HFZUcezi7ncazfwSxQWzRc3f2sxfjSrujgse8EaD2dd+C3DCU9c/kzJz1Ji\r\n7+rG6+xU8ajRsqOjmutFhdPlToOj5qq/A1VnlcnlUfmhpD9oRvsZu6J7QNtP\r\nsOALa5gZOZJucSo+FPyBfZnjS+BEK4QNqe0=\r\n=8hjQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHFgKXGBm0MPsds4b1ZazVa4aKv5G8zDn7i5son9+C9gIhAPx4BgsUDU3BlUfcW+3ExtSIOvomekFY9rXBpGEu6ObU"}]},"_npmUser":{"name":"angannat","email":"antoine.gannat@gmail.com"},"directories":{},"maintainers":[{"name":"angannat","email":"antoine.gannat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/localize-js_2.0.2_1648572756343_0.8424296039073134"},"_hasShrinkwrap":false},"2.0.3":{"name":"@angannat/localize-js","version":"2.0.3","description":"Simple localization package.","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"rimraf lib && tsc","watch":"tsc --watch","test":"jest","test:watch":"jest --watch"},"repository":{"type":"git","url":"git+https://github.com/antoine-gannat/localize-js.git"},"keywords":["localization","locale","localize"],"author":{"name":"Antoine GANNAT"},"license":"MIT","bugs":{"url":"https://github.com/antoine-gannat/localize-js/issues"},"homepage":"https://github.com/antoine-gannat/localize-js#readme","dependencies":{},"devDependencies":{"@types/jest":"^26.0.22","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.5.4","typescript":"^4.2.4"},"licenseText":"MIT License\n\nCopyright (c) 2021 Antoine GANNAT\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@angannat/localize-js@2.0.3","dist":{"shasum":"992e34df442926dadb8e9ce4bc8070e5d16d30c5","integrity":"sha512-Yx4q/1LaisdjUniweG0ZwAmBdhglFf67pNAq6ZkDlJSNps6SB5P9DsosD66MBWdiXSrAYv77qr0LSVBW5b06KA==","tarball":"https://registry.npmjs.org/@angannat/localize-js/-/localize-js-2.0.3.tgz","fileCount":18,"unpackedSize":13787,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE32s07VYrrghV+mAi4m+OLaFFvBO4pBXgULrtv/K+yVAiEAgIEapjatyLqjL3Kt9pzWenM+q2wLMzzssKAxymQT/5I="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/pqGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/KxAAgQJvPruF539ZEhhvXZMQYfn3+wsY9TV4xUjve53tFsD96ufy\r\nn1Gcuu1rzSEbzlZHCkuo9gQSdm/NVQYxqpba19Ez+MTN5f6/9Xs1bsDFaBJj\r\nyI3kh7OAVheaG1d//BPLkFcicl4DuyRAJ+XW87/2hamI8SgeAlOUyXYUJ2Vv\r\njvO+faF5uyGT+MFCWAeBxLJ0TSFw3xRsPdPZsWmlyHFp1V0vtPYeixc6liEl\r\ngfRYWtpwasFVSQnWiXetyp/otwnbUNc0j1sCh4IEP4XGuS8Bc69mLv4FikiU\r\nwoOfbz1Uio3vE8l9sRwRBh1aq5QbEbpuUr1TDm8XUeu531fWDORwl6dQ6c6/\r\nnU2G3/hdgnfpTwI4+cXPxkslNScqYCqsaJc7Y0rh1hyxzx7Hxb+o/dJjDIKL\r\nrxJG0ft/6Ple8F0JT9kn63BGFzfuY87ekLwvWZeBXebOEqVqYrWeaUX6Ot6R\r\nK9ysAWE8S+JupOpP6Hkx6AG7Xnsa7+USK+fGOFTAUOQ8BSPMfaKgT/Je3RCM\r\nOCDlUjVlEXtYeQMohC7hMKuAgSCIIJqjhQu+oTfB8KIpmb/POv6PSqLzBUbv\r\nHRBosS4tyZagcauH7yBj4lphY/PM3yWNPeM2HwyUBBorV4J9NSMEGuhYLjQ9\r\nuSoA5OhgTl5arZDVdfovXE+nTKVo5twH75k=\r\n=aMO2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"angannat","email":"antoine.gannat@gmail.com"},"directories":{},"maintainers":[{"name":"angannat","email":"antoine.gannat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/localize-js_2.0.3_1660852869943_0.9950308423230441"},"_hasShrinkwrap":false},"2.0.4":{"name":"@angannat/localize-js","version":"2.0.4","description":"Simple localization package.","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"rimraf lib && tsc","watch":"tsc --watch","test":"jest","test:watch":"jest --watch"},"repository":{"type":"git","url":"git+https://github.com/antoine-gannat/localize-js.git"},"keywords":["localization","locale","localize"],"author":{"name":"Antoine GANNAT"},"license":"MIT","bugs":{"url":"https://github.com/antoine-gannat/localize-js/issues"},"homepage":"https://github.com/antoine-gannat/localize-js#readme","dependencies":{},"devDependencies":{"@types/jest":"^26.0.22","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.5.4","typescript":"^4.2.4"},"licenseText":"MIT License\n\nCopyright (c) 2021 Antoine GANNAT\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@angannat/localize-js@2.0.4","dist":{"shasum":"7fce28a125b9c176e89b3025f8b3128d07fa3a30","integrity":"sha512-JwlRW9J7qFipq8fAvg5DJgT0SzRg0MbtZvCnMVQ7WqzwHgSK4j/eN9bJAXPTBq42I2NEK36Gr+kbI1GanCC9gw==","tarball":"https://registry.npmjs.org/@angannat/localize-js/-/localize-js-2.0.4.tgz","fileCount":17,"unpackedSize":12908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGUQ+aXS7MP+onzJolPmlOCai0SfFyigJw4m62eDSoGtAiA/DWjub59W2UADO4CexWeu3zNdms0EjSsIv3Bo+oZxVw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/pzZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo01BAAgG15lStxPMcVniFmUinDOgKnXI383JcMGDFRWyXHr090UiUH\r\nlD5SuDqbyZAJzySd0cNVw5NSwnFpfdAc0RApeV4OPPJ2u6BaeK5qW2fz9RSQ\r\neN01utyDdEhK8jxqiF4mY9hT9UXcfWizepoW9n1aMnGmO0h/8eTyoMOnmyYa\r\nJb7nFyM3+SXTj1MFT14nmYmoSb2xcunVShxTrTPuj2UJ8SdAbUen8XrfV7Uz\r\nMZahMYgmoWryLl2ZMxsODeSYmTMp0WYIG4z7XnmXEUIqoRHyibYr3L0i7/dW\r\n6LQ1dRWxZeepEvhGUYJJzKSpboq7zbiAU24Xe+RE/1vTyuga4kn1a621xZCU\r\nImuHW9AyNspFB/ArJkD61RBSFKJQqgrsfebk4BnXYA7cFIZTjsEndOz3CoTl\r\naAJx5fSHUc7X9TfIJVT5IEuqeOiy2J0/2ZwedyAVsAApw7IyOOm7sOY9zi2p\r\nTUVot1ulIt0iE2OhTlgS+AigI0RK/FIoxKvQo6fsLCrgMFNofaRm0OXRee6d\r\nIGGlIDdqwU03VcNYj3tK9+iN6Fu9JSZXbou4a3WOuOhBTvOq3VqaWvVD1rJk\r\nYLJTb0/cYwtI71atWLmIBaqFmaghZRgAA8aLHRInD5oWlY8S+rCvetZDSQ0V\r\nsD+FjJ07WkxXN6h9Wp9NRKtgHnQ0LbWqBK0=\r\n=itS4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"angannat","email":"antoine.gannat@gmail.com"},"directories":{},"maintainers":[{"name":"angannat","email":"antoine.gannat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/localize-js_2.0.4_1660853464822_0.8710041280212517"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-11T15:56:02.328Z","1.0.0":"2021-04-11T15:56:02.526Z","modified":"2022-08-18T20:11:05.208Z","1.0.1":"2021-04-11T16:43:03.042Z","1.0.2":"2021-04-11T18:26:36.046Z","2.0.0":"2021-04-18T12:25:28.113Z","2.0.1":"2021-04-18T13:52:33.893Z","2.0.2":"2022-03-29T16:52:36.805Z","2.0.3":"2022-08-18T20:01:10.111Z","2.0.4":"2022-08-18T20:11:05.079Z"},"maintainers":[{"name":"angannat","email":"antoine.gannat@gmail.com"}],"description":"Simple localization package.","homepage":"https://github.com/antoine-gannat/localize-js#readme","keywords":["localization","locale","localize"],"repository":{"type":"git","url":"git+https://github.com/antoine-gannat/localize-js.git"},"author":{"name":"Antoine GANNAT"},"bugs":{"url":"https://github.com/antoine-gannat/localize-js/issues"},"license":"MIT","readme":"# @angannat/localize-js\n\nSimple package to add localization to your javascript project.\n\n---\n\n[![Unit tests](https://github.com/antoine-gannat/localize-js/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/antoine-gannat/localize-js/actions/workflows/unit-tests.yml)\n![bundle size](https://img.badgesize.io/https:/unpkg.com/@angannat/localize-js/lib/localize.js?compression=gzip&label=Bundle%20size)\n\n## List of features\n\n- String translation in any language\n- Lazy loading\n- Lightweight and fast\n\n### Installation\n\nWith yarn\n\n```shell\nyarn add @angannat/localize-js\n```\n\nWith npm\n\n```shell\nnpm i @angannat/localize-js\n```\n\n## Usage with React\n\n### Basic example\n\n```jsx\nimport { Localize } from \"@angannat/localize-js\";\n\nconst localization = new Localize({\n  // Use the browser locale\n  locale: navigator.language,\n  // We can insert directly strings here.\n  stringMap: {\n    \"en-us\": {\n      title: \"This is a cool title !\",\n      timeNow: \"Current time is {0}.\",\n    },\n    \"fr-fr\": {\n      title: \"Ceci est un super titre !\",\n      timeNow: \"Il est {0}.\",\n    },\n  },\n});\n\nfunction App() {\n  const [loaded, setLoaded] = React.useState(false);\n\n  // On mount init the library\n  React.useEffect(() => {\n    localization.init().finally(() => setLoaded(true));\n  }, []);\n  if (!loaded) {\n    return null;\n  }\n  return (\n    <div>\n      {/* Get the localized title. */}\n      <h1>{localization.localize(\"title\")}</h1>\n      {/* Use placeholders to replace part of the localized string. */}\n      <p>{localization.localize(\"timeNow\", [Date.now()])}</p>\n    </div>\n  );\n}\n```\n\n### Advanced example with asynchronous loading\n\n```tsx\nimport React from \"react\";\nimport { Localize } from \"@angannat/localize-js\";\n\n/**\n * Fetch strings from some cdn based on the locale.\n */\nconst fetchStringsFromCdn = async (locale: string) => {\n  const strings = await fetch(`https://some-cdn.test/strings/${locale}.json`);\n  return await strings.json();\n};\n\nconst localization = new Localize({\n  // Use the browser locale\n  locale: navigator.language,\n  // Use the stringsResolver to asynchronously fetch strings\n  // Here we are fetching from a cdn\n  stringsResolver: fetchStringsFromCdn,\n});\n\nexport default function App() {\n  const [loaded, setLoaded] = React.useState(false);\n\n  // On mount init the library\n  React.useEffect(() => {\n    localization.init().finally(() => setLoaded(true));\n  }, []);\n  if (!loaded) {\n    return null;\n  }\n  return (\n    <div>\n      {/* Get the localized title. */}\n      <h1>{localization.localize(\"title\")}</h1>\n      {/* Use placeholders to replace part of the localized string. */}\n      <p>{localization.localize(\"timeNow\", [Date.now()])}</p>\n    </div>\n  );\n}\n```\n\n### Contributing\n\nFeel free to contribute, just make a PR or create an issue. I'll take a look as soon as I can.\n\n### Authors or Acknowledgments\n\n- Antoine GANNAT\n\n### License\n\nThis project is licensed under the MIT License\n","readmeFilename":"README.md"}