update privacy policy
This commit is contained in:
@@ -27,7 +27,9 @@ export class I18nService {
|
||||
this.locale = locale;
|
||||
}
|
||||
|
||||
async fetch() {let browserLocale = navigator.language;
|
||||
async fetch() {
|
||||
|
||||
let browserLocale = navigator.language;
|
||||
|
||||
if(browserLocale.indexOf("-") != -1) {
|
||||
browserLocale = browserLocale.split("-")[0];
|
||||
@@ -45,9 +47,10 @@ export class I18nService {
|
||||
locale = this.locales[0];
|
||||
}
|
||||
|
||||
this.setLocale(locale);
|
||||
|
||||
this.i18n = await this.http.get(environment.apiUrl + "/i18n/" + locale).toPromise();
|
||||
|
||||
this.setLocale(locale);
|
||||
}
|
||||
|
||||
get(key, args: string[]): string {
|
||||
|
||||
Reference in New Issue
Block a user