update privacy policy

This commit is contained in:
Lurkars
2021-03-19 16:18:06 +01:00
parent 3e26f43177
commit 7e73fd0eb0
2 changed files with 143 additions and 11 deletions
+5 -2
View File
@@ -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 {