i18n-element
Version:
I18N Base Element for lit-html and Polymer
45 lines (40 loc) • 1.67 kB
HTML
<!--
@license https://github.com/t2ym/i18n-behavior/blob/master/LICENSE.md
Copyright (c) 2016, Tetsuya Mori <t2y3141592@gmail.com>. All rights reserved.
--><html lang="en"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<script src="../../../@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
<!-- <script src="../../../custom-elements/src/native-shim.js"></script> -->
<script src="../../../wct-browser-legacy/browser.js"></script>
<script type="module" src="./preference-test-imports.js"></script>
<style>
.test-container.running-test {
display: block;
}
.test-container:not(.running-test) {
display: none;
}
</style>
<i18n-attr-repo>
<template id="custom">
<text-attribute-element custom-text-attrX=""></text-attribute-element>
</template>
</i18n-attr-repo>
<dom-module id="dummy-component" legacy>
<template>
<span>dummy component</span>
<span>format <span>abc</span> <template><!-- comment -->text in template</template> text</span>
<span>format2 <span>abc2</span> <span></span> <span> </span> <template><!-- comment --></template> <template> </template> <template>{{text}}</template> text2</span>
</template>
</dom-module>
</head>
<body>
<h2 id="test-name"></h2>
<test-fixture class="test-container" id="preference-element-fixture">
<template>
<preference-element></preference-element>
</template>
</test-fixture>
<i18n-preference persist=""></i18n-preference>
</body></html>