We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to translate custom annotation, as described here
https://angular-gettext.rocketeer.be/dev-guide/custom-annotations/
I have tooltip, I want to automatically translate it that way. HOWEVER, it is only used in pairwise tags. Like this:
<div tooltip="You have mouse on Foo!"><img src="http://example.org/foo.jpg">...</div>
However, I cannot do that. Once I add tooltip to attributes, the inner HTML is extracted.
tooltip
It's probably because here - https://github.com/rubenv/angular-gettext-tools/blob/master/lib/extract.js#L345 - the logic is first take inner HTML, and only when it's falsey, take the argument.
That's very unfortunate. If you really want this behaviour, it should be documented.
The text was updated successfully, but these errors were encountered:
It might be fixed here - #147 - but I am frankly not very sure, plus it might do something unintended.
Sorry, something went wrong.
....yep, my fix breaks something. It was an idea :)
Using first the argument value, then inner HTML
c5c705c
May fix rubenv#146 (not sure).
Successfully merging a pull request may close this issue.
I want to translate custom annotation, as described here
https://angular-gettext.rocketeer.be/dev-guide/custom-annotations/
I have tooltip, I want to automatically translate it that way. HOWEVER, it is only used in pairwise tags. Like this:
<div tooltip="You have mouse on Foo!"><img src="http://example.org/foo.jpg">...</div>
However, I cannot do that. Once I add
tooltip
to attributes, the inner HTML is extracted.It's probably because here - https://github.com/rubenv/angular-gettext-tools/blob/master/lib/extract.js#L345 - the logic is first take inner HTML, and only when it's falsey, take the argument.
That's very unfortunate. If you really want this behaviour, it should be documented.
The text was updated successfully, but these errors were encountered: