-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
No translation on nested templates #217
Comments
I'm sorry but you don't give enough details. |
Like this: @Component({
selector: 'parent-template',
template: '
<p>{{'Title' | translate}}</p>
<child-template></child-template>
'
}) Everything in child template will be displayed like: |
What's in child template ? |
Something like this : <div class="ui-grid-row">
<div class="ui-grid-col-4">
<label for="Name">{{ 'MANAGE-BROKER.CoWorkerName' | translate }}</label>
</div>
<div class="ui-grid-col-8">
<input pInputText name="Name" [(ngModel)]="newBrokercoworker.Name" />
</div>
</div> |
So |
Yes that is correct. |
Here is the plunker: |
I forked your plunker to reflect changes that are close to my configuration of angular 2 rc.6 and ng2-translate: As you can see, the translations are not being loaded / applied in home.component.ts whereas if I put the constructor's code inside the HomeComponent everything works fine. This is not practical since I have ng2-translate's initialization code inside my AppComponent and therefore I think it's a bug. |
The translation doesn't work on nested templates.
It is something i must do to make this work?
The text was updated successfully, but these errors were encountered: