import{N as r,T as a,mb as c}from"./chunk-GDBJ4YY7.js";var h=(()=>{let t=class t{constructor(o){this.locale=o,console.log("Locale: ",this.locale)}setCurrentLang(o){this.locale=o,this.updateRouteLanguagePrefix()}getCurrentLang(){return this.locale}updateRouteLanguagePrefix(){let o=window.location.pathname;console.log("currentRoute",o);let e=o.replace(/^(\/(en|ar))?/,"");console.log("routeWithoutLang",e),window.location.href=`/${this.locale}${e}`}};t.\u0275fac=function(e){return new(e||t)(a(c))},t.\u0275prov=r({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();export{h as a};
/**i18n:9cce0918965bbeceda55c7956b59dabae65869644761d6c1b4f4557856a316f0*/
