@ngx-translate/http-loader
Version:
24 lines (21 loc) • 524 B
JavaScript
class TranslateHttpLoader {
http;
prefix;
suffix;
constructor(http, prefix = "/assets/i18n/", suffix = ".json") {
this.http = http;
this.prefix = prefix;
this.suffix = suffix;
}
/**
* Gets the translations from the server
*/
getTranslation(lang) {
return this.http.get(`${this.prefix}${lang}${this.suffix}`);
}
}
/**
* Generated bundle index. Do not edit.
*/
export { TranslateHttpLoader };
//# sourceMappingURL=ngx-translate-http-loader.mjs.map