Open FirmYn opened 2 years ago
Hi, There is an issue with the extract parser with this code:
get text(): string { const status = this.selectedStatus(); if (status.length) { return status .map(s => this.translateService.instant(s)) .join(', '); } else { return this.translateService.instant('DEFAULT_STATUS'); } }
The JSON output for this is:
{ ", ": "", "DEFAULT_STATUS": "" }
It expected result was:
{ "DEFAULT_STATUS": "" }
Changing the code to this fix the issue:
get text(): string { const status = this.selectedStatus(); if (status.length) { const translatedStatus = selectedStatus.map(status => this.translateService.instant(status) ); return translatedStatus.join(', '); } else { return this.translateService.instant('DEFAULT_STATUS'); } }
Also, this.selectedStatus() returns other keys that are marked elsewhere.
this.selectedStatus()
Hi, There is an issue with the extract parser with this code:
The JSON output for this is:
It expected result was:
Changing the code to this fix the issue:
Also,
this.selectedStatus()
returns other keys that are marked elsewhere.