We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a78eaf5 commit 9608c45Copy full SHA for 9608c45
projects/test-app/src/app/app.component.html
@@ -7,3 +7,5 @@
7
</header>
8
9
<router-outlet></router-outlet>
10
+
11
+<button (click)="reloadLang()">reloadLang()</button>
projects/test-app/src/app/app.component.ts
@@ -35,5 +35,15 @@ export class AppComponent implements OnInit {
35
const instantTranslation = this.translate.instant("demo.simple.text-as-attribute");
36
console.info("instant", instantTranslation);
37
});
38
39
+ this.translate.onTranslationChange.subscribe((event) => {
40
+ console.info("onTranslationChange", event);
41
+ });
42
+ }
43
44
+ reloadLang() {
45
+ this.translate.reloadLang(this.translate.getCurrentLang()).subscribe((translations) => {
46
+ console.info("reloadLang", translations);
47
48
}
49
0 commit comments