Closed Tuizi closed 4 years ago
@Tuizi thanks for pointing this out, we have a more or less similar open issue about this (#49), so I think things will work together.
Yeay! I'm thinking of starting helping you, all the libraries ngx-*
are amazing.
@Tuizi really appreciate that you liked and utilized features from those libraries, and the community would be really glad from your contributions.
Meanwhile, more is coming: such as integrating @angular/material2
to ng-seed
, d3.js
and datatables
implementation for material design.
Any updates on the issue?
I'm submitting a ... (check one with "x")
Current behavior
callback: (key: string) => translate.get(key),
guard
and set data in your route set data property of your routeWhen you change the language, the translation on your page will change, but the title of the page will remains the same.
Expected/desired behavior As the content of your page change when you call
this.translate(lang)
, the meta should also change.Minimal reproduction of the problem with instructions You can reproduce this issue in the ng-seed/spa project if you remove the reload of the page (triggered by the
this.router.navigate(['/'])
orthis.i18nRouter.changeLanguage(languageCode);
).The title will remains the same.
What is the motivation / use case for changing the behavior? The title of the tab should be in the language selected by the user as the content does.
Angular version: 4.1.3
Browser: [ all ]
Language: [ TypeScript 2.3.4 ]
Node (for AoT issues):
node --version
= 7.10.0