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

Extraction location as a comment

Open lahdekorpi opened this issue 7 years ago • 4 comments

Feature request

Adding the ability to insert a comment (at least in the .pot) containing the original source code file name and line the translation was extracted from.

lahdekorpi avatar Jan 25 '18 10:01 lahdekorpi

There's already a PR for it https://github.com/biesbjerg/ngx-translate-extract/pull/102, but no action on it :(

picheli20 avatar Nov 16 '18 14:11 picheli20

Maybe offer output as JSON5 to add these comments in JSON, too?

hoeni avatar Jul 10 '19 09:07 hoeni

You can use forked version with added context and comment support. This version adds file path to the item in .po file also.

https://www.npmjs.com/package/@shavenzov/ngx-translate-extract

shavenzov avatar Feb 25 '20 15:02 shavenzov

@shavenzov can you provide pr?

vtolstov avatar Mar 08 '20 11:03 vtolstov