import { storiesOf, html } from '@open-wc/demoing-storybook'; import { LionLitElement } from '@lion/core/src/LionLitElement.js'; import { localize, LocalizeMixin } from '../index.js'; storiesOf('Localize System|Message', module).add('locale', () => { class messageExample extends LocalizeMixin(LionLitElement) { static get localizeNamespaces() { return [ { 'lit-html-example': locale => import(`./translations/${locale}.js`) }, ...super.localizeNamespaces, ]; } render() { return html`
${this.msgLit('lit-html-example:body')}