fix label

This commit is contained in:
_Bastler 2021-11-05 18:33:36 +01:00
parent 43c52acd33
commit 81a603cfbc
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ export class I18nService {
return this.empty(key, args, path);
}
empty(key, args: string[], path): string {
return (path ? path + "." : "") + key + (args ? (" [" + args + "]") : "");
empty(key, args: string[], path: string): string {
return (path ? path + (path.endsWith(".") ? "" : ".") : "") + key + (args && args.length > 0 ? (" [" + args + "]") : "");
}
insertArguments(label: string, args: string[]) {