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'm submitting a ... (check one with "x")
[x ] bug report => check the FAQ and search github for a similar issue or PR before submitting
Current behavior
I'm currently using the 'translate' directive in the following manner (following the examples provided in the readme)
<strong [translate]="'HELLO'"></strong> (note the single quotes)
however the innerHTML of the <strong> element is not filled. The resultant html is as follows :
<strong>
<strong ng-reflect-translate="REGISTRATION.HEADER"></strong>
On the other hand, when i use the translate directive like in the following manner
<strong translate>HELLO</strong>
the innerHTML of the <strong> element is being filled with the correct translations.
Expected/desired behavior
The first method should work like the second method, as described in the readme.
Please tell us about your environment:
ng2-translate version: 5.0.0
Angular version: 2.2.4
Browser: [Chrome latest]
Language: [ TypeScript 2.0.10 ]
The text was updated successfully, but these errors were encountered:
I have the same issue. It works when you do this:
<strong [translate]="'HELLO'">any non empty content here</strong>
But doesn't work when the content of the node is empty.
Sorry, something went wrong.
Duplicate of #355, closing this one
fix(directive): update dom even if initial content is empty
f1e693a
Fixes #439 Fixes #355 Fixes #380
No branches or pull requests
I'm submitting a ... (check one with "x")
Current behavior
I'm currently using the 'translate' directive in the following manner (following the examples provided in the readme)
<strong [translate]="'HELLO'"></strong> (note the single quotes)
however the innerHTML of the
<strong>
element is not filled. The resultant html is as follows :<strong ng-reflect-translate="REGISTRATION.HEADER"></strong>
On the other hand, when i use the translate directive like in the following manner
<strong translate>HELLO</strong>
the innerHTML of the
<strong>
element is being filled with the correct translations.Expected/desired behavior
The first method should work like the second method, as described in the readme.
Please tell us about your environment:
ng2-translate version: 5.0.0
Angular version: 2.2.4
Browser: [Chrome latest]
Language: [ TypeScript 2.0.10 ]
The text was updated successfully, but these errors were encountered: