{"version":3,"file":"ngx-translate-http-loader.mjs","sources":["../../lib/http-loader.ts","../../ngx-translate-http-loader.ts"],"sourcesContent":["import {HttpClient} from \"@angular/common/http\";\r\nimport {TranslateLoader} from \"@ngx-translate/core\";\r\nimport {Observable} from 'rxjs';\r\n\r\nexport class TranslateHttpLoader implements TranslateLoader {\r\n constructor(private http: HttpClient, public prefix: string = \"/assets/i18n/\", public suffix: string = \".json\") {}\r\n\r\n /**\r\n * Gets the translations from the server\r\n */\r\n public getTranslation(lang: string): Observable {\r\n return this.http.get(`${this.prefix}${lang}${this.suffix}`);\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"MAIa,mBAAmB,CAAA;AACV,IAAA,IAAA,CAAA;AAAyB,IAAA,MAAA,CAAA;AAAyC,IAAA,MAAA,CAAA;AAAtF,IAAA,WAAA,CAAoB,IAAgB,EAAS,MAAA,GAAiB,eAAe,EAAS,SAAiB,OAAO,EAAA;QAA1F,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;QAAS,IAAM,CAAA,MAAA,GAAN,MAAM,CAA0B;QAAS,IAAM,CAAA,MAAA,GAAN,MAAM,CAAkB;KAAI;AAElH;;AAEG;AACI,IAAA,cAAc,CAAC,IAAY,EAAA;AAChC,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,CAAA,EAAG,IAAI,CAAG,EAAA,IAAI,CAAC,MAAM,CAAA,CAAE,CAAC,CAAC;KAC7D;AACF;;ACbD;;AAEG;;;;"}