Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import '../utils/i18n-importer/implementation.js' import { I18nContainerElement as Element } from '../custom-elements/i18n-container/i18n-container.element.js' export { translate } from '../js-api/api.js' export { ElementLangObserver } from '../element-lang-observer/element-lang-observer.util.js' const url = new URL(import.meta.url) const elementName = url.searchParams.get('named') if (elementName) { if (customElements.get(elementName) != null) { console.error(`A custom element with name "${elementName}" already exists`) } else { customElements.define(elementName, Element) } } export const I18nContainerElement = Element export default I18nContainerElement |