fix profile names

This commit is contained in:
_Bastler 2021-11-17 20:44:08 +01:00
parent a9d813d25e
commit 2cede86ea8

View File

@ -75,13 +75,13 @@ export class I18nService {
getInternal(key, args: string[], from, path, empty : boolean): string {
key += '';
if (!from) {
return empty ? this.empty(key, args, path) : key;
return empty ? this.empty(key, args, path) : (key || "");
} else if (from[ key ]) {
if (typeof from[ key ] === 'object') {
if (from[ key ][ "." ]) {
return this.insertArguments(from[ key ][ "." ], args);
}
return empty ? this.empty(key, args, path) : key;
return empty ? this.empty(key, args, path) : (key || "");
}
return this.insertArguments(from[ key ], args);
} else {
@ -92,7 +92,7 @@ export class I18nService {
}
}
return empty ? this.empty(key, args, path) : key;
return empty ? this.empty(key, args, path) : (key || "");
}
empty(key, args: string[], path: string): string {