import{b as i}from"./chunk-KNXXDNCS.js";import{O as n,S as o}from"./chunk-KBLF2WKH.js";var l="faildaily_lang",a=["fr","en"],u=(()=>{let e=class e{constructor(t){this.translate=t}init(){this.translate.addLangs([...a]),this.translate.setDefaultLang("fr");let t=localStorage.getItem(l),r=this.translate.getBrowserLang(),c=this.resolve(t??r??"fr");this.translate.use(c)}setLang(t){let r=this.resolve(t);this.translate.use(r),localStorage.setItem(l,r)}get currentLang(){return this.translate.currentLang??"fr"}get availableLangs(){return a}resolve(t){return a.includes(t)?t:"fr"}};e.\u0275fac=function(r){return new(r||e)(o(i))},e.\u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();export{u as a};
