i18n-behavior
Version:
Instant and Modular I18N engine for lit-html and Polymer
53 lines (48 loc) • 1.2 kB
JavaScript
/**
@license https://github.com/t2ym/i18n-behavior/blob/master/LICENSE.md
Copyright (c) 2016, Tetsuya Mori <t2y3141592@gmail.com>. All rights reserved.
*/
import '../../../i18n-behavior.js';
import { Polymer as Polymer$0 } from '@polymer/polymer/lib/legacy/polymer-fn.js';
switch (syntax) {
default:
case 'mixin':
{
class NoTemplateElement extends Mixins.Localizable(Polymer.LegacyElement) {
static get importMeta() {
return import.meta;
}
static get is() { return 'no-template-element' }
}
customElements.define(NoTemplateElement.is, NoTemplateElement);
}
break;
case 'base-element':
{
class NoTemplateElement extends BaseElements.I18nElement {
static get importMeta() {
return import.meta;
}
static get is() { return 'no-template-element' }
}
customElements.define(NoTemplateElement.is, NoTemplateElement);
}
break;
case 'thin':
{
Define = class NoTemplateElement extends BaseElements.I18nElement {
}
}
break;
case 'legacy':
{
Polymer$0({
importMeta: import.meta,
is: 'no-template-element',
behaviors: [
BehaviorsStore.I18nBehavior
]
});
}
break;
}