ngx-translate-extract
ngx-translate-extract copied to clipboard
Additional keys being extracted
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.
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');