UNPKG

i18n-element

Version:

I18N Base Element for lit-html and Polymer

81 lines 3.65 kB
<!-- temporary HTML --><html><head><link rel="import" href="../../../i18n-element.html"></head><body><dom-module id="template-default-lang-element"><template localizable-text="embedded">{{text.text}}<div><div></div></div><!-- nested empty div --> <span id="whitespace"> &nbsp; </span> <h1>{{text.h1_3}}</h1>{{text.text_4}}<span>{{text.span_5}}</span> <span>{{text.span_6}}</span> <span id="label-1">{{text.label-1}}</span> <span id="label-2">{{text.label-2}}</span> <div> <span>{{text.div_9:span}}</span> <span>{{text.div_9:span_1}}</span> <div><div>{{text.div_9:div_2:div}}</div></div> </div> <div>{{text.div_10:text}}<span>{{text.div_10:span_1}}</span>{{text.div_10:text_2}}<span>{{text.div_10:span_3}}</span> <div><div>{{text.div_10:div_4:div}}</div></div>{{text.div_10:text_5}}</div> <div id="toplevel-div"> <span>{{text.toplevel-div:span}}</span> <span>{{text.toplevel-div:span_1}}</span> <div id="second-level-div"> <div id="third-level-div">{{text.third-level-div}}</div> <div>{{text.second-level-div:div_1}}</div> </div> </div> <div> <ul> <li>{{text.div_12:ul:li}}</li> <li>{{text.div_12:ul:li_1}}</li> <li>{{text.div_12:ul:li_2}}</li> </ul> <ul id="line-items"> <li>{{text.line-items:li}}</li> <li>{{text.line-items:li_1}}</li> <li>{{text.line-items:li_2}}</li> </ul> </div> <p><i18n-format lang="{{effectiveLang}}"><span>{{text.p_13.0}}</span><b slot="1">{{text.p_13.1}}</b><code slot="2">{{text.p_13.2}}</code></i18n-format></p> <p id="paragraph"><i18n-format lang="{{effectiveLang}}"><span>{{text.paragraph.0}}</span><b slot="1">{{text.paragraph.1}}</b><code slot="2">{{text.paragraph.2}}</code></i18n-format></p>{{text.text_15}}<template id="localizable-text"> <json-data> { "meta": {}, "model": {}, "text": " fr outermost text at the beginning ", "h1_3": "fr outermost header 1", "text_4": " fr outermost text in the middle ", "span_5": "fr simple text without id", "span_6": "fr simple text without id 2", "label-1": "fr simple text with id", "label-2": "fr simple text with id 2", "div_9:span": "fr simple text within div", "div_9:span_1": "fr simple text within div 2", "div_9:div_2:div": "fr great grandchild text within div", "div_10:text": " fr simple text as the first element in div ", "div_10:span_1": "fr simple text within div", "div_10:text_2": " fr simple text in the middle of div ", "div_10:span_3": "fr simple text within div 2", "div_10:div_4:div": "fr great grandchild text within div", "div_10:text_5": " fr simple text at the last element in div ", "toplevel-div:span": "fr simple text within div", "toplevel-div:span_1": "fr simple text within div 2", "third-level-div": "fr great grandchild text within div", "second-level-div:div_1": "fr great grandchild text within div without id", "div_12:ul:li": "fr line item without id 1", "div_12:ul:li_1": "fr line item without id 2", "div_12:ul:li_2": "fr line item without id 3", "line-items:li": "fr line item with id 1", "line-items:li_1": "fr line item with id 2", "line-items:li_2": "fr line item with id 3", "p_13": [ "fr A paragraph with {1} is converted to {2}.", "fr parameters", "fr &lt;i18n-format&gt;" ], "paragraph": [ "fr A paragraph with {1} is converted to {2}.", "fr id", "fr &lt;i18n-format&gt;" ], "text_15": " fr outermost text at the end " } </json-data> </template> </template></dom-module><!-- end of dom-module id="template-default-lang-element" --> </body></html>