1 | class TranslateHttpLoader {
|
2 | constructor(http, prefix = "/assets/i18n/", suffix = ".json") {
|
3 | this.http = http;
|
4 | this.prefix = prefix;
|
5 | this.suffix = suffix;
|
6 | }
|
7 | /**
|
8 | * Gets the translations from the server
|
9 | */
|
10 | getTranslation(lang) {
|
11 | return this.http.get(`${this.prefix}${lang}${this.suffix}`);
|
12 | }
|
13 | }
|
14 |
|
15 | /**
|
16 | * Generated bundle index. Do not edit.
|
17 | */
|
18 |
|
19 | export { TranslateHttpLoader };
|
20 | //# sourceMappingURL=ngx-translate-http-loader.js.map
|