fix profile names
This commit is contained in:
parent
a9d813d25e
commit
2cede86ea8
@ -75,13 +75,13 @@ export class I18nService {
|
|||||||
getInternal(key, args: string[], from, path, empty : boolean): string {
|
getInternal(key, args: string[], from, path, empty : boolean): string {
|
||||||
key += '';
|
key += '';
|
||||||
if (!from) {
|
if (!from) {
|
||||||
return empty ? this.empty(key, args, path) : key;
|
return empty ? this.empty(key, args, path) : (key || "");
|
||||||
} else if (from[ key ]) {
|
} else if (from[ key ]) {
|
||||||
if (typeof from[ key ] === 'object') {
|
if (typeof from[ key ] === 'object') {
|
||||||
if (from[ key ][ "." ]) {
|
if (from[ key ][ "." ]) {
|
||||||
return this.insertArguments(from[ key ][ "." ], args);
|
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);
|
return this.insertArguments(from[ key ], args);
|
||||||
} else {
|
} 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 {
|
empty(key, args: string[], path: string): string {
|
||||||
|
Loading…
Reference in New Issue
Block a user