UNPKG

i18n-element

Version:

I18N Base Element for lit-html and Polymer

236 lines 15.2 kB
<!-- temporary HTML --><html><head></head><body><encoded-original>CiAgICA8aDUgaWQ9Iml0ZW0tdXBkYXRlMiI+dXBkYXRlZDoge3t0ZXh0LnVwZGF0ZWR9fSwgYnk6IAogICAgICA8ZG9tLXJlcGVhdCBpdGVtcz0ie3t0ZXh0LmF1dGhvcnN9fSI+PHRlbXBsYXRlPgogICAgICAgIHt7aXRlbS5uYW1lfX0KICAgICAgPC90ZW1wbGF0ZT48L2RvbS1yZXBlYXQ+CiAgICAgIHh4eAogICAgICA8ZG9tLWlmIGlmPSJ0cnVlIj48dGVtcGxhdGU+CiAgICAgICAgPHNwYW4+PGI+SUYgQ09OVEVOVDwvYj48L3NwYW4+CiAgICAgIDwvdGVtcGxhdGU+PC9kb20taWY+CiAgICAgIDxiPmFiYzwvYj4KICAgICAgPGRvbS1pZiBpZj0idHJ1ZSI+PHRlbXBsYXRlPklGIENPTlRFTlQgMjwvdGVtcGxhdGU+PC9kb20taWY+CiAgICAgIGhlbGxvCiAgICA8L2g1PgogICAgPGg1IGlkPSJpdGVtLXVwZGF0ZSI+dXBkYXRlZDoge3t0ZXh0LnVwZGF0ZWR9fSwgYnk6IAogICAgICA8ZG9tLXJlcGVhdCBpdGVtcz0ie3t0ZXh0LmF1dGhvcnN9fSI+PHRlbXBsYXRlPjwhLS0gY29tbWVudCBub2RlIC0tPgogICAgICAgIDxzcGFuPiAge3tpdGVtLm5hbWV9fSAgPC9zcGFuPgogICAgICA8L3RlbXBsYXRlPjwvZG9tLXJlcGVhdD4KICAgICAgeHh4CiAgICAgIDxkb20taWYgaWY9InRydWUiPjx0ZW1wbGF0ZT4KICAgICAgICA8Yj5JRiBDT05URU5UPC9iPgogICAgICA8L3RlbXBsYXRlPjwvZG9tLWlmPgogICAgICA8Yj5hYmM8L2I+CiAgICAgIDxkb20taWYgaWY9InRydWUiPjx0ZW1wbGF0ZT5JRiBDT05URU5UIDI8L3RlbX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Xh0LnVwZGF0ZWR9fTwvdGVtcGxhdGU+PC9kb20taWY+CiAgICA8L3A+CiAgICA8dGVtcGxhdGU+CiAgICAgIDxqc29uLWRhdGEgaWQ9ImF1dGhvcnMiPlsKICAgICAgICB7ICJuYW1lIjogIkpvZSIgfSwgeyAibmFtZSI6ICJBbGljZSIgfQogICAgICBdPC9qc29uLWRhdGE+CiAgICAgIDxzcGFuIGlkPSJ1cGRhdGVkIj5KYW4gMXN0LCAyMDE2PC9zcGFuPgogICAgICA8anNvbi1kYXRhIGlkPSJwYXJhbWV0ZXJzIj5bCiAgICAgICAgInBhcmFtZXRlciAxIiwgInBhcmFtZXRlciAyIgogICAgICBdPC9qc29uLWRhdGE+CiAgICA8L3RlbXBsYXRlPgo=</encoded-original><link rel="import" href="../../../i18n-element.html"><template id="complex-compound-binding-element" basepath="edge-case/" localizable-text="embedded"> <h5 id="item-update2"><i18n-format lang="{{effectiveLang}}"><span>{{text.item-update2:text.0}}</span><span slot="1">{{text.updated}}</span></i18n-format><dom-repeat items="{{text.authors}}"><template> {{item.name}} </template></dom-repeat>{{text.item-update2:text_2}}<dom-if if="true"><template> <span><b>{{text.item-update2:dom-if_3:template:span:b}}</b></span> </template></dom-if> <b>{{text.item-update2:b_4}}</b> <dom-if if="true"><template>{{text.item-update2:dom-if_5:template:text}}</template></dom-if>{{text.item-update2:text_6}}</h5> <h5 id="item-update"><i18n-format lang="{{effectiveLang}}"><span>{{text.item-update:text.0}}</span><span slot="1">{{text.updated}}</span></i18n-format><dom-repeat items="{{text.authors}}"><template><!-- comment node --> <span> {{item.name}} </span> </template></dom-repeat>{{text.item-update:text_2}}<dom-if if="true"><template> <b>{{text.item-update:dom-if_3:template:b}}</b> </template></dom-if> <b>{{text.item-update:b_4}}</b> <dom-if if="true"><template>{{text.item-update:dom-if_5:template:text}}</template></dom-if>{{text.item-update:text_6}}<dom-if if="true"><template></template></dom-if> <dom-if if="true"><template> <!-- comment --></template></dom-if> <dom-if if="true"><template>{{text.updated}}</template></dom-if> </h5> <h5 id="item-update3"><i18n-format lang="{{effectiveLang}}"><span>{{text.item-update3:text.0}}</span><span slot="1">{{text.updated}}</span></i18n-format><dom-repeat items="{{text.authors}}"><template> {{item.name}} </template></dom-repeat>{{text.item-update3:text_2}}<dom-if if="true"><template> <b>{{text.item-update3:dom-if_3:template:b}}</b><b>{{text.item-update3:dom-if_3:template:b_1}}</b> </template></dom-if> <b>{{text.item-update3:b_4}}</b> <dom-if if="true"><template>{{text.item-update3:dom-if_5:template:text}}</template></dom-if>{{text.item-update3:text_6}}</h5> <h5 id="item-update4"><i18n-format lang="{{effectiveLang}}"><span>{{text.item-update4:text.0}}</span><span slot="1">{{text.updated}}</span></i18n-format><dom-repeat items="{{text.authors}}"><template><i18n-format lang="{{effectiveLang}}"><span>{{text.item-update4:dom-repeat_1:template:text.0}}</span><span slot="1">{{item.name}}</span><span slot="2">{{text.updated}}</span></i18n-format></template></dom-repeat>{{text.item-update4:text_2}}<dom-if if="true"><template> <b>{{text.item-update4:dom-if_3:template:b}}</b> </template></dom-if> <b>{{text.item-update4:b_4}}</b> <dom-if if="true"><template>{{text.item-update4:dom-if_5:template:text}}</template></dom-if>{{text.item-update4:text_6}}</h5> <p id="paragraph">{{text.paragraph:text}}<dom-repeat items="{{text.parameters}}"><template> <i>{{item}} </i> </template></dom-repeat>{{text.paragraph:text_2}}<code>{{text.paragraph:code_3}}</code>{{text.paragraph:text_4}}</p> <p id="paragraph2">{{text.paragraph2:text}}<dom-repeat items="{{text.parameters}}"><template> <span><i>{{item}}</i> </span> </template></dom-repeat>{{text.paragraph2:text_2}}<b>{{text.paragraph2:b_3}}</b>{{text.paragraph2:text_4}}<code>{{text.paragraph2:code_5}}</code>{{text.paragraph2:text_6}}<dom-if if="false"><template></template></dom-if> <dom-if if="false"><template> </template></dom-if> <dom-if if="false"><template>{{text.updated}}</template></dom-if> </p> <template> <json-data id="authors">{{text.authors}}</json-data> <span id="updated">{{text.updated}}</span> <json-data id="parameters">{{text.parameters}}</json-data> </template> <template id="localizable-text"> <json-data> { "meta": {}, "model": {}, "item-update2:text": [ "updated: {1}, by: ", "{{text.updated}}" ], "item-update2:text_2": " xxx ", "item-update2:dom-if_3:template:span:b": "IF CONTENT", "item-update2:b_4": "abc", "item-update2:dom-if_5:template:text": "IF CONTENT 2", "item-update2:text_6": " hello ", "item-update:text": [ "updated: {1}, by: ", "{{text.updated}}" ], "item-update:text_2": " xxx ", "item-update:dom-if_3:template:b": "IF CONTENT", "item-update:b_4": "abc", "item-update:dom-if_5:template:text": "IF CONTENT 2", "item-update:text_6": " hello ", "item-update3:text": [ "updated: {1}, by: ", "{{text.updated}}" ], "item-update3:text_2": " xxx ", "item-update3:dom-if_3:template:b": "IF", "item-update3:dom-if_3:template:b_1": "CONTENT", "item-update3:b_4": "abc", "item-update3:dom-if_5:template:text": "IF CONTENT 2", "item-update3:text_6": " hello ", "item-update4:text": [ "updated: {1}, by: ", "{{text.updated}}" ], "item-update4:dom-repeat_1:template:text": [ " {1} = {2} ", "{{item.name}}", "{{text.updated}}" ], "item-update4:text_2": " xxx ", "item-update4:dom-if_3:template:b": "IF CONTENT", "item-update4:b_4": "abc", "item-update4:dom-if_5:template:text": "IF CONTENT 2", "item-update4:text_6": " hello ", "paragraph:text": "A paragraph with ", "paragraph:text_2": " is converted to ", "paragraph:code_3": "&lt;i18n-format&gt;", "paragraph:text_4": ". ", "paragraph2:text": "A paragraph with deep ", "paragraph2:text_2": " is ", "paragraph2:b_3": "not", "paragraph2:text_4": " converted to ", "paragraph2:code_5": "&lt;i18n-format&gt;", "paragraph2:text_6": ". ", "authors": [ { "name": "Joe" }, { "name": "Alice" } ], "updated": "Jan 1st, 2016", "parameters": [ "parameter 1", "parameter 2" ] } </json-data> </template> </template><dom-module id="complex-compound-binding-element"><template localizable-text="embedded"> <h5 id="item-update2"><i18n-format lang="{{effectiveLang}}"><span>{{text.item-update2:text.0}}</span><span slot="1">{{text.updated}}</span></i18n-format><dom-repeat items="{{text.authors}}"><template> {{item.name}} </template></dom-repeat>{{text.item-update2:text_2}}<dom-if if="true"><template> <span><b>{{text.item-update2:dom-if_3:template:span:b}}</b></span> </template></dom-if> <b>{{text.item-update2:b_4}}</b> <dom-if if="true"><template>{{text.item-update2:dom-if_5:template:text}}</template></dom-if>{{text.item-update2:text_6}}</h5> <h5 id="item-update"><i18n-format lang="{{effectiveLang}}"><span>{{text.item-update:text.0}}</span><span slot="1">{{text.updated}}</span></i18n-format><dom-repeat items="{{text.authors}}"><template><!-- comment node --> <span> {{item.name}} </span> </template></dom-repeat>{{text.item-update:text_2}}<dom-if if="true"><template> <b>{{text.item-update:dom-if_3:template:b}}</b> </template></dom-if> <b>{{text.item-update:b_4}}</b> <dom-if if="true"><template>{{text.item-update:dom-if_5:template:text}}</template></dom-if>{{text.item-update:text_6}}<dom-if if="true"><template></template></dom-if> <dom-if if="true"><template> <!-- comment --></template></dom-if> <dom-if if="true"><template>{{text.updated}}</template></dom-if> </h5> <h5 id="item-update3"><i18n-format lang="{{effectiveLang}}"><span>{{text.item-update3:text.0}}</span><span slot="1">{{text.updated}}</span></i18n-format><dom-repeat items="{{text.authors}}"><template> {{item.name}} </template></dom-repeat>{{text.item-update3:text_2}}<dom-if if="true"><template> <b>{{text.item-update3:dom-if_3:template:b}}</b><b>{{text.item-update3:dom-if_3:template:b_1}}</b> </template></dom-if> <b>{{text.item-update3:b_4}}</b> <dom-if if="true"><template>{{text.item-update3:dom-if_5:template:text}}</template></dom-if>{{text.item-update3:text_6}}</h5> <h5 id="item-update4"><i18n-format lang="{{effectiveLang}}"><span>{{text.item-update4:text.0}}</span><span slot="1">{{text.updated}}</span></i18n-format><dom-repeat items="{{text.authors}}"><template><i18n-format lang="{{effectiveLang}}"><span>{{text.item-update4:dom-repeat_1:template:text.0}}</span><span slot="1">{{item.name}}</span><span slot="2">{{text.updated}}</span></i18n-format></template></dom-repeat>{{text.item-update4:text_2}}<dom-if if="true"><template> <b>{{text.item-update4:dom-if_3:template:b}}</b> </template></dom-if> <b>{{text.item-update4:b_4}}</b> <dom-if if="true"><template>{{text.item-update4:dom-if_5:template:text}}</template></dom-if>{{text.item-update4:text_6}}</h5> <p id="paragraph">{{text.paragraph:text}}<dom-repeat items="{{text.parameters}}"><template> <i>{{item}} </i> </template></dom-repeat>{{text.paragraph:text_2}}<code>{{text.paragraph:code_3}}</code>{{text.paragraph:text_4}}</p> <p id="paragraph2">{{text.paragraph2:text}}<dom-repeat items="{{text.parameters}}"><template> <span><i>{{item}}</i> </span> </template></dom-repeat>{{text.paragraph2:text_2}}<b>{{text.paragraph2:b_3}}</b>{{text.paragraph2:text_4}}<code>{{text.paragraph2:code_5}}</code>{{text.paragraph2:text_6}}<dom-if if="false"><template></template></dom-if> <dom-if if="false"><template> </template></dom-if> <dom-if if="false"><template>{{text.updated}}</template></dom-if> </p> <template> <json-data id="authors">{{text.authors}}</json-data> <span id="updated">{{text.updated}}</span> <json-data id="parameters">{{text.parameters}}</json-data> </template> <template id="localizable-text"> <json-data> { "meta": {}, "model": {}, "item-update2:text": [ "updated: {1}, by: ", "{{text.updated}}" ], "item-update2:text_2": " xxx ", "item-update2:dom-if_3:template:span:b": "IF CONTENT", "item-update2:b_4": "abc", "item-update2:dom-if_5:template:text": "IF CONTENT 2", "item-update2:text_6": " hello ", "item-update:text": [ "updated: {1}, by: ", "{{text.updated}}" ], "item-update:text_2": " xxx ", "item-update:dom-if_3:template:b": "IF CONTENT", "item-update:b_4": "abc", "item-update:dom-if_5:template:text": "IF CONTENT 2", "item-update:text_6": " hello ", "item-update3:text": [ "updated: {1}, by: ", "{{text.updated}}" ], "item-update3:text_2": " xxx ", "item-update3:dom-if_3:template:b": "IF", "item-update3:dom-if_3:template:b_1": "CONTENT", "item-update3:b_4": "abc", "item-update3:dom-if_5:template:text": "IF CONTENT 2", "item-update3:text_6": " hello ", "item-update4:text": [ "updated: {1}, by: ", "{{text.updated}}" ], "item-update4:dom-repeat_1:template:text": [ " {1} = {2} ", "{{item.name}}", "{{text.updated}}" ], "item-update4:text_2": " xxx ", "item-update4:dom-if_3:template:b": "IF CONTENT", "item-update4:b_4": "abc", "item-update4:dom-if_5:template:text": "IF CONTENT 2", "item-update4:text_6": " hello ", "paragraph:text": "A paragraph with ", "paragraph:text_2": " is converted to ", "paragraph:code_3": "&lt;i18n-format&gt;", "paragraph:text_4": ". ", "paragraph2:text": "A paragraph with deep ", "paragraph2:text_2": " is ", "paragraph2:b_3": "not", "paragraph2:text_4": " converted to ", "paragraph2:code_5": "&lt;i18n-format&gt;", "paragraph2:text_6": ". ", "authors": [ { "name": "Joe" }, { "name": "Alice" } ], "updated": "Jan 1st, 2016", "parameters": [ "parameter 1", "parameter 2" ] } </json-data> </template> </template></dom-module> </body></html>