{"_id":"i18n-format","_rev":"37-40e7f22319e848d4156d58d0e6269dbe","name":"i18n-format","description":"Text formatter with Unicode CLDR Plural Rules and choices support","dist-tags":{"latest":"5.0.0","next":"4.0.0"},"versions":{"1.0.0":{"name":"i18n-format","version":"1.0.0","description":"Text formatter with Unicode CLDR Plural Rules and choices support","main":"i18n-format.html","directories":{"test":"test"},"scripts":{"test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"keywords":["polymer","web-component","web-components","polymer","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"homepage":"https://github.com/t2ym/i18n-format#readme","devDependencies":{"coveralls":"^2.11.8","web-component-tester":"^4.2.2","web-component-tester-istanbul":"^0.10.0"},"gitHead":"d1315bab4886fce50b6a2ad34f0a9e2eb5d60f20","_id":"i18n-format@1.0.0","_shasum":"0d35a85ed87146dd55af3b3b5a31d42aa4a48152","_from":".","_npmVersion":"3.8.6","_nodeVersion":"4.2.1","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"shasum":"0d35a85ed87146dd55af3b3b5a31d42aa4a48152","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-1.0.0.tgz","integrity":"sha512-ZXrzSKZHDKIksU0yJeFMTW3u1539U2Td/EteO00tHr2e5FCaH02lBHj2Ia0ZIEkZMIQNk/uggYESb5pyu2JkXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICDzWeyRhRFiCYxIQWwI99clnIrvY12bSBdSH53ATZ9YAiAfladHYdgBrkAPpId8tQG+WUtHnA78XAFevvBqb96cFg=="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/i18n-format-1.0.0.tgz_1476961933528_0.6824042042717338"}},"2.0.0":{"name":"i18n-format","version":"2.0.0","description":"Text formatter with Unicode CLDR Plural Rules and choices support","main":"i18n-format.html","directories":{"test":"test"},"scripts":{"test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"homepage":"https://github.com/t2ym/i18n-format#readme","devDependencies":{"coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","web-component-tester":"github:t2ym/web-component-tester#wct6-plugin","web-component-tester-istanbul":"github:t2ym/web-component-tester-istanbul#0.10.1-wct6.11"},"gitHead":"44b56ff4e7051e369ca114d57412851b3205391a","_id":"i18n-format@2.0.0","_shasum":"e2bced190f88a6ef17a682b7c5c6b43226296ce8","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"shasum":"e2bced190f88a6ef17a682b7c5c6b43226296ce8","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-2.0.0.tgz","integrity":"sha512-NxlIkhT13Stk+AcuD6/AIx+NtJoC52adP6F3Op3vCmAFnU2ka5/IpTFsuRPspMZwbhvcMu8lYOp4MJ88IE/b+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFyxF+p+Jiepj3qJiCj4hWU7BtQG5erBwHM/nLYSI+poAiBzrGfRWhf+vFa89rUU+QJ3DMzcqpZxfwROu0dzycGl6g=="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/i18n-format-2.0.0.tgz_1494926802044_0.5576678905636072"}},"3.0.0-pre.2":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"3.0.0-pre.2","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"@polymer/polymer":"^3.0.0","i18n-number":"^3.0.0-pre.3","make-plural":"^4.3.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n[![Bower](https://img.shields.io/bower/v/i18n-format.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://www.webcomponents.org/element/t2ym/i18n-format/demo/demo/index.html) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.html\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"a09d69b8b70957ab71118e2b6c033bbeb9de1fab","_id":"i18n-format@3.0.0-pre.2","_npmVersion":"5.10.0","_nodeVersion":"10.13.0","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"integrity":"sha512-nVsZy2DhCwqQDVIsHAFOj8zgktozJw9GAa46YPhoZLvnyN6l5RJJqUCnBNAEFEvzkOzzUFkFy72sR6a+sh6hLQ==","shasum":"40b6528680da934ff6f7c519b8f15dbd75998a37","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-3.0.0-pre.2.tgz","fileCount":14,"unpackedSize":104769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDnBkCRA9TVsSAnZWagAAcX0P/37lSUhUTuSjX2BaDsZv\ndzm7CmvydaVA8cklecQUjPLNTIj3jWXod4FYKm19ccpeEGt7ZdGFo1NOAFr6\nMRhHUnwLfRvuDQLPrOSTG1xZMyA9JDcQRgJaXmEPG/IYIcl74qjE/y032rvg\nxhxFHjmsAHgKvoePkd2tC9ggUxx9JBk9gAoLv9oCs+jDPfS8EfKtsg89dXY0\n2uj2TSegRExmcS6/KUDMI5eK8u/woioWQL3BsITIwmGCVKM8EgYMedplCvoo\nLvpNhF8Yg4RHYYgeRXano+C1A/E/FtPnK1mOpQk7EQCmQa64Sk96dKazMkWB\nlMI5HQMdHYOS1tAiIVjHKIoNkIBJLtP+flvEqfS2tWDHmV62awbtmEyL/KrK\nXU9eyerpMZ+vmrWR/XSEXH5OKzXg90U/UeVKNnnnJYALQDDPHz3oVZbdrva/\ndfqHuNytSlZNuQ/bSg17S4VCwEC/7unQ0vQkRgqdXAt5u4N5h5lzTvv7i+29\nwG6JTK+GwwdLPYh4Ch+vUoyeAgMgYlwIPHI5HJs3AOq4Ot6r1RnTbFoEw0ZV\nXrTkJpYF+RgWB6ieJCUbmgmZ/74jMNKgCdHCBnTGwzQAR12D2S7kufzopS7x\nlo6t3rejT/1UpNX95qnEgV2v9vkGFqsQsd/NrF2YE6qoj0i7cci4UiqejDSz\nkUpV\r\n=o7wH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA6pUtm2fuMpk84fLslkxaQg2cxuAcwJjTfBwNijAE9DAiB72ROK7qonlZh4YComz3TKQ5Gf43YoBbXOm7Jma5+r+Q=="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_3.0.0-pre.2_1544450147669_0.5884228012692883"},"_hasShrinkwrap":false},"3.0.0-pre.3":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"3.0.0-pre.3","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"@polymer/polymer":"^3.0.0","i18n-number":"^3.0.0-pre.3","make-plural":"^4.3.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://www.webcomponents.org/element/t2ym/i18n-format/demo/demo/index.html) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.html\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"a31eec4f115c3dfc8c2ba5e6b1a3b5a8812fb829","_id":"i18n-format@3.0.0-pre.3","_npmVersion":"5.10.0","_nodeVersion":"10.13.0","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"integrity":"sha512-pnZoGh82HukuQZIjYdgcDGdYlGpzp5xKPfix9HjmVJXPp2HOmoh44zEKbyfrom0VCFtT2TB43lHH07jIJM4m3w==","shasum":"7d0f18df0431669bbcb065d89a55ad742e88ed6f","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-3.0.0-pre.3.tgz","fileCount":15,"unpackedSize":104756,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDnO0CRA9TVsSAnZWagAAGPkQAIS4RNUq7/uFrGNOa/yh\nFj5e5dOCOQJ1DmD0Bvqk1G2AhuLdlxQSedrrGgUqWBfoHtdGDEGQ3y3TsRVz\nbZpArw40YvdQbx3kf2sRhtIkmLVJnqeDzDBpHzOjTzas+O/xcVaw4UK16LHC\nGqJSiRAYfpOO/h5B2rgyJazfximZSZ39c6qdFh377eI0iZUWjxjJwVnQoRDH\nUelNRUQmVw0oWLeRR1iATwEZbjZ7uMV9EW+Ik/Fez7V1htG/IG4ezAVI5xG3\nRbHKg5bVaaD1zcYd+e9jI9dKtRK7SonbmZaVwZGDV8nVwEk4n/vNDCIo5Bo3\nwxdKrqpiDnC5TUgCQblMI+e/+hku1P9AxDyYbCq46ouBdwxez2QIJY5iZ9zQ\nnTNK/fXQh7aohYE6u8IzszHPxKSbV32X/CGnThRQFx+TJiU6J26w95kFSms0\nIkge5m+Fj2RMPSlrrhWj+nlsgGWCczImPjm1HJHKmFHdKw7BG960BYfRj+pU\niZJ2FDOCx6PIbX0qak6abKXK4Xf+kvWdNaFSjCkxMb3nCdPgqisLlEN3fJOA\noBDO0EnEgccDAVvERQaIN1k6XKkeNYg3VkgJsXVsDgFF2hKbDvr6UCnc6XqO\nG5rJZbWLQlc8+hbmeaZt23lMzZvFneYe7MEdDHwVGJLtYSDmDKmmoC9/F7jx\nIr8o\r\n=pxMX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTHS1PS+g8sub14y0YC+p4WHGyi8PzZsjZNbfK89ODMwIhAMR9Od7/v+8uzzgXl/Sj//N0SfYXNhRss4t8NrqkD7PA"}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_3.0.0-pre.3_1544450995407_0.23920811259936747"},"_hasShrinkwrap":false},"3.0.0-pre.4":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"3.0.0-pre.4","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"@polymer/polymer":"^3.0.0","i18n-number":"^3.0.0-pre.3","make-plural":"^4.3.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://www.webcomponents.org/element/t2ym/i18n-format/demo/demo/index.html) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.html\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"e18cd3c648f253a187b3a1ee1c0dab4491a53e66","_id":"i18n-format@3.0.0-pre.4","_npmVersion":"5.10.0","_nodeVersion":"10.13.0","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"integrity":"sha512-dIgt4TMABgM2tx8vwz13+/VIevG267te4ix0DDh0r3PQfStSZTmYH7v0pxgHw7xYxxXAmjHBWMxGm6Tfc1Aosw==","shasum":"b2c4a94ecff07d55be6a46f1024cc031a485d440","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-3.0.0-pre.4.tgz","fileCount":15,"unpackedSize":104851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDnmTCRA9TVsSAnZWagAARhMP/RgkdCNeCdx2cNR/wB8Z\nAH02PhyiTIuul7msm5g5zBEgZU0RRtuHaiLXxjT/6fSS04ZMjsv2B8WiWdqD\nKzJceJJp11ZwXFQp/2PIszveY3HWGbG0strAtd7cu6hbedf4Sr3RMJIqnZIo\nGXXCF+i/OBakrhlt9IZ96dkLDtWHAEwsUEWZGyLOCUf/Fjjekn3J9I9tjp8q\n/SZlgszYe8mNKKyPXTeISIJieEsRRGLqDOzUZQRnz9rKS47mTfvkTFbBCI8r\nkXSmS/eBFXgox+C3aKMOCwLYmXnT9LzP1UmUhOLyGxnv3zzzPTtMBrmVj0Fz\n/maSX/gmF/mCvbpSPh/dngbGdjFhqOlTcGnugQzlhqo9ZZ3VL+wuXkfGMgri\nBL3J4ljWpJTpDfbO5W2NEougf9tHMWTgU/770WzmbbMrkCjp6i5X201qZJvO\nsufPya9ZD1RAxAGkH11vl8ZLIyR67dDbVcLfVtGd8FngivWFm/ke7IMsWLjU\nAeY55l8lJufN2+fZWWZY0LoFtCdU34zJIfLt2Tg3WIC81ViT9pfw307UjUND\nbpHF2PH1EMC8qFHfKOBzzn8S/WVz7LoPEADhpuDCkqSwTdn3IqPYaxjXrBrF\nJSE+AfYhdBdcBgXJq90cqnBtYxFwmcNDh759gRwf+OFv7YP2SuJkH5t3NBaQ\nzgKq\r\n=mlQG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGLkSewYzLbk+GG+9pvKTWm9Mq3yrlBXcE8W/eIFE0sVAiAjeabvzgM2dYeUNhhqX37aU17RsoU19WKjfLt3DvTwUg=="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_3.0.0-pre.4_1544452498859_0.17956105496650343"},"_hasShrinkwrap":false},"3.0.0-pre.5":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"3.0.0-pre.5","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"@polymer/polymer":"^3.0.0","i18n-number":"^3.0.0-pre.3","make-plural":"^4.3.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://www.webcomponents.org/element/t2ym/i18n-format/demo/demo/index.html) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.html\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"7aa00acda580bf8ccde6c4106cca58ff81a61a98","_id":"i18n-format@3.0.0-pre.5","_npmVersion":"5.10.0","_nodeVersion":"10.13.0","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"integrity":"sha512-ezKGi4tGfILlWXtI+0uRXiF2d7LTjuOlF1rPr31tj9rhy+UccGZ2maEn/sk7hEvx8yFswB/6CsqkOki3xhKzGQ==","shasum":"0957486a371490be53935ba59119cbf00e2bb0c8","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-3.0.0-pre.5.tgz","fileCount":15,"unpackedSize":104760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDnzNCRA9TVsSAnZWagAA4UsP/2j4rKJutjTfC4WHj6ry\nUsCWCYEyEsMFggP0wVFq9+tXImV7Hff7mjF5k1iyaHzNa2uGHI+sfezPZpop\nrHeOdHkzKUSrcywq7UMkstHKyqlNZiEfLOl5z8SB2sCg49gHhzXDvwWODLYF\nwLmbI6HmqVNw9I4KkOQ00I/0erbboAGUzaHHp2PtqH6PUyRuFMpRrqbtFh55\nrzqSS6HaiBBn5FFqaeEY1gW4P9bgyPiNdQ8Q0nQSrAzLq10A3zdAh5Xbc1+n\nY4q02eycODksVO9rHgY0zRMezlAGPGCNWvbPgA4POT2MjOHHHnQ4tFp6G8+t\nJHH8OQD908N4K/u621Ed/CwCuDEJBAFRW6C+Ckgu66HmigIA9pA2T3MSJYt4\nObjqDhmJHpsayIvwNF2ju+EnPRVc+6iyeVPawYFKHpLy0Z7qs8FybD8+gdL4\nen8v77nmbDejgrM+Gb31JbgJUXHFh9C3R9wOQyrxRoVZljlqTSj2k8IRK8L2\ngOlBjG/ReXdNzDBVGCy2yOVdmln7+owfzU6P7S9ypqNWTm2OP7Rz5EGw6/YC\neU30EBELlemQCWTv4IFbO9CjD5s8KnfnmH82Bi/PJeg1NFmdsnMb7NpFNQob\nwarxLs9utnUIPE8eB6xuvK0kWTbAzUd5VW2nyp3+4lMWkztPfRUh15a/Kry+\nFgsu\r\n=2meE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCX8eYrcr+bDy94umGJ8suvbTZrxSw6dcoOKQZqfPpslQIgZy6fpVJGFfdrHmn8kOoatgCmJ90qfUoWkIBbdOUDH0Y="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_3.0.0-pre.5_1544453324657_0.8967033277991279"},"_hasShrinkwrap":false},"3.0.0-pre.6":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"3.0.0-pre.6","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"@polymer/polymer":"^3.0.0","i18n-number":"^3.0.0-pre.3","make-plural":"^4.3.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://www.webcomponents.org/element/t2ym/i18n-format/demo/demo/index.html) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.html\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"fbd108ac8c27103723732bce6ca4eee730f0dde8","_id":"i18n-format@3.0.0-pre.6","_npmVersion":"5.10.0","_nodeVersion":"10.13.0","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"integrity":"sha512-zZqJFb8H3tRRZTiMuaBfDeKKn3c4HQVOrl+sHrdUQ/4lci2cIrUK+66EROB+ysGQFfqXy+BfAZHc1iJE13M+XQ==","shasum":"3375b1c4b0dd7c202e6c5eace6bdcd77053daae9","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-3.0.0-pre.6.tgz","fileCount":15,"unpackedSize":104756,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDn2qCRA9TVsSAnZWagAAVVUQAJoLb3pOc6yVfjyG5wN3\nMb8CiQNmzXbxcnup1hMjlVo8xuriZZU5+l4TkvsEu9yeoimRH34wbXo3kUOM\nYWJRoK6e6i1YCBip0SgPnx+Zwpkx2eEJKDZaTLUYO3iZ17dFdIOd0R2CixmV\nQnTxbo6ONBYj3pzc0qCTX37N6xD5qk+KkFpXmR/LLrLaXtfi536N/R62HRUY\ntp/h6t9mkXm8xHWdnwdZ4WH/nRLLZAohQRCJu9YqMPhQA1nFoYXsFzGH4AoX\nZvXJ34An9vnZRp0iTefpY4+CuiX2IEPWuENVSQ4jvpqBzKlaiHgoIzK4NC3D\nHs+fQZW4OFa9m1vLRjjiPOHjhBLMMjIXiBDF4gmvaYqjGLoP8c82K0oLq7u7\n6FSwXA9vpi0AZPVQn1UkCa+JSdbxjcX5jQeQfMLHZ+lnlb9GoIzMuZnAQTKW\n+7WKcCCw9qNQRnZf74ciknWRUccufr1hdISdakhs6WuSN9Pi4JCCdRF69Ueu\nqAZ8jsLXmXZBtv7ap9/u6UarXVJ5wpsf1o6QJokTtfr/a9OLMfOQOb3zgJTE\nF+knVmaI5Jj3Ez61GtSOStAbVjbThqkzK41/VF7R88n2FCQpxUVqVoNBczCs\nm45JA+z8aeR4RLf4tlIGd9yF82bR5rdESMxDVt522BBFRlnIznL8VOuAUovG\nsQAR\r\n=91xC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDQlAPpOZ6xPZ1v6vop5rVyh4OI7dksdgwdfX1ASycsfAiEArjlke7ea3M8eegpzzYKDVKiRznQCJq76djKDWsg4fw0="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_3.0.0-pre.6_1544453545813_0.8001251170063799"},"_hasShrinkwrap":false},"3.0.0-pre.7":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"3.0.0-pre.7","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"@polymer/polymer":"^3.0.0","i18n-number":"^3.0.0-pre.3","make-plural":"^4.3.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://www.webcomponents.org/element/t2ym/i18n-format/demo/demo/index.html) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"d9203abccaeb6fef0f41d340d4fb15df48e1a78a","_id":"i18n-format@3.0.0-pre.7","_npmVersion":"5.10.0","_nodeVersion":"10.13.0","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"integrity":"sha512-M8xUUwk6JaasABr/LA+sTK98bDhUM5CVLILlck+BAkOEKISrCS93ZnmgDt+8ywgFv/en0Tz7mi3yDYki7CHMHA==","shasum":"8717fbc47c4ad4a2cb151e78ab01119f965c4e9d","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-3.0.0-pre.7.tgz","fileCount":15,"unpackedSize":104881,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDxNPCRA9TVsSAnZWagAAp3cQAJHUcgJ4SFo+kRhVz+HV\nr6W0AglOHiQAoGGP7i2wo4oaHDzO+XmRmtKvLq69ColfqG5/jNLJa8LvwhKi\nM5DocEaW7Tx1E41Omemgnm3FvSZ3anHnqKH+Z8JE/0OPp4kfAi7yUq4cpU0q\nhpKk1DleEEhUihnuYFGVMpn7xHffXjBx1ZImoGw3llMtObxrCwuZ6Ebm3gTi\nPvLBsMVlnktwxrFQcx4V9m4siCTXRUjfFHvjnOCy80lpeDFbmkoEvQZxFkC6\nVouj82ez27k4LV4nvxxpW25nL4Ig2XOt8kAeKppMHnfwxgHBFP1HcbTtRnyf\nCxrf7OE5gXK5+b59V+hPgfPwk34i3ts3G3yNfVydqdPAOitiyA5Dee5TyZFX\nQube6cWPNJJDOxOsr9uFdIuHJcOAKOZFazxYBzSz4tC6m1iLKFpOMT7l8ckv\nHugSzroDvjkGn14LIyGaBCM3BHjWcKXtR0VA79GTl+rKgTaGqBB0TD8FLHqL\n++PUVw0/D0zN+dE9I/JuT2MNxTbHCZEFxYG3tqiZK2cKN699DLR17Gl/dI4v\nKbJ04Yl/owVNsd+SYkjsfwWV/TfnPTWYE+D0JmwBJ9f1STOoB67E/cSV8da1\nv4haZGQQ+K8r/4kYyGF6J14LM3JJGtxwH5RT8CpuPvNlh/3tW7GP56PDdsqe\nsjTK\r\n=GvdZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFeNwyZhi8cp7YE6MyUgnceWCFbRxCHNFLkGp5KX3C0tAiEAhftVTUG+8vArdC7QGWaWcuEqKdCiix/6yCzZTD4jQB8="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_3.0.0-pre.7_1544491854365_0.8994593935445774"},"_hasShrinkwrap":false},"3.0.0-pre.8":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"3.0.0-pre.8","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"@polymer/polymer":"^3.0.0","i18n-number":"^3.0.0-pre.3","make-plural":"^4.3.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://www.webcomponents.org/element/t2ym/i18n-format/demo/demo/index.html) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"4cbb382f5b9f5a84b509a5911452aef417f8bd9a","_id":"i18n-format@3.0.0-pre.8","_npmVersion":"5.10.0","_nodeVersion":"10.13.0","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"integrity":"sha512-apzXi3aS+n+nk5Izp/RUaSZEKWz6b7fj8kR9E8g5s0wM63kT9Bcq9tuxhqL+uCmLuuX1sdYu67loKBDLMYd/AQ==","shasum":"5952eb790e93e63dc210383e04e16ddfabbcdfe5","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-3.0.0-pre.8.tgz","fileCount":15,"unpackedSize":104978,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDxd9CRA9TVsSAnZWagAAmAUP/iiAWbcQrVBfEJZvaL3C\nOw/RDkwDhN+L7zjGPSWj9XkG+lFv/RqZ74wriUlGQtbHR2Y7xW8efQXb9u/H\nZLjB3/zptC6J/zsFkWdswT3wLYh2950yF3lzL0d8pmwCh4YsEY/fjacsJ6Bw\nEzzI3IRgZLsSYpE8ZBKxtnwOW1dGCUzRFzyeloKfuKL7g5nRH4ONr1McfXzj\nsXbMKylzVhyt+AgiBtXqEmFCop42gMUmITqLuvfLOOrDV+ZMCDwzXFuSuX6+\nvG2CkM9Bd2LIk/J+lKgZll2b1yOtIya8MRbv7XysidLu+Cq20h0HTJOziMWd\nL0xhHnxQK+n9AL22S0WEfhuwEt3I/06jlVVkLjeq5iBYmA+wHTxYlFUvtinA\nH1ZMPeEq9b7f/zZ/oyE0jMEsQY4Zy2jHgcMxoEA4xEZCS0RLd0AU5oxPrAav\nBG+ZTILrU8gX6QSM/XtEzUGsvADtg7QwBRHU95so71wOXW8hV/AnST+xZiP+\nTZK3joFm9ovFFWyu3fTjIHEDvp3Rg29BugxyeS02dXzIfF4IpPM95lnf+YU1\n7NmWp+oGWqxBGxtnzA1Cc66DKDOzx8Ufg4VE2qkIFMP2pA0bmqDW5T/nt51L\njh0KcE6z2by8klTJEjci2LlPPXEq7JXXafcZ110ssnvZhTPmXuxKkMw1ZTOe\nsS2Z\r\n=tkrB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBqfM3GpWvC32ghoyMtpuXkGxxAP5NS3xbNRlKtaxH+MAiBa8gKZlBLZllLXNe1xRkEk42uz2TmdihA+4L/bCF3iUQ=="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_3.0.0-pre.8_1544492924358_0.9177657607945848"},"_hasShrinkwrap":false},"3.0.0-pre.9":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"3.0.0-pre.9","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"@polymer/polymer":"^3.0.0","i18n-number":"^3.0.0-pre.3","make-plural":"^4.3.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"5b9249b4d77251bebd839acc42222803492767a8","_id":"i18n-format@3.0.0-pre.9","_npmVersion":"5.10.0","_nodeVersion":"10.13.0","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"integrity":"sha512-HfKKrPcnFoiMf/g6Zie39kfUBUs1QyyyHEr7EEs9/rYOSWNMMwVLjSeRnP8ABImcZBKinmT7IKfZNTw8y3cL/w==","shasum":"d14a70c1728684f3003aeaac99dcd00d5c6672b8","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-3.0.0-pre.9.tgz","fileCount":15,"unpackedSize":104966,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcD1duCRA9TVsSAnZWagAAsesP/RjNYRXcY1VbgSsCPL6C\nslaKFdqkagBhxwTf3MlaluyxzUBA6cGa+OAlihN4E+m/SY3W6IiWtJc+BcN8\nq+H3XVL/qmHYXJqYQm6ld3gsUwtBwsuEsnhTCk2mn49eSXv8Gy9U89AnqGXN\nfgutANANK4ghYauKt12QnehOCUkuFdSZRPeDKFlXWCJkuoVsQcXW1RXi8d/d\ndrXRH7zTRMrtvZBK8/Cg25QiRjxRJf+3tDzxE3yvtOY8vYg3n4UQrgsDhZnR\nbFB2oi00opviwS8FttsIaNGABe999e/Ems340oP++MHy37mmiVHxs5CR3/Y2\nNtwEkeyNghIBpfnL9mNBedufy3EvPXf0FZNe4iZXipEqrVAuXRpEHYghjYh8\n307NZQ2tZnyUXMj+xWvRu71aaHqE4edD44pqSNHaEQssXexIDXwzYN9qHI5n\nhIP9vChCM18YDOTeIsd7vRBCUTselU0hy8xyfV3UtPcTMcb3bIFk/Hk2J+qf\n7DLCr37gdyzDZfToCF43knBem87LYJYdwmBoRtR8GPjTuahJHtJ0HSAOTcqw\n45hYDDnY+cWcBr4iLhFxjFtdcWGAtGxpe+4inuwQwdtKV32S+mgTELxRPde/\nS9ELS+9HKztyCfAqEiSTxOJ5U8DpKiKGn0cV/ec7gj0gsAOQHvSy1tdejznB\n7VIe\r\n=dbKI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCISshF8kJOF9qQM+lHmjw6yp4nIe9QUtB41Yy5duPEgIgRcVV8YMAw6ih1r9Y5OvN6yPbenzK9mcRMYU2VW5SBSs="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_3.0.0-pre.9_1544509293838_0.2608396979607033"},"_hasShrinkwrap":false},"3.0.0-pre.10":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"3.0.0-pre.10","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"@polymer/polymer":"^3.0.0","i18n-number":"^3.0.0-pre.8","make-plural":"^4.3.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"5e6cff45c8e1ee192e132b6f1398ab8214569133","_id":"i18n-format@3.0.0-pre.10","_npmVersion":"5.10.0","_nodeVersion":"10.13.0","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"integrity":"sha512-0tEzvdt4+GtnwknkA/wVBo9yqBKZcDO1Xz91HdQSgXV4UQc05XTuCwSJSi4C7PGSPtg7cc8oWZZhBot4opKCig==","shasum":"91087ccf30d4be38d2bf4a9fbb182e1a5585e179","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-3.0.0-pre.10.tgz","fileCount":17,"unpackedSize":105484,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEfkhCRA9TVsSAnZWagAAtZ4P/2MvSi1LwqtJvLzrhJkF\nd+8fsFaVz0q8SpeRl9qhwl4xHvDdtNZRfpmEdG3CctfRbtXGfxJxIFJwqMqv\nnW6n9PKZ/mHKK+5dsf0HYh0mx5R7L+URDYdhgLhZEE0eJsyok6LeFQ0qowrR\nMY+id90FU2dsvGjlCYRnn3IHJEPO4WCGZ6nd0Gr6wL6T3qkiZLxOvtfflwra\n6YxWjWFck7xpEOfvCjzBA+CuTkQMFYAXBsqKDekoW8O+DiMrN9g4Ylfg/zFK\njcDdcm2cV6rrssx8/7W4oDN6s+6Fybx8EqusRsZw0Rj7Q3XH/+l9PHzpq5Pu\n4PxszKywP+nU9pahPEMUqFvndWeLPqUyXABUZMRShwu1jNA8sZNarfLvN0Qh\nrGaBwtQjVBkB51K+v75a8jryrWg/FZG4SFBQqA7oPqaQ9F3UKcu/LyhhMw2R\noDpqwfKcpGgLHSEoYjkpLFuW2xFrIr0g1MyXxG3sFGcjSajhCl4Rii6oq4xl\nXFsb05fE1sVIKBOoGSnuef0EvDUWAovawziFbb6Wr2jsQ9P//234l7ZI+jYz\nc1CPF0TIN58jNN+82tegjR/ErWhYdXBdjUaNxPBKmdkpDXgDRH+CFi2mJOMv\nUp8zSBEgRv+M7vH3F8LpbKDk8XFJxg6v8gXHdNcs2k5BGgpju42P+HfOR31J\nHOBb\r\n=T16e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF9+1jL3x1nztGmIXkvaLHnPANh9YoP6wM1kLRjtgocjAiEA36QTRD/aXiNXe6b5RrEmYGqLH92rMZs3pSP0FremwCo="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_3.0.0-pre.10_1544681760345_0.3493946205113492"},"_hasShrinkwrap":false},"3.0.0-pre.11":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"3.0.0-pre.11","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"@polymer/polymer":"^3.0.0","i18n-number":"^3.0.0-pre.8","make-plural":"^4.3.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"63b560ee69741eeabb6df772bad5a1d74c28fcf8","_id":"i18n-format@3.0.0-pre.11","_npmVersion":"5.10.0","_nodeVersion":"10.13.0","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"integrity":"sha512-R48IzdLkynT2oC4xRz7V0Unwg4zrkCu1GB2/EtOdima9slG3V4wyrfes09Nwxvfb0mZ5qhFZqW5GQK6TZpQGzA==","shasum":"754766f73228b338e0a29e85ed9967946b8c0bcd","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-3.0.0-pre.11.tgz","fileCount":17,"unpackedSize":105762,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcKZmQCRA9TVsSAnZWagAACBgP/jiY5BduvclH5hb4frEU\nNhDKk25wTQZ7ky8hxM5iK3UHlLWf1FwqwgvWsEr6NupynXi8A/cKP1KOV7Ad\nRTsSC9254F95RcY0FmVxtMdxV1H0X/CPsDBx+9UDFgpTbKTopL58sJ3GW6C6\nCUlIXy7GPspzm5vA1HFyi5aY80BPKWMEwJDtinwXXjGpiN0YmjzzU3OhADgB\nViEiwuqc+zgiPn1UwMWhgoGqBdNj47yPNn+amTHdpnMbJtuVOpNvFzfop3dA\nHtiJhz65Lx3MvvGdgxNkBim2g9ya1Eu+1AgU73/gPTxtuyPiylCuyfQ95VBK\nr0TaxaZX5xoZpcqF1JmIVSAamMMbXz4OBJmZuxS9IY/JWBzlN8DHD5Ic76JP\nZdAhZFPy++/bKVbjuaQjvrA/nebK7kWglSC0WyyaOzIN+N4z4diWvaGGQql+\nIuZDQ/lebJYTSyuYRM0PfMK1J9opZic34dNtdJmCmpweMxT8b6d0Fe5QnesZ\nWaECdyHEmUXDh0RDiuZElK5eR8WW2yKt2gHBnuX+z94oaszwz0p3PxJJyYiv\nxpf1CSUZKt60qRkEjnMUhSwn068UwQ2BxfVdK53b6h892ZkFWNwJvBKnPKSa\nk18pnCzjUVTCz4QQqv2Ehwu/sJA7YJyQrGFNtDQspicutnIl8PykoWg1FC/N\nOtyj\r\n=L3It\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGKiJbopXZwIVQhP3XrfxQag3sbq8MHImHwMF3Dxsn+gIgL8tGRCBJr9qxZCW/BSCcc4v8Xc1C5trZYxxlWAWQQp8="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_3.0.0-pre.11_1546230159895_0.7481750150946347"},"_hasShrinkwrap":false},"3.0.0-pre.12":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"3.0.0-pre.12","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"@polymer/polymer":"^3.0.0","i18n-number":"^3.0.0-pre.9","make-plural":"^4.3.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"6e5562fdd4751bf75ee2d02c994a738535b55386","_id":"i18n-format@3.0.0-pre.12","_npmVersion":"6.5.0","_nodeVersion":"10.13.0","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"integrity":"sha512-/DwzyVQMS4EJ6lNc69p2xXfeJAR+yIEiU6FMv+3jgpFonnPxkreEoihqdUrGql6kEq7ZjYXNOo5peUH+AUX3Jg==","shasum":"a5d9d73bf5c526e47e670a0a3b89767137ccb6bd","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-3.0.0-pre.12.tgz","fileCount":17,"unpackedSize":105762,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOGWDCRA9TVsSAnZWagAAFWMQAJawVy2BilF0SmoJSr2/\nMAPl78S3ZkwPyeiGwzYk+h3zWKTu/TH+9TqpIaW9uxucjyzDjHV57dml0SHv\nDrznWlTRUJsD5NPSEvvtsbYaXZLpbZ2H66CV1XJhp9X1koYWev23oKlyRKcQ\nqIZ63mmgGEKnSgFF50HWUOb3bsGORg0Qc8445aEHGfbNeO5/k3wxdHJ3oFE7\nBRqJe7X63AW0ZiezOuY53O9whKv/K1PDBd9BIoZ0lToljXycWHsdAN2Oc1jv\ntTDbyFf8/6M7x37LhKiYtijzgg1533bTY8sxi30c6i9Wim0NR6HptmBS2Yj/\nVr5Kt9TFxiwVzx+29fBdFjy85SdtwnXPGevSC56ZqBtgFdenjNnIQ+J5gtx8\nzygYztsJQ4cssCSuDqVVXfZyigeZlhyRHsL18oy01c0NO++XZS7AAjEQj083\nk4MJ9xoO+2FHmZM+SKNLnFqDsWqNzhR7snXt2pndXWzLD0s94I3JnXSsRo7v\nV2kjvtMHvfPcgwRi2EL6dzeAHbxmhgN+i2NuICG2/OPk30vig2duv+MegUeb\nGoAv/5ReAyrb6Qc0YAaGBqlzE9jbqSpL0Kmhrfas8b09yaKVHCrf+F3D+qhY\nKSg8P5+bJqPWlWn4jUpxWS4/rgZEZWVtSoCVBj5MfKMVYpkNcJToFDFtP77z\niHt9\r\n=GId+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH/p95FjTylajpvgKlpeq0hRWcArmONN1PRqAQ174118AiAFKvqvyygMmibX/jm2K9psIvrfWGDLl5AhHFIIY8c3jg=="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_3.0.0-pre.12_1547199874693_0.2506051257900783"},"_hasShrinkwrap":false},"3.0.0":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"3.0.0","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"@polymer/polymer":"^3.0.0","i18n-number":"^3.0.0","make-plural":"^4.3.0"},"gitHead":"4498a8395a62ddce2ed4ee7f006189571c718658","_id":"i18n-format@3.0.0","_npmVersion":"6.5.0","_nodeVersion":"10.13.0","_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"dist":{"integrity":"sha512-g8E/4RiWeqN+elU+nMgJT1Cud/sapqF8pWBwZ5ZKck0nwMU/HG/CuOgEOpTr9P7Liny4xHhtQXiH4QKHDxsyLA==","shasum":"9428093fd4652dd8a5567c58a228db36b654c4e0","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-3.0.0.tgz","fileCount":17,"unpackedSize":105078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPy3ICRA9TVsSAnZWagAAOEYP/2jS6/jC7Zt26HL8yYlf\nWVLRSMp91SEv6sgMsQ8AYVf4X6na4tkqpzH+gKYNZUEVxQ/jpUfEnhXdFp6K\nmNSfZkhHRWsga40mWbzvAkfEQtNAfQpCs1ZLs3eAz16HSe0IrC9bCrfMmSBm\n/SIyBjAWzVWWNrupmq4EW1Qhj2sVYISHpBgqKN8rkn/SMqnIaOLppRwzQgry\nF5dltU9ofpBXveUBqDgSTPd0rUgBJkjAdEyz6b/RWy6VdKDB2pGBvkG8vv7Y\nAQhHWt+MKHsrdX2jIaUcLPTNB1MpLwBDB0rv8Go/OK10wWfBe8ICfXLgB2oR\ngpgabM/A0ioGOoyvo3JhCFBchRnidYkspGXM1QeevQmz9QbdB9OdknA8TcJy\nVm3NO4S6xO+/bc+v4fBEwCPEyxRJXxL8ZHDArSo5aiQqh8Ldesjl4qG7jaWX\nhQrfiKdEJC0m7z1t+SHCNzCX3dWZwntJJzzWn31Tj+E8xA02p234caGnSBd8\nPiA91DA0w+FPx7uceYyaihh3E8XXwDed1xkeyOkUHfSyjFSQuBqZKs8J1btE\nwZ2/lf8yuhGh/37BoXDkpHOVekp0FUJeceXw3oGNRhrUF0BpATb0/HMY/j3O\n/scbhE29591wtKxThNrjounNNvCrjgd8HkQRJ5nxfYEzX/sjNaIyjM0pyc5+\n3jXz\r\n=EZzF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHIQzuN4Jr7DEWuzaZMxVUsKqPk6QN8BrFuYdoB6hM57AiAyzZ8E7wQ0MomnmBUU6jiZc+WekSN6U2qv1h7jWS/EsQ=="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_3.0.0_1547644360179_0.5866974481403129"},"_hasShrinkwrap":false},"2.0.1":{"name":"i18n-format","version":"2.0.1","description":"Text formatter with Unicode CLDR Plural Rules and choices support","main":"i18n-format.html","directories":{"test":"test"},"scripts":{"test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"homepage":"https://github.com/t2ym/i18n-format#readme","devDependencies":{"coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","web-component-tester":"^6.0.0","wct-istanbul":"^0.14.3"},"gitHead":"5a5573b631b9f837c7ede657871641f4b0b88725","_id":"i18n-format@2.0.1","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-lCQwcQ51ci5hKr7HAeSZFkor4FEFnqd2K/wBjMpUeiw1pR1hFAlumiwkk95NgwIDpjCSErJSV9RLIEwF3wtIww==","shasum":"4cc47f51e10880f6d07d5e5f6c267a9df7bba1c1","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-2.0.1.tgz","fileCount":16,"unpackedSize":104537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcW7yxCRA9TVsSAnZWagAAywgP/jw3vk1O4bbhsEoiP9m/\n10Kl5RnFzl6Ykj8e/xiCbFIG50lPKVYMZtysRgNoKjS0Qv0mUykSBpJrIRFk\nvWCQn/H2rhcZJUGCLcChAwg1tE2S2++s89gtHsUXy+COacOc8/sUL4TDaIKK\ntI9ty1ZwIbBCHsPHtIHt8706NPqAxg+epztv6T3vRNltpQFlc0lZTWW43uoR\nhZ+2TlDpyxTNjFL+PsLe8R1DER1Ihby7pJUTVr3JRfosdZm7d3BO88biWwzB\n62Wt+HDB73tj0HUUyK7JP5qBaEdk0vNKCe/P+0mZqbkE9a45cvVyluWkTY2i\nqSqNpwhX8YemQPUqUWWqVqRs0boY1RxJUhxyjuMnbQAH+zCby8NrMyZj2DoW\nGTJWHyfug76nATbFEQzls/SzCoCHWQANJ3ID98bzWCWID9Rm+63GJUVDafJt\nsHs21SXhsBZhwjzZftL9FCwdpuFmLKZYzvy8qpCXPKJSSVm7vdNvKBcYJrmO\n2sn6BeZrvyAmnFy09hCbz+HzY7rnKQ2fmaAAC2b2mLi7+kdBXD9+vjNJVZtl\nq7FjWyXfrjqb5WxcT+eZ84lJZWT9nIgpXMc5M9NkixF6OKZMTbbXEETNjIiF\nsYGzBeYLa9FVZ2uRZ6tL2dWvqVBdcSSjeptEzX66l9RlHGQeF2OYWQSlDOjN\npbgP\r\n=ByXd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPraZab5YFLZlZ1Bc5kEY05/KXf1Dgo2rWtZ+vpESmFQIgLt5fvCS2xe2FWAMcURxJ8wPZgOP88dVwh9KIoAREfII="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_2.0.1_1549515952977_0.014391905288795748"},"_hasShrinkwrap":false},"3.0.1":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["polymer","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"3.0.1","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"@polymer/polymer":"^3.0.0","i18n-number":"^3.0.1","make-plural":"^4.3.0"},"gitHead":"adcee77bee2b5ce6bae90ac5a16ef373292fadca","_id":"i18n-format@3.0.1","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-QNL3M0gw9OqGlWLREI+5SDVN+vVgGYw0ttpoYjXsZ6QES5PsMlHS9NT2DEha6xWgvTryibZkrAHsOBHBq9OELg==","shasum":"d31931115720864c0af7ef431e3bb2b475c74994","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-3.0.1.tgz","fileCount":17,"unpackedSize":105133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcW73TCRA9TVsSAnZWagAA72YP/3Cb9zMIAmM6RZK5fKm3\nwRRkNJug8ryMVoeOw7oq69NzUDZW0DWxM/PAdV6mKezeQNzVQYcvuEtZMhD9\nQACwpzbeqCudbUI2IUNJbPxSZxWNKoeUATOmpvwaC7CvaN8rtPrbx18nzz1M\noO9fFNdNU2ZGqeoyKv5mK5voyRSX2CZtnI8bndHN8Nr5kRpRCjQ+4WRBBRyj\nAmDlMO0y+PewF7q4QgNw+e+n526cT28hU5dqY64Yq3kklgDTm2zZ5HQ4cBqf\nX2/IH6cO5bNKfOrwR2NyIWdFblYYkB3+xZh2u16VWjHNoBbFU3rRhvJFqkrz\nofI82Ian5HU2ZAz0Xdfj2ISeP5uHn8RkSmq5TfkmY7DCKXsdCCQkGI3xpvOp\njtUsNx6isoLI17r4l18gVQPDMGyt6zpGNq6VxcrmFTaQq3Gv8S6CLrK2icN5\nHfHxNrVRZDmcSxv7sdk1S434zKu0E1y37cBbyVX5j299mZKB9XzSUiyBxb3d\naDq3ekVGIzD/XoOT3vzFyjYY2BRX6qYmFHHLG5qcTKqucvvnB8cJRrYTMcX5\nsHJfN9PADFZx2Q8SIoR+wSux7/IkQjCT0K3Hu8WzhrBSfTAB5BuoTdpkCDbH\nSdpmJB60sABYyuTbKX7CgvKrLnKXxznmY9cI0GPj7F1nZoMCCc8DIj5nEmML\nNg8O\r\n=OCDD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDGGVvPTw4SO/5959AMCgN/OpsGEvC4So3LhFKIf1wtfAiEA++M+6iLNkaScfqNOLNLw/SWJ/N6Z7RJL71xwn2tR4uI="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_3.0.1_1549516243360_0.8241661314496507"},"_hasShrinkwrap":false},"4.0.0-pre.1":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0-pre.1","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0-pre.1","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"a855f81cb038101bc31f902bf85abd9a90ca9bea","_id":"i18n-format@4.0.0-pre.1","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-l1BChRynz5TYKywfErbs5DpbiS/jZarETsL5igJviPfKM9qM5n1oJiNWruiXp6G/Bf4h+WneCXr/AsD9gSaWhg==","shasum":"fc06ebfbf5856f45841cea5e8cafe61b142fc5e3","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0-pre.1.tgz","fileCount":18,"unpackedSize":104876,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJceVpuCRA9TVsSAnZWagAALj8P/1a3BGhOX8C4u9dvVuI0\nvFPGdQ8+wDliVfmsDjHBvn3VPTl2J3tpdWXCDcKfkqe+x1t7q4++rUp5TRZT\nYBUfX7tdj1Y4DepmkvHjemwGPW5CguLOVOPyuh/flM6r+vRWmL3k9RxuGOAS\nuzXPWc8NoZlOa2HmknJsd+x623ofdlaL7T2MqOVBcaSgkuRdtAozeHzWerXn\n0zaCr3Ln7KoOxH8RAcjnBmHSmKifwaeEIM8JmyzC538v1kygK8acnOWgrZXq\n0pfS13gNmS8ECnXoV+CpNGrRsUN++uzOxkCnvnCGeDC6GCLGCslmZy2FCQ+W\nvVWuL8cT3gKOXlOChY4ZfuLt+r4mi32Qrih52Pg7UVxcnpiyCYUpS7qxjCya\nUvAVYgjWy6H7nFlw6l09F9rysSvcQAL/jXvH4NtzrklC/9uknE36jx3wK2Kn\nnZ0qflBNUWYWb4s41I04ii+rLRYqofxfw87JZj9wOxF7JuRKuZzDzMjQzFRH\n8KNZE+izRZ+IlKCzPxS05JLvrzjdU1UgNkjW/mw30S9UPA90DOwzHMh/I69u\n2c9bcqOJeInbtqFmL8QYMqrPEGujOxgHagFsd3U+9dEnK0MLS3zYigCj1pb2\nsBge/+QD+G8XqxTaE+qENZ9pWofoS4qppADA7+DjtHwZdgdlfcTAU3NOG6qT\nPgMM\r\n=wFqz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5kPGQvVDnMT3/2VcTemK5PP1DcGn2wa3B5jOROcoZSAiEA5HMUjBlsvmbyicp+2jb2HYfuQMVOKAuZ8Pq7MSjnNtc="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0-pre.1_1551456877834_0.6688626002316413"},"_hasShrinkwrap":false},"4.0.0-pre.2":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0-pre.2","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0-pre.1","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"cbef17d71c3bbccec7c43c4e8bee859991c2474d","_id":"i18n-format@4.0.0-pre.2","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-WFprcDRcF1TN22pVQMTIFZgUt8QDsijmpCcL3NPSUbep0Q4xGHrxjU0jQ1OXdYWPMtSEgt1ZT+tKLW/pOW323Q==","shasum":"fe86d039c0c82b41baa63b0a07541647e2cd0563","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0-pre.2.tgz","fileCount":18,"unpackedSize":105066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJceWldCRA9TVsSAnZWagAAWSEP/0GOe8NoCsSqzJksDN/o\n756FgRvdKALAA3QmO4gTC3Y3KUtbyqzTCZFXG0wsIZUxBG+BMxNZa55E1koL\nnnmuYh95rMrMzjTLVQlMD2hpJqhBhWPuSC0UnhVcPOb/rRRBEjkJQ1z3DPp/\nknyQ2lRQHU0EtZziFe4qpIsevnAjimfbEi8ldwOfM5lrd3CuZ55yu5eT8eW8\nYdMZ6SyUFrgp6j+pJmfMzIwAbK2Dgy9JEjIiuJNBm4u5k/juNn7aCZ3tk6Z/\nTU/t1oFYGHFiARPuO584kdBWaSVTbMyRi1PjdSZpBSavXFqyLNxklhEGDshP\np8Pn1lGJ/mOkcMeRH8tHZww/3K87pseo76rVyNh8aMKdGygS1f1/kZZdtRTr\nWZqp9xZK/GGNIoD4/Rm9Tvt95Ih6sL8siwiKMGQ2MtCAsN0HQFcxgm7tW0cS\n9VkWdrbn/fZ2ewH61By/M3YzSy4zwidzl/9nBHX5N8Nci7UfMkkCuWy8wbHO\nrV2CswHCM4zXiygKSZBCzNG3/n4oPI3ux7A8eCByOCm48kOb9cMiP2GBxbxf\n12oQdg8+Hv/5G0PsLbBCcBhXIzZgcljRG5ogLQJ338rN/C6fSfcogQ+WY/4x\ndhhQG45v5wX9sqG0GGHCY1x+PnXUj3m0VVDH4scYDFZ3zBl8LoWx3fPBZCKB\n0bsr\r\n=6BVQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDntAewuqMKHAOwggvbPR1yDymzni1xo+wUOsfKgkhWfAiEAlh92WqVMEvjGT1ZOM/98Gd53Gdo3CS+7QySBbP23K1E="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0-pre.2_1551460700638_0.9907347162639453"},"_hasShrinkwrap":false},"4.0.0-pre.3":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0-pre.3","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0-pre.1","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"f29349f4b1e4cb76fc91dcec939c9dcf754300bc","_id":"i18n-format@4.0.0-pre.3","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-fYeLvas/TqTQw1fe8cnhQL1QWYt2912I1hRKAQd1e0A3NTS1fFd0yfhFXmqk0Iki3kjK5761giPBijb112WTjA==","shasum":"78ea7fb995787ee2e5e5e26de831346350d9bb60","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0-pre.3.tgz","fileCount":18,"unpackedSize":105306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcecwKCRA9TVsSAnZWagAAIT8P/REG+OgJ14fw2okzsHHe\ngQL6pcfuaNyok+AoVN2z69V38Z1IpfNexYKaJaRaFSxY42g9Vg/WrH7HOf6q\nYxPPEuv1vO+mdreb1SWIiFqbDL54cx3mFPVWwLdapIJ9ksGHjF36VZ3i/tTV\nYJ6pRtyzOkt4jFyxbCkXQi1F2Q5hMxSWPJXyk09N9ddNbVQ9jtj5cbO+ybY7\n/MTErLaUN0lODQ9Og+D9QDZr4sgrZIdeLoWXLnMEqFb3bvIUTitpIImlgTmy\nnNBvpHLVSMcFAGBUGrp97Fcwsg/j+f0K4wuXAy+zvUikb5tYYIH8JWn9nw8K\nY3tshpjBJB1kZ2pmMMUOWjUzF+EVqR5ERJr5Xi4t/bRoTJUZc6YsgOcYfeUT\nkDlWLb/ugz8SZtzPDGPQe0m1KVdn5YLBMIJspxStEXQnL8xT4EmVkif8CO8d\nsSjGe+U/fDSb/IK0EdLlUTJNuDhIyipQjP7Ir8t5lSnOgsEANowH7Qsy2xNy\nDorxDlRisWZVtGt2c+vwkoqDjhcxdsDI25IggdXEWOu1fbGoKsKRYOar2rLG\nkOatZSfZup+129wT0AxR4DHXWIes2MVYxZ3Zl1mVZD3cYqXgKLnyvliPXzcn\nlE6V3s3x8IzPXPyFYg4iZ7RSTxB6q3HgpRMpC01jG/k1dzZiz0a8ot+h+8nQ\nc7eu\r\n=ypNK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFkYGbXJA3xI1uLkYxAo07vxWWMHd9q4Osh4d0CewxwlAiEAguFdc1Fk4pRGJfFrYJEbfIW5zkMNY8bb12ngH4fekmU="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0-pre.3_1551485961998_0.6138662851214229"},"_hasShrinkwrap":false},"4.0.0-pre.4":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0-pre.4","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0-pre.1","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"563c07a845d6059282695428b2ea3b611a063489","_id":"i18n-format@4.0.0-pre.4","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-Xm3vam/myYFTxJCE1MB1nVzNzuFat18LbQn1qMYPXe9e5NOdqr4lAFtwQ049Eb46qjYxLbTNRJ3pI9iM1svsIg==","shasum":"43cc6875b15f25bae48f98a5bb69e13cb7ea6635","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0-pre.4.tgz","fileCount":18,"unpackedSize":105524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcedWhCRA9TVsSAnZWagAAX/wP+QChfUkbsd9fgILCsG7J\nf/ctm2RVrJJcC6ajBU40DxHfkRMt+6mwDpv+rlwuuSa0Kb0gQK2qzYgewuxO\npPlBMPfNUBY/WUDlt4Aw82YtayGIpgtVMoNYEO5K8R9UM1B3KEe9liImu5W9\nUkTGr2Yexvse8aHriaBbq0j9FAi2qeBCbRnIz76HiGJlAMSfjqDZa+wohhRL\nz4Oz8uR+1yOhjOjI9rXyWiNKFYkPl+nR/78PuCG0DWaM73Higqg5G3WhYW5i\n+AG1FWVJjF2UJUfch339q959XoAa6YFNN2L/BHEsvNRUbgsf3MUjrDd05TwI\ndMbssV6QHTzOtAO9QoMO0i48JqtRthQpBlj5KJoAgWNA0x6Kr0UmBe0oBPEp\n5hT88igwybQBu/cLctptfMxPknCP7p3DZhUL09P2dIFptQww/ZvTnjqLtN4L\nSwobyJfTkCgf2s+RtKFO+VTiC0FbJNgn46iRkb2IM1utEtpJcGhcv8ajst0K\nSRJ4lH8wNB5dIOUq6gBNq454Jfb2p49blCE15V1mDEgartcA3UAOAFNhu6Qd\nNCYWvEabiQ93mReoFY9cDyxqUbH6tm+Yzeb42xvXSej8Nr9OZ4WH4ED2DSSN\nAe2r1GcHRE0DQQh+03isyLfDUyVsmIFMnXu3duSB2fC8Tv8BKR8ClG/p7yS8\nTPkz\r\n=43u2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaQhDE7tZcfUmIJtxV+ojsV0Iu1I9QxR7C0Uwkcb0VNwIgWKm+w8Z8z4EM1e4LS9vnJCKTHUBtaYSXT4clMaO9bzo="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0-pre.4_1551488416374_0.7084855061387632"},"_hasShrinkwrap":false},"4.0.0-pre.5":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0-pre.5","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0-pre","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"c5285f46a409d27d8c41de489b0659dce4bb73e1","_id":"i18n-format@4.0.0-pre.5","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-Vg+6qvVu2RJS0002Z//Zw1QtsdWdxHj92aG1LIXFX4E+k1KlTwqWI84DBi18d8H8cenOYbAm0Gsv/R6RKmAdiQ==","shasum":"c2057b20e92eaed63aa03c872b48041bf1580c3f","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0-pre.5.tgz","fileCount":18,"unpackedSize":105552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcefBhCRA9TVsSAnZWagAAz/0QAIB8C5p5uzcHK9y7ojTQ\nlOcEsBHQcKoIwzoPlhmlQ4TNCFq348SxV/xEUvyEzzn4fYWcRnQS41xVH8l1\noEg+H8erI5vPO7QvR7HYbhMs6QEGAiPpVirMxfnm2+sqUjsgt3mrvG7EeyQe\nyToAr8U4XgSgFwYrgxLup7NlnitFHAFieOqMsNkIZUUCbymn3wj5Su7XJUIz\ndg7kdz20A3RjD0eTwkrGTOuIE20sxXBhP3To09SyO63OwVGJzFupDNrMOgFO\nHY3QVZgMyRfa8GMOBGk3r0m2bTRLr0bROvP501ALzUJUoHWe22YNdMe6H3Iz\nYiYKOCkKHat3yMX8GPQn2O2c3i1+3J4YL2amKBYS8nQikv4PnfB2Vroy2+Ib\n1sEI0yEUv6AJPjtOuj7UqOcFCjqRREPhHfjtbkWNtCRSL0adT8qp3A11sPHy\n7TS8Y+h7VNfaZvSUjh+AAc2tRV9iby0UgNLyarcZM63LQ29Qf5/iO8wyjbxI\nvQse0GiAnY/bPyleok6Kbb6+MzxqrH7memggBRrwECWmoSnz4YsIzJPxfYKf\nCXkxex0/QpquG2YU+n3GrBG6iynlCF7pMJ7hyLQqnQeqGumqEufi42B+g23y\njy9Jt4IZ1/qY0GDL+E1m9qfbvX+nlixd4Ev7GM341svcb4qzeYTzALEkJvKC\nPZ/m\r\n=YeOZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHVWM1IiUrk3Bo1PFHxrHJqDWVBLhJ7GtGq7BFTU7ud0AiEA5oCMMAZqKQPrjktCiUkg+nCjQ4fv8bjTbPdTXdO5sxU="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0-pre.5_1551495264367_0.07999549985453758"},"_hasShrinkwrap":false},"4.0.0-pre.6":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0-pre.6","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0-pre","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"99bb564c2fe8ba523c9ad8e44d70e2c4429d2947","_id":"i18n-format@4.0.0-pre.6","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-Tsb0vEGpHjBPbWcMTeeSvnvSAfzcms988xDpmnjPUTJsgexBtdh/xThRn1V2/o6qMZ7io3HhWemcDb2wE4/AsA==","shasum":"7c3a77c7b6286cc9d29d6f0af46734d6b25374f8","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0-pre.6.tgz","fileCount":18,"unpackedSize":105552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcefVICRA9TVsSAnZWagAAGLAP/3CtxFrr2Wz5FZm9bw1S\n33TZvu7tBKlmWpDJyNkOzAC423H+57X56oHAEuKRmO49vq77i3wpQfzVXwFA\nnQpH5IEDrsm4mZCejAHdu1Ex/DDaQRBRrSsD5UJTQBg3IOsWFK0y3zd8Njjq\nvklBk7TgjCZk8MUH2x6NJG9SIgjvcB0QAdpV77md6f2pOiO5mnlJEHdXw6Ds\nUQ1qbDgq95GqFxrTq4jEoZMkp9l47tfHL00p57BVrJp5tf2GO0t8c2QGoQ+v\nHagsj/g0/Xno3T4ywzl/S8CMRvj6+lukV6ypKQS3LCW0b6gBF1RpRKMZ/Zdo\n4a5+/MeMjeqWt/65Hj6hJfohVEsrKwMMqJYyYZcIX0Ud4xpUC/n7gRKESkd6\nGH+qKPczFAWooDBgoCNL1HgUk/Hura7fGztNZ3AR6MRUKzvfCQVfzrF2QR+y\nNuHVGpyXY/PGy14mPznErrBAZeLFgQNrWKBK+B2t5T/FZ+bJ79bBwu9AyykI\naL5Cub1xes2dWrftj2B+H43Jac/XEixj0HRq8Un3HNIJjcCY7rcxwqrtvo1+\nX99mf4U6IsCGHEtvlTvjdS9exYHzN1iVPR6waRXxb3+CFzlXL3G2YRfdZR6W\n0RzggehScv0+YfdlyGZa3U9qXdtcvDEAihsTIF4gcTLehWZcgiefESefZ573\nvhIF\r\n=jkZW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDhB9OIl+p3BG/V0DLaoYs4JclunTNLysni4RxGiwH0zAiAxClObBGCf7hMuuMyfW2CzW7sW+BqlvzjiKA+/JZJpwQ=="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0-pre.6_1551496519917_0.37908785458110494"},"_hasShrinkwrap":false},"4.0.0-pre.7":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0-pre.7","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0-pre","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"19ce39ffff438a17de48e99cfb1bf44dc057cffe","_id":"i18n-format@4.0.0-pre.7","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-Qle3IpJAnNTHhvtIj4vmiAU1HbhZZGdoTZIUndvijEzPkBnI4PVoNrKX67qumQDVN1likmb1B+rRjGero+fwFA==","shasum":"c7c761a0a6cbdbff9fb82ce65b2642850eceac28","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0-pre.7.tgz","fileCount":18,"unpackedSize":105788,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcefbVCRA9TVsSAnZWagAAY98QAJ9WT/GtWM+msvb4oWyw\nxuBNvhK4/Yh6ZMYczKQbvM6ybpTKSVyrB+iNNI3PkSTsVXJZADxiQio7ycKJ\nL++oN81VGzMFNGRlVvGck+j6ffjtLgErHAsA2zxpB7xRX7ckjRl7y1yXgSu3\npG79D+BjToZHWWlBbWHa92txbS9qOAipcQJJ8zoeZhx4wZBc1XdjfCWSn+MR\nfWecP5tXSxOdKHCdFNVGkhsLuBNLWsQlc1tSRbe/fd4w25OJgURVRZs+S39O\nBWZ3D1Dhr+VVTccMfEFNRrMPNKCiQTyttCajWKtosFGrAQBE0PT0Rl5ZUsBW\nTiQ/Uve2IAl6RtFp1BE36oydtjEsCw1Iitdpmxbsx8N149cj6sFxCFvobKi6\n32gG2jG9aXhZ0G9nDDOhsWPOeqzp6p6togpV/pT+nkwIKblzWALBuux1C6jT\naYfyvsOuXtZuke79B+dlB3JU0xTs9YDOnoHyjAEW7f/S3ABkUWygHoFlUuB4\nDc7c3YBYbyTa0erm/+8zhycb/aFatwygefnhNITyuoskt7hzP9Qr/fg3rUW4\n4A8K9u8Ta3gWtVvdtPT8fPO35Ka0K400MiA/BjEBbi/0iQrqYEdCcz204ufB\nfMtt40bZYtjddC0JI6fJM2b6Dcb4PZJhJf+cjmfbvCH+UbMU94aVOrlyafzi\nG8ej\r\n=qfv0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGwZnkqzt8AcWXSKiOywCI9nvK+Txn50pw6b94CEIJ71AiEA+XrVEV3/RM7mCuZQ1FdcD14bo+lhS/RC+s/H164y5cE="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0-pre.7_1551496917175_0.48766828812418894"},"_hasShrinkwrap":false},"4.0.0-pre.8":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0-pre.8","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0-pre","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"acb908e2dd4e713cb4b539dfdba7ae944bf26602","_id":"i18n-format@4.0.0-pre.8","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-nRP69E5E3R47tyDoRGkRuR5KX83fBUwlAIGw2ZNmtO9e6bzL2ss765kStzS+PKX2AqUSaJiTcE981HHqNHhSdA==","shasum":"545443a60095963d70f86de2b672398fbb2d2911","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0-pre.8.tgz","fileCount":18,"unpackedSize":105870,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJceiAACRA9TVsSAnZWagAAVoIP/RoBQbtpr8XGPPXUkj+w\n1UnYqZRXLy/6O364eoAHHLsq9PJCKbfA9XYns9kvrr/tqzWT0CGYrSJP7Hk7\nXESqiCZ521waawfszaaOl5ZYuySeEvX1XKGRzz0rxIsoX/ttXoEvP8u2TmJr\nyS0wsbjksB0uyuksxe2fHENFP2k+684DejsLVqsmxpzXhMUlCMiuczwxgP9T\nsMXA3fdxrhjWsh86CU5cA+CNgycpHgvKIixwd8dicmCPbXpJBCVRB7I1/fMT\notXMF4IGhYV9K/wHAh6JLebAwIri82GzUwpBvdkexwKV6AURGk4v4kXGJOj7\n3mXXQ49Gu6PXWD4VTeQ/fJVICgV4fxoBAFJTsXyq9AHnJpOp/kJRIbIPmsPV\np1rfBgiwlHmdyMvfcvaQ79zX/mQaI4MHFAbbroU0Dbb3kjfrhjbkoUJjtDld\nXA2Th8RvPZomcon5wIaW4dI/PGXeq0lIUkVkzBiuj8lgAjhKuPyGr9KaXjA5\nbo6zRsqBUjgzAwOZ5xlTP5hq53Zp9ivERYpDRkCYyfdUFhgPMHvi6Kvdv4pf\ngyoxj36KV9Oru2DKt3qnIHy/ByLaPE1Sw5f/oREQcTxCqBxIkzng4xak6gDp\nFSB0oLDCXFPJzhbn8enpdb6u/iwKInvJ8vbGNlZFoQKC2zGoiWDZLmZL1fsu\nmBtB\r\n=ce4N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnyhewamM2CbMyZkiCbghCWKbh+zeUwAubB69TwzJz+AiEAnFJNcWU9fWaO9e7HdQA3Hy2AF6Qmi06VVETicWOIELg="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0-pre.8_1551507455515_0.05953513398877219"},"_hasShrinkwrap":false},"4.0.0-pre.9":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0-pre.9","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0-pre","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"7a6d6b7194b529470304d622f68f8faa99aa0ab9","_id":"i18n-format@4.0.0-pre.9","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-DuEEZfL5BUOxhhqSQ+EFxLhBR/A1nvVOsSVW0VKy/x2UCGGBQBLqTqF9agn4B9E/3Xsv2xnaFf3Qp3HA76I0iw==","shasum":"977b8c67b9fdf8612a56fb3a256cea433ff0d9c5","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0-pre.9.tgz","fileCount":18,"unpackedSize":105870,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfO5UCRA9TVsSAnZWagAA9pcP/iQpApQtkXHOpgJ+nmol\nCNLXKAZmbk5CBV6oTqnY/MSXLECMEsmzAQRHKy+6drmVaMJO3DE4VYOTD1OP\nztNRn1BoOwVD2JaForz0tqtKX2u1TH9BTVlsDopWakj55yvPsOHVDiEXTu4M\nuHP7aDlzbzTnFbnhLkSiaT3qjsPpc5cahyUftH8cZXN8GCcaiJuud+ssZLJo\nPIhTW0+VaLy8hq/n1vfFtqPrtur+gXafqRGyf3JIOuhSWq1fRLhBqgr8ozRx\nbTnIo1QPos3pGm+myIOzgpVd2DoHgWb7+ZD1a2LxSKANiXxfulQ6I2YgZ/ZO\ncUh9pcl8zPGnyD9jPPfbtm7TEQe0Ljxi7ZqPuBCBi674hN7YdGg254L/cWz9\nvB/PdORNH6n+HjmWRYtrfnksfQgPOM6jd1SY7bueO/NxiJwsjZ2DdFM7v48P\nZgaX9nOSKrikxpnaJXoJ8zEG49XRoNAqXMHWHc/Xg06VV7Pp9ux8hu2gw3K3\nUB0ZQfx3l+rAbmaL+7m0Wl1U1SxUXz+k1eCKtOTVMy54vFrPtSPjEwvNzzAd\ntJFm3TbVVOywGU9WjE8riIrxxgDxH560yGCH6iqiz1fj3SK7HImBoNzPi4kz\nXKylxjBAWZ1G73meaeBnLo2tpQ4fL94/L8lxjeILO3i/TPZzviF5DM1e2ac6\nPRF8\r\n=zdNO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIExtBUNohwiGbSA8/K2Xr3nInNFwnOm56Q3EvU7TwzoUAiA3zSsFIq5fgShVM5UfD9EcNm2uwd5DNbp88rwHO4VoQg=="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0-pre.9_1551691347710_0.5279660834518627"},"_hasShrinkwrap":false},"4.0.0-pre.10":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0-pre.10","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0-pre","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"8d718367ab0b833dc96efa31fd8491662252a78e","_id":"i18n-format@4.0.0-pre.10","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-N3TVIz4rYJ9AveZDaFFo9UtGDHFW/2RcgIbo0fvuvWwSnKwPUV1M1EOimADMtkXovw1RgphnQlWTJ9EuNc6qAA==","shasum":"6496d9c0a9710cee04b6d11c1e6fd9a57e2f782f","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0-pre.10.tgz","fileCount":18,"unpackedSize":106044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfTEwCRA9TVsSAnZWagAA6+kP/jQqOAVL4TtogJREYrUh\nqan2k6birr3JdCpApGyms084g3lmqTdzaNV0E8702LDX7iJ3kcN536TuMinf\n4zL46HxO/gDrjCa8ej9S5t4VZIK1aMIL9/nfsjTmNKj37CD9fTUwEaLFLboK\nY++PlovAXrvvCfMCC0cvE5F7QvfhqU0mpKWnTfYv9wqup7o2E35Txs9NkNDa\nBXgF4DV8dpyGDFS8UZ2B3coZ49CkR8Nnhnc7lHAvBkyoP8panH65vYM1E1Xo\nV3irP+qDKFwtCDk/RYgbqqp2Pqw5/ULu65XcbbzI+SQEy5Lubp5JcAMe6Lae\nZwCD4JKVZikJvJckX/K131i+5PKB7N4uIESBI7k3TY7iSwoktwT1SaFWRFNJ\nNQtaXo/yzzK4LLQaLRuPMLgTf+l3tcsmcwft5XiDm+ra6h9neXoc7ywRCG6X\nqXPhUG631vQ8ygk9umAO4G6h12NwbncnmPPyBFA2swJd+N+a61Y9CwGBKIli\nMic2uN9rrRgK81/MS4XvaCRHvjHFQk2PKN6qSQPB337VaFOfbF/2YiJapIy3\neGkuqu/BaPD0dRu/xTtOTNA3EihOsHjVw4Xh90lCLGvVIbZh/A4x7kjvjlsI\nBNiZgXp/H/G/HqRmTbOtXaFCeIQJuEpgZ6zPFTwyeWN1D+JapDZyHolqDOW8\n36d7\r\n=Q5Bp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGllWkmUQouomg0iBy+YC83pcnMCbsPAfYI9homCTEgYAiEAoWgsH+wKdZ1EouEJyJiPwKswbexuwjslG9hC/oRR9Jk="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0-pre.10_1551708463716_0.14102563796045664"},"_hasShrinkwrap":false},"4.0.0-pre.11":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0-pre.11","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0-pre","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"0646f3d403d0bbc4102a2add3083040f349ccab9","_id":"i18n-format@4.0.0-pre.11","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-D4c/dtBqJXkpXUrsv7uwaRbaH+tbEAppFz6aSRNHPSJ48aIdnhc7vRfmLPhiTHHLst501BVohfKx8r0nzZw5AQ==","shasum":"c88e98453dde573ffeb0d1cceea268d0aa85d240","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0-pre.11.tgz","fileCount":18,"unpackedSize":105841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJci5nkCRA9TVsSAnZWagAAyRcP/0K8OmFMXUvIlSwCnHiX\nOqN1K3z00WT/Bfr8vXjCGPjq0HbpA1KmQjtcIMNX6joEfyWIW9fh4CV1resx\nUcQinJM6CCFsgHEArqqG30kMDCMb0aIK9mnX+f0ytvSPpiUWAkwCwUrY30LV\nZ/YVDTcNWqgowoylVC2YMlw9NJgDc5RNaTflcWgtushFM5MKPFEZSTmY7C8x\n44vNtuJst6Yc85mooVFvKueGWfhdjZ29sg6GjDgtTAUe2kOLVKmfDevnu5vm\n8YvLfpdyQde+ZaiRDY+ySzpWaLUr3/XggdgvhJ0jacBHfpLq45aY8SLVGcal\n/uHDVWcUpzR2QGAb9NPtveqczVUAtu4f8g5FK9uAqsyULPLAZYwou5wh7cjo\nZJRioMFa11C+zcNmmIT/2871yKtBv0gqBD4Kcu9Prem2xXGvoActz3KgeKCO\nwaG9Mo0w7hEm/khq59VvhferRMjVI97nXn9joE7JxInR4HmpMxcUCZRB5Zg3\nkDiRXGRxe2mGFdDTjWpfSdaz9i7t2N4musEqLP9nX98CgupIVtTFmkBHXuu0\n8mkxRRfooHFzAE4YXZxV/cKcTOjyYlsY//uDXYYYvZDcMVf7WxzD4oXTTGUY\nnk2RnuJ6zw5S0MobB1CmOdIWyCfg2fPJHxkeomHDSxokAl8T19ihz9zgXR7q\nQHOe\r\n=HNaH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHOYs+VlA2nfclkLdAbnYN1oo/+whuYzcuS7YhSkcyolAiEAs0PEHqu+823/LlCY9phvx4EmekXcxa1DSrz/CcgCRTc="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0-pre.11_1552652771906_0.5382328454459093"},"_hasShrinkwrap":false},"4.0.0-pre.12":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0-pre.12","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0-pre","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"5709aca054e0a4e23a125eaa80a18517d26af5b2","_id":"i18n-format@4.0.0-pre.12","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-sDNJCs7lviKgcTkOCrTIhIrqYRDB2sWquDEYIE1/VKljaGhfkSZXmL93E9Rv8D3Rxq8UG1pkpRyCrTubrM1hVQ==","shasum":"3e7e591adda8bda95520106709af6f44e252e60e","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0-pre.12.tgz","fileCount":18,"unpackedSize":105841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcjELDCRA9TVsSAnZWagAAwCkP/RsaS6e/iiQndTxQZkQd\n0s3YVRighpeY4s+tzMWuBufM7n1krjMjo9PV/ObH7HbQjAr6DI1EufN90G1h\nIrQiXiUYo9h3WETMiv6clpC+MhRY6Ti3owRWtGFFTvYz8XY7u6JMSXO8uEzx\nYc04jFdWLRHYIr7Cek5FlVZaPUkpft8VHX56t2cNhFPmo3wBlgZEQSCdsgeq\nSi9x/cq5i0EWqE0C4vFl9TEHGs+q7xFvAjoQ1h7Ny/vpDQ5Njk05G6fDmj5L\n32n42npKiGcqbeq3+V6KWmzVexBSO1UOyERE/yHKq1E3NQleQpFvPh49SbFT\nbRFx85mTMWd/rPSIbRRFH6RUIr9SH3Nc15IYaWd8xKE8NidkVCkNRFvnj+t/\nBBal0z46LNEHt/PlT8SE8nRR0NgIKuL1b0vhgXe8qHwlFZ1ASKZcSmR39THX\n1HXVAJ4UyBpoLc70RwEJkJFGAozU13fZiKjBNdaI2gpSCSbdGbTeMwMSuzi5\nwG4JS7r5SWh9mQF5eBlHqaIuFZ4obll8qqGqMfCzqMyZ0J77XqDcwhpiqmFB\nGv/z0UdcjuS/907HUbFU2bc3x9Pbc5MFaSZHeS4qjF251z7FZY5tcSy0bBL1\n9kolso3B1Q0cOayKn7Yth3ud7FSt835xm+ygmGhysQJSiNix80WSmLLCyg2+\nWSn1\r\n=njXI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSVO4C3KHCxxAshQbyIFY1JtFVdvbj80hwPgqOASGSewIhAMbcwZugaAWUIAL6cWA4nrezGxHWacG71vZDkeVghzKv"}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0-pre.12_1552696003105_0.6593706524902863"},"_hasShrinkwrap":false},"4.0.0-pre.13":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0-pre.13","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0-pre","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"0aa77a5ec04fd3aaa2c5b7271f259c3a0142163d","_id":"i18n-format@4.0.0-pre.13","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-fQ36oErR/d9fhkht2E1Ajerf/I5qR1PtA6ZOZPb/abqjbf1+3Rub7JVHilwhpzq06uTcwY8PAAF0m6jJKfmObg==","shasum":"adc51247d950f9b2b0fc94dbac1330b3f59300a2","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0-pre.13.tgz","fileCount":18,"unpackedSize":112099,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcjgKGCRA9TVsSAnZWagAA3hQQAJmiGl9jY4oJpyIOu1q+\ne9otWeMNnezcHS0TwW+Jf+fzWTxkpOsUlQTLbv4M3YrVF2L6nL0PslT1Rs9r\nHvkulruRfw6QoB3xFK05FB1JizUcq480Q3I6uudRnqm88CGsHDy2c33SFQMe\n3uvyF41KGhS7fiHvz47ykJPtK3U6uAEl2OWf4ck89KSRyE+vWfy7Xu9JVfiV\njzBmnMizbUxIG1L1/L1B+X57kKFwYItHiQu77TQh+1KAqUppoNnu1vuvRgki\nD87RdPGaYcptCgiuyuGjT4CyXWrY2WNhP0nnXQZD/ZoyzKlL1uYm/Fwev+jp\nFeozjn0QvTjKXUGtviv38AlDmyI9oiKXnM40B7Wsumsv67UvKDDDOTxRdXel\nWbMSAwYrwb7TBN/PgUp35g/D6xT1o/ceUsz6SQdtElGivyS+vWZGueRr4XyG\nZcTv/3CrLAlJP1hT+wq/go6JJwI9tXe2j0q1CsPirnUjD/KNKtu2TCFZkjmW\n2qBiJmuswl7qN6fY4Qr+PX42tpemaIDx3x6FI1fUMeXSIa4Lmg5LWBInXUSF\nrhvmvbktYarmftsRR7lOauYP5HjxwECk+26OisvBl6/n9kB6lyuaJHasFJsB\n6cH+pMUHNHYUyr+zqly46FK0cDXwYRQLe6ldrUfYFz/Tb7CT5DTVRFzUqkiM\nAKyY\r\n=819S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUYvarKrKiIaN4PYiOA5PVr75ymlEHXVWLO0YWoYGPZAIgYtHfADJ5QtIY20PGYuUrURCOGkGtR2HTh+QcjcidrGE="}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0-pre.13_1552810629272_0.41979964016962357"},"_hasShrinkwrap":false},"4.0.0":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.0","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","readmeFilename":"README.md","gitHead":"bf85fe339c9df46ddacea44ec5f66a69fda2d141","_id":"i18n-format@4.0.0","_nodeVersion":"10.13.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-12YgPX3yyS337aq1gTZflAAoWgu7nrWltA87Gwg23NU8Cb32qLZ1qheAyz+nkcp2Hb16volBZ7cuSWFJ5BLw/Q==","shasum":"5328810e75472ada9ed0e2be814088f4416aa7f0","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.0.tgz","fileCount":19,"unpackedSize":113251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJckigNCRA9TVsSAnZWagAAny4P/iF8s8V7nIlMfV/RLm39\n+B3QftNkFhY+XuiztJIF3ek1akujISASb4dcH73seyU1KQYz3Xdc4BiMEW86\nS9p0cIhTmfHih4U8KtMq/5tCJOzOjYmHL4q7nQqLL91lbEyoth1CcMBmVdiE\nC10rcW4/Vd+khgxPpipYtZTLfdKzsblmDWaCTGRgrBUue29ikGmvkvY2vi7e\nDekb+gMn1xfdFB5vtYysKDlzkJYDhbLVaoqbljfeimDH8F7W8BUFkcrFgVZx\n+S3pHZQFogTGOk3WUEBwEJ8BS4BGqbyfjhKPkU4AeiFtEzs+BuBlMe/KWNp+\n0UpC1+eN4ZBTQeyCSA3vQzk7G4oJ818O+G+Uf4ZzfGKrnLqndYL81poCDTSP\nYm3qkqoqDgeKNHNbK7RbD7i78Wj8Dq9CTeMajXhB86T8wVRZRiL3MtxeXe/7\nW116CZuGt66JNiXSoxXLckDAZGf6GzmBfRPGsDJ95NNDu7zSS683eg/0am6z\n3lLc2irr0l988VsEYqz+a2fl/XZtv87mIcGqB08Qh3O1+pGPy2uzL2fVOthn\nfYolrSIwZMcyoPeYp3knQIFw5/nFSLPWbNPm25x+QfF2NsUOTcfhnkVJ5twJ\n/KmQaUNIdG7XohovB8Z4ULCcUB/c5qRKZ112RjbIzTwE9VI+Bl/2kvpml9Jc\nr3Ls\r\n=wNsG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqXwqxSpQpGAZOdKUSfSYIr00rXIWk839H9iOay8RvvgIhAP4g7ATAYIGI7EB7UYxQOKLjji2pEgy6mozhAp1xisIV"}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.0_1553082380242_0.8410768797077277"},"_hasShrinkwrap":false},"4.0.1":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"4.0.1","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^4.0.0","lit-html":"^1.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"gitHead":"c2d0c3e736d0455ead86c65cc972b08d4e7411c1","_id":"i18n-format@4.0.1","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qOLqUYoGPtODAgKbqgZa5RJyqvRZIRcHpmGOcoMzPk4WEHWGPFfqTH/OX9kAEPblUUlpHBTkJlKpgntyqSf/0g==","shasum":"989a51b8b0600d4c0a3969055554f188b3669706","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-4.0.1.tgz","fileCount":19,"unpackedSize":113528,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefXOqCRA9TVsSAnZWagAA9B8P/Akmb74JTx+9v4prXGGg\nMA2Q7MD+Sq8RXG6hrU7ZtfGuWPNF0Oj6qf/CZ5mpbXiTA3ay7DipwSw0fmSC\n4n0VVTpZT1RJzc0sK02fkuV99J8Vkk4oQsl/K3w4hTgFaOaFjwt5q8izOJAj\nxFiSXEQ1rT2syJyOWcJeYoRZVIvfxTyh2pFdlCrpNxX/jpIkZ5oPr0NxxoIj\n7vQowNYP9ysAy+9iaIoukT5B/eFebUWXbAbM1jr8HkCZ/jiW8gCPGqHEsLPv\nFmlD/ahxt2JWqG5o+g0hYHzkWXhUt1NT7e+lms5HP7w5TDARZh0CQDfEMsmd\nOdfOm5qA4/gWWiDmOizcYyqYTqZMswqI5G57bJpneNXJYnZZBF7vTqh/NFpu\nSItYob3CReDrKdK7dnCzU8op/J8VqwPlKEeLqGX4w2ItG3jNXiWzjkO9z881\n2g3vs0nIbkU2wCPl6Bys6B0Qgbt0jP4tbzoS21AJNVg7nJERtFyZPEtF0ueH\nQN8sraoplZRRuDa/jXdujB564t0djVJQstKaolRVJl//5eGx46CSVfXynSkZ\n5jHSgbFdJEVia2yq9TgRSU5aGrRcWQWYNIVwquBhOuCyUKVTEbeVIaTEKujl\nr8LfsowWjS7k9gBFFd6F6z7ijwHHXA0irpevMqrRLKPx/B7jehIjLJSW3uLE\nGw/r\r\n=nrEg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4DSI4rVpLFT72wF5NdWcU8YyB4/Y6YIKZdDGYSAlZ9gIhALDDhd5ADRgsih5dT5+DsNbI+O+PoQW4dio5qv80f7xc"}]},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_4.0.1_1585279914040_0.955273419246313"},"_hasShrinkwrap":false},"5.0.0":{"description":"Text formatter with Unicode CLDR Plural Rules and choices support","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"homepage":"https://github.com/t2ym/i18n-format#readme","name":"i18n-format","version":"5.0.0","main":"i18n-format.js","directories":{"test":"test"},"scripts":{"demo:build":"polymer build","test":"wct && if [ \"${TRAVIS_BRANCH}\" != \"\" ]; then coveralls <./test/coverage-report/lcov.info; fi","clean":"rm -rvf ./test/coverage-report"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"devDependencies":{"@polymer/iron-component-page":"^4.0.0","@polymer/iron-demo-helpers":"^3.0.0","@polymer/iron-flex-layout":"^3.0.0","@polymer/paper-button":"^3.0.0","@polymer/paper-dropdown-menu":"^3.0.0","@polymer/paper-input":"^3.0.0","@polymer/paper-item":"^3.0.0","@polymer/paper-listbox":"^3.0.0","@polymer/paper-styles":"^3.0.0","@polymer/polymer":"^3.1.0","coveralls":"^2.11.8","lcov-result-merger":"^1.2.0","wct-browser-legacy":"^1.0.1","wct-istanbul":"^0.14.3","web-animations-js":"^2.3.1","web-component-tester":"^6.9.0"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0"},"dependencies":{"i18n-number":"^5.0.0","lit-html":"^2.0.0","make-plural":"^4.3.0","wc-putty":"^0.1.0"},"gitHead":"f76e030fd968ebdad7cefd69f3a8168c58b1edbd","_id":"i18n-format@5.0.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-d7+oZDNvBaHsFQPh/kji++udUwfL3s5k96QAkF1usgpdl6byvS99q85J0Jox3rb3mzaHJ4mtSM7t6o2JJNh34A==","shasum":"0ebb998e9a22055f23120a999feac91a8978d1ac","tarball":"https://registry.npmjs.org/i18n-format/-/i18n-format-5.0.0.tgz","fileCount":19,"unpackedSize":113670,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2t4RCRA9TVsSAnZWagAAum0P/32grziRmZhS0ZIQdgye\nm51zyh/m5HsutvB5dp+9MmWtx8sqbMSAd+mxL1ilfMU5GDcPE2Ujg6NFfkgu\nm37pjszsZk6njgeJhoUN5mR38tvRQttLslzGKrfqm2TkPjdd5WdCwk/5fui5\ngr7EUYKOAY0jgOZqyv59WpgRFLn6eW8cCnINCn5d8e5qtY1pO0UnmpRsesNi\nQOoMamlXVHAB2/u3XUzxYvk0/7ZNZ97ksR0d5oZgeXGSEWuJJ2/79WWQ0Ysp\nwAl3QsKM0uTV5zmZAC19zA3jYqhajkFE6Sjllzb21B1TIHVt4K3JwOrPRVhy\n5oQO6XAusW3HG17SxI1pMcj1UFl6caEcF7tIMYTkpsvCc7Y2/LKWMGUkyU11\n95maGqcOgWHXjqhVjZ6B4PohnZVC9/EiTPb9FFTw4HSDWo/fSXTsTB1EGEFv\ndgbAHIj3RXAkJJjts7LpeRiK0P/JIaCSIWIEW/Mc7etOBFbEJ8pwhSotLWWD\nSBZRxARrVNDlxwLAKsRR4ecQSDxYEIrqL9KwD7W0746BK7CCMQ+eoBahROKE\nzmcdtPtSs+Y1AIx+j1XAdiryrJ8r3k85yTZvOTYLfDXl3ckXksIzZq4gRjVo\ngZLVSLBnEkTZWLPBfpwcieRBrIoBSiPuhAePpaAI1Yq9Z/dCgUrBfH8K6CQz\nnm1e\r\n=JIPA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOYuX90CKnWa+DhVfwvUzq5H1+Y5wLqdD4eZylInISHQIgb4BRWx2olm3Airghs8pMR3iBsq+NL1/DE/687w9+HZM="}]},"_npmUser":{"name":"t2ym","email":"t2y3141592@gmail.com"},"maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-format_5.0.0_1632816991953_0.38417039929801433"},"_hasShrinkwrap":false}},"readme":"[![Build Status](https://travis-ci.org/t2ym/i18n-format.svg?branch=master)](https://travis-ci.org/t2ym/i18n-format)\n[![Coverage Status](https://coveralls.io/repos/github/t2ym/i18n-format/badge.svg?branch=master&build=39)](https://coveralls.io/github/t2ym/i18n-format?branch=master)\n[![npm version](https://badge.fury.io/js/i18n-format.svg)](https://badge.fury.io/js/i18n-format)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/t2ym/i18n-format)\n\n## `<i18n-format>`\n\nText formatter with [Unicode CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules) and choices (like gender) support.\n\n[Demo](https://t2ym.github.io/i18n-format/components/i18n-format/demo/) and [API Docs](https://www.webcomponents.org/element/t2ym/i18n-format/elements/i18n-format)\n\n<img src=\"https://raw.githubusercontent.com/wiki/t2ym/i18n-format/i18n-format.gif\" width=\"600px\">\n\n### Install\n\n```\n    npm install i18n-format\n```\n\n### Import\n\n```javascript\n    import \"i18n-format/i18n-format.js\";\n```\n\n### Usage\n\n#### Simple Template Format\n\n```html\n    <p>\n      <i18n-format>\n        <span>{1} element is effective for UI localization with {2}.</span>\n        <code>i18n-format</code>\n        <a href=\"https://www.google.com/\">parameters</a>\n      </i18n-format>\n    </p>\n```\n\nThis renders as follows:\n\n```html\n    <p><code>i18n-format</code> element is effective for UI localization with <a href=\"https://www.google.com/\">parameters</a>.</p>\n```\n\n#### Compound Template Format\n\nAn appropriate template in `json-data` is selected by plural categories, gender, etc.\n\n```html\n    <p>\n      <i18n-format lang=\"{{lang}}\">\n        <json-data>{\n          \"0\": \"You ({3}) gave no gifts.\",\n          \"1\": {\n            \"male\": \"You ({3}) gave him ({4}) {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) {5}.\"\n          },\n          \"one\": {\n            \"male\": \"You ({3}) gave him ({4}) and one other person {5}.\",\n            \"female\": \"You ({3}) gave her ({4}) and one other person {5}.\",\n            \"other\": \"You ({3}) gave them ({4}) and one other person {5}.\"\n          },\n          \"other\": \"You ({3}) gave them ({4}) and {1} other people gifts.\"\n        }</json-data>\n        <i18n-number lang=\"{{effectiveLang}}\" offset=\"1\">{{recipients.length}}</i18n-number>\n        <span>{{recipients.0.gender}}</span>\n        <span>{{sender.name}}</span>\n        <span>{{recipients.0.name}}</span>\n        <span>a gift</span>\n      </i18n-format>\n    </p>\n```\n\nWith these values for the parameters, the template path `.one.female` is selected from `<json-data>`.\n\n| Parameters          | Values   |\n|:--------------------|:---------|\n| lang                | 'en'     |\n| recipients.length   | 2        |\n| recipients.0.gender | 'female' |\n| sender.name         | 'James'  |\n| recipients.0.name   | 'Alice'  |\n\nSo this example renders as follows:\n\n```html\n  <p>You (<span>James</span>) gave her (<span>Alice</span>) and one other person <span>a gift</span>.</p>\n```\n\n[`<i18n-number>`](https://www.webcomponents.org/element/t2ym/i18n-number) specifies plural categories for\n[CLDR plural rules](http://cldr.unicode.org/index/cldr-spec/plural-rules).\n\n### Demo\n\n#### Prerequisite for Building and Serving Demo\n\n```sh\n    npm install -g polymer-cli\n```\n\n#### On-the-fly Build\n\n```sh\n    # Serve at http://localhost:8080/components/i18n-format/demo/\n    polymer serve --npm --module-resolution=node -p 8080\n```\n\n#### Static Builds\n\n- Build\n\n```sh\n    polymer build\n```\n\n- Targets\n\n| target | browser | minify | bundled |\n|:-----:|:-------:|:------:|:-------:|\n|build/esm-unbundled|es6,modules|no|no|\n|build/esm-bundled  |es6,modules|yes|yes|\n|build/es6-bundled  |es6        |yes|yes|\n|build/es5-bundled  |es5        |yes|yes|\n\n- Serve\n\n```sh\n    # Serve at http://localhost:8080/\n    cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}\n    python -m SimpleHTTPServer 8080 # or any HTTP(S) server\n```\n\n### License\n\n[BSD-2-Clause](https://github.com/t2ym/i18n-format/blob/master/LICENSE.md)\n","maintainers":[{"name":"t2ym","email":"t2y3141592@gmail.com"}],"time":{"modified":"2022-06-18T23:46:01.125Z","created":"2016-10-20T11:12:13.779Z","1.0.0":"2016-10-20T11:12:13.779Z","2.0.0":"2017-05-16T09:26:44.120Z","3.0.0-pre.2":"2018-12-10T13:55:47.775Z","3.0.0-pre.3":"2018-12-10T14:09:55.722Z","3.0.0-pre.4":"2018-12-10T14:34:59.164Z","3.0.0-pre.5":"2018-12-10T14:48:44.768Z","3.0.0-pre.6":"2018-12-10T14:52:25.996Z","3.0.0-pre.7":"2018-12-11T01:30:54.527Z","3.0.0-pre.8":"2018-12-11T01:48:44.491Z","3.0.0-pre.9":"2018-12-11T06:21:34.019Z","3.0.0-pre.10":"2018-12-13T06:16:00.640Z","3.0.0-pre.11":"2018-12-31T04:22:40.106Z","3.0.0-pre.12":"2019-01-11T09:44:34.890Z","3.0.0":"2019-01-16T13:12:40.424Z","2.0.1":"2019-02-07T05:05:53.069Z","3.0.1":"2019-02-07T05:10:43.524Z","4.0.0-pre.1":"2019-03-01T16:14:37.955Z","4.0.0-pre.2":"2019-03-01T17:18:20.876Z","4.0.0-pre.3":"2019-03-02T00:19:22.151Z","4.0.0-pre.4":"2019-03-02T01:00:16.540Z","4.0.0-pre.5":"2019-03-02T02:54:24.556Z","4.0.0-pre.6":"2019-03-02T03:15:20.128Z","4.0.0-pre.7":"2019-03-02T03:21:57.336Z","4.0.0-pre.8":"2019-03-02T06:17:35.739Z","4.0.0-pre.9":"2019-03-04T09:22:27.901Z","4.0.0-pre.10":"2019-03-04T14:07:43.904Z","4.0.0-pre.11":"2019-03-15T12:26:12.136Z","4.0.0-pre.12":"2019-03-16T00:26:43.236Z","4.0.0-pre.13":"2019-03-17T08:17:09.519Z","4.0.0":"2019-03-20T11:46:20.570Z","4.0.1":"2020-03-27T03:31:54.152Z","5.0.0":"2021-09-28T08:16:32.158Z"},"homepage":"https://github.com/t2ym/i18n-format#readme","keywords":["lit-html","web-component","web-components","i18n","internationalization","l10n","localization","format","pluralization","cldr"],"repository":{"type":"git","url":"git+https://github.com/t2ym/i18n-format.git"},"author":{"name":"Tetsuya Mori","email":"t2y3141592@gmail.com"},"bugs":{"url":"https://github.com/t2ym/i18n-format/issues"},"license":"BSD-2-Clause","readmeFilename":"README.md"}