grunt-angular-translate icon indicating copy to clipboard operation
grunt-angular-translate copied to clipboard

Support for typescript

Open nishantkagrawal opened this issue 8 years ago • 0 comments

TypeScript ignores inline comment as in this.form['additionalName'].customValidationMessage = /*!i18nextract */'Some message';

The way to go is this.form['additionalName'].customValidationMessage = /*! i18nextract */'Some message'; (notice the ! after /*)

Also TypeScript adds a whitespace between the end of comment */ and the string. The current regex doesn't support that either.

Can you update the regex to include that?

nishantkagrawal avatar Jul 11 '17 09:07 nishantkagrawal