import{I18NManagerStore as e}from"../i18n-manager.js";export{e as I18NManagerStore};export const I18NMixin=function(t){return class extends t{constructor(){super(),this.t||(this.t={})}static get properties(){return{...super.properties,t:{type:Object}}}registerLocalization(t){!t.namespace&&t.context&&t.context.tagName&&t.context.tagName&&(t.namespace=t.context.tagName.toLowerCase()),t.updateCallback||(t.context.requestUpdate?t.updateCallback="requestUpdate":t.context.render&&(t.updateCallback="render")),!t.localesPath&&t.basePath&&(t.localesPath=`${decodeURIComponent(t.basePath)}/../locales`),e&&e.registerLocalization(t)}}};