From 81a603cfbcd5cb403fa91149c8a950962038e39c Mon Sep 17 00:00:00 2001 From: _Bastler Date: Fri, 5 Nov 2021 18:33:36 +0100 Subject: [PATCH] fix label --- src/app/services/i18n.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/services/i18n.service.ts b/src/app/services/i18n.service.ts index 6039722..f2d9f45 100644 --- a/src/app/services/i18n.service.ts +++ b/src/app/services/i18n.service.ts @@ -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[]) {