UNPKG

1.22 kBSource Map (JSON)View Raw
1{"version":3,"file":"ngx-translate-http-loader.umd.js","sources":["../../../../projects/ngx-translate/http-loader/src/lib/http-loader.ts","../../../../projects/ngx-translate/http-loader/src/ngx-translate-http-loader.ts"],"sourcesContent":["import {HttpClient} from \"@angular/common/http\";\nimport {TranslateLoader} from \"@ngx-translate/core\";\nimport {Observable} from 'rxjs';\n\nexport class TranslateHttpLoader implements TranslateLoader {\n constructor(private http: HttpClient, public prefix: string = \"/assets/i18n/\", public suffix: string = \".json\") {}\n\n /**\n * Gets the translations from the server\n */\n public getTranslation(lang: string): Observable<Object> {\n return this.http.get(`${this.prefix}${lang}${this.suffix}`);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;QAKE,6BAAoB,IAAgB,EAAS,MAAgC,EAAS,MAAwB;YAAjE,uBAAA,EAAA,wBAAgC;YAAS,uBAAA,EAAA,gBAAwB;YAA1F,SAAI,GAAJ,IAAI,CAAY;YAAS,WAAM,GAAN,MAAM,CAA0B;YAAS,WAAM,GAAN,MAAM,CAAkB;SAAI;;;;QAK3G,4CAAc,GAAd,UAAe,IAAY;YAChC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAG,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC,MAAQ,CAAC,CAAC;SAC7D;kCACF;KAAA;;ICbD;;;;;;;;;;;;;;"}
\No newline at end of file