i18n-element
Version:
I18N Base Element for lit-html and Polymer
79 lines • 5.13 kB
HTML
<!-- temporary HTML --><html><head><link rel="import" href="../../../i18n-element.html"><!-- start of innerHTML --></head><body><i18n-attr-repo>
<template id="custom">
<text-attribute-element custom-text-attr1=""></text-attribute-element>
<text-attribute-element custom-text-attr2=""></text-attribute-element>
<text-attribute-element custom-text-attr3=""></text-attribute-element>
<text-attribute-element custom-text-attr4="$"></text-attribute-element>
<text-attribute-element custom-text-attr5="$"></text-attribute-element>
<text-attribute-element i18n-target=""></text-attribute-element>
<text-attribute-element i18n-target="boolean-attr,!boolean-attr2,string-attr=abc|def,empty-attr=,type1"></text-attribute-element>
<text-attribute-element i18n-target="boolean-attr,boolean-attr2,string-attr=aaa,type2"></text-attribute-element>
<text-attribute-element i18n-target="string-attr=aaa,string-attr2=bbb,type3"></text-attribute-element>
<text-attribute-element i18n-target="boolean-attr=,type4"></text-attribute-element>
<text-attribute-element i18n-target2="boolean-attr,!boolean-attr2,string-attr=abc|def,empty-attr=,type1"></text-attribute-element>
<text-attribute-element i18n-target2="boolean-attr,boolean-attr2,,string-attr=aaa,,type2"></text-attribute-element>
<text-attribute-element i18n-target2="string-attr=aaa,string-attr2=bbb,type3"></text-attribute-element>
<text-attribute-element i18n-target2="boolean-attr=,type4"></text-attribute-element>
<text-attribute-element i18n-target2="type5"></text-attribute-element>
<text-attribute-element i18n-target3="string-attr=aaa,type1"></text-attribute-element>
<text-attribute-element i18n-target3=""></text-attribute-element>
<text-attribute-element i18n-target4=""></text-attribute-element>
<text-attribute-element i18n-target4="string-attr=aaa,type1"></text-attribute-element>
<text-attribute-element i18n-target5=""></text-attribute-element>
<text-attribute-element i18n-target5="type1"></text-attribute-element>
<text-attribute-element i18n-target="boolean-attr=,type4"></text-attribute-element>
<text-attribute-element i18n-target="string-attr=aaa,string-attr2=bbb,type3"></text-attribute-element>
<text-attribute-element i18n-target="boolean-attr,,boolean-attr2,,string-attr=aaa"></text-attribute-element>
<text-attribute-element i18n-target="boolean-attr,!boolean-attr2,string-attr=abc|def,empty-attr=,type1"></text-attribute-element>
<text-attribute-element i18n-target=""></text-attribute-element>
<text-attribute-element i18n-target2="type5"></text-attribute-element>
<text-attribute-element i18n-target2="boolean-attr="></text-attribute-element>
<text-attribute-element i18n-target2="string-attr=aaa,string-attr2=bbb,type3"></text-attribute-element>
<text-attribute-element i18n-target2="boolean-attr,!boolean-attr2,,string-attr=abc|def,,empty-attr=,type1"></text-attribute-element>
<text-attribute-element i18n-target2="boolean-attr,,boolean-attr2,,string-attr=aaa,type2"></text-attribute-element>
<text-attribute-element i18n-target3="string-attr=aaa,type1"></text-attribute-element>
<text-attribute-element i18n-target3=""></text-attribute-element>
<text-attribute-element i18n-target4=""></text-attribute-element>
<text-attribute-element i18n-target4="string-attr=aaa,type1"></text-attribute-element>
<text-attribute-element i18n-target5=""></text-attribute-element>
<text-attribute-element i18n-target5="type1"></text-attribute-element>
<text-attribute-element i18n-target6="type5"></text-attribute-element>
<text-attribute-element i18n-target6="boolean-attr="></text-attribute-element>
<text-attribute-element i18n-target6="boolean-attr,boolean-attr2,type1"></text-attribute-element>
<text-attribute-element i18n-target6="boolean-attr,boolean-attr2,string-attr=aaa,type2"></text-attribute-element>
<text-attribute-element i18n-target7="string-attr=aaa,type1"></text-attribute-element>
<text-attribute-element i18n-target7="invalid!attr=aaa,typeX"></text-attribute-element>
</template>
</i18n-attr-repo><!-- end of innerHTML --><dom-module id="text-attribute-element"><template localizable-text="embedded">
<span id="attr1">{{parts.0}}</span>
<span id="attr2">{{parts.1}}</span>
<span id="attr3">{{parts.2}}</span>
<span id="attr4">{{parts.3}}</span>
<span>{{text.span_4}}</span>
<template id="localizable-text">
<json-data>
{
"meta": {},
"model": {},
"span_4": "text"
}
</json-data>
</template>
</template></dom-module><!-- end of dom-module id="text-attribute-element" -->
<dom-module id="test-attribute-element"><template localizable-text="embedded">
<span id="attr1">{{parts.0}}</span>
<span id="attr2">{{parts.1}}</span>
<span id="attr3">{{parts.2}}</span>
<span id="attr4">{{parts.3}}</span>
<span>{{text.span_4}}</span>
<template id="localizable-text">
<json-data>
{
"meta": {},
"model": {},
"span_4": "text"
}
</json-data>
</template>
</template></dom-module><!-- end of dom-module id="test-attribute-element" -->
</body></html>