-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for comments in JavaScript annotations #77
Comments
I think the first version is way more explicit, and we'll run into less false positives. |
The drawback is that translator comments become part of the runtime although they are only needed at build time to generate the catalog (right?) |
Sure, but that's how it works in many other languages and implementations. |
Fine with me :-D |
Hello, something new about that ? bests regards |
No news on this? :((( |
Translation comments are only supported when using the
v-translate
directive or<translate>
component but not for plain JavaScript annotations. To add support, I thought about two options.The first is extending the existing functions with an optional parameter like this:
The second is probably more complicated during parsing:
The syntax above is derived from GNU gettext utilities documentation. The comment may appear in the same or previous line of the annotation.
The text was updated successfully, but these errors were encountered: