fraserxu / babel-jsxgettext

A tool like jsxgettext, but works for es6 + jsx that babel support
MIT License
22 stars 7 forks source link

Extracts comments that begin with "L10n:" #12

Open erikdung opened 7 years ago

erikdung commented 7 years ago

Hi, is there any option to extract comments like jsxgettext? // L10n: Don't forget the exclamation mark gettext("Hello world!"); // L10n: Salutation to the world

Thanks.

dsingleton commented 7 years ago

Hi @erikdung,

No, there isn't an option to do that yet unfortunately.

I don't think @fraserxu or myself have plans to add it soon - but it looks like a very useful feature, and if were interested in adding it we'd certainly appreciate the PR :)

Cheers, David

(Sorry about the late rely, i've been on holiday. Usually try and reply quicker!)