ngx-translate-extract icon indicating copy to clipboard operation
ngx-translate-extract copied to clipboard

Additional keys being extracted

Open biesbjerg opened this issue 5 years ago • 1 comments

const emailBody = [
  this.translateService.instant('Please do not change anything below this line.'),
  this.translateService.instant('This information is used to help us troubleshoot technical issues.'),
].join('\n');

In this example '\n' in the join function is wrongly being extracted.

biesbjerg avatar Sep 24 '19 10:09 biesbjerg

A workaround would be to extract them into separate variables:

const first = this.translateService.instant('Please do not change anything below this line.');
const second this.translateService.instant('This information is used to help us troubleshoot technical issues.');
const emailBody = [first, second].join('\n');

sergiubologa avatar Feb 17 '20 09:02 sergiubologa