import{s as l}from"./vendor-lodash-es.ed8922d2.js";const u=[];function m(e){var n;(n=document.querySelector("html"))==null||n.setAttribute("lang",e)}function g(e){e(u)}function b(e,n="lang"){const t={};return Object.keys(e).forEach(a=>{const c=e[a].default;let s=a.replace(`./${n}/`,"").replace(/^\.\//,"");const f=s.lastIndexOf(".");s=s.substring(0,f);const i=s.split("/"),o=i.shift(),r=i.join(".");o&&(r?(l(t,o,t[o]||{}),l(t[o],r,c)):l(t,o,c||{}))}),t}export{b as genMessage,u as loadLocalePool,m as setHtmlPageLang,g as setLoadLocalePool};
