{ "version": 3, "sources": ["src/app/core/services/language.service.ts"], "sourcesContent": ["import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class LanguageService {\r\n private languageSubject = new BehaviorSubject('en');\r\n language$ = this.languageSubject.asObservable();\r\n\r\n setLanguage(language: string) {\r\n this.languageSubject.next(language);\r\n localStorage.setItem('language', language);\r\n }\r\n\r\n getLanguage(): string {\r\n return localStorage.getItem('language') || 'ar';\r\n }\r\n}\r\n"], "mappings": "gDAMA,IAAaA,GAAe,IAAA,CAAtB,MAAOA,CAAe,CAH5BC,aAAA,CAIU,KAAAC,gBAAkB,IAAIC,EAAwB,IAAI,EAC1D,KAAAC,UAAY,KAAKF,gBAAgBG,aAAY,EAE7CC,YAAYC,EAAgB,CAC1B,KAAKL,gBAAgBM,KAAKD,CAAQ,EAClCE,aAAaC,QAAQ,WAAYH,CAAQ,CAC3C,CAEAI,aAAW,CACT,OAAOF,aAAaG,QAAQ,UAAU,GAAK,IAC7C,iDAXWZ,EAAe,CAAA,iCAAfA,EAAea,QAAfb,EAAec,UAAAC,WAFd,MAAM,CAAA,CAAA,SAEPf,CAAe,GAAA", "names": ["LanguageService", "constructor", "languageSubject", "BehaviorSubject", "language$", "asObservable", "setLanguage", "language", "next", "localStorage", "setItem", "getLanguage", "getItem", "factory", "\u0275fac", "providedIn"] }