fix label
This commit is contained in:
parent
43c52acd33
commit
81a603cfbc
@ -91,8 +91,8 @@ export class I18nService {
|
|||||||
return this.empty(key, args, path);
|
return this.empty(key, args, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
empty(key, args: string[], path): string {
|
empty(key, args: string[], path: string): string {
|
||||||
return (path ? path + "." : "") + key + (args ? (" [" + args + "]") : "");
|
return (path ? path + (path.endsWith(".") ? "" : ".") : "") + key + (args && args.length > 0 ? (" [" + args + "]") : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
insertArguments(label: string, args: string[]) {
|
insertArguments(label: string, args: string[]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user