Make subtitles default to current locale

This commit is contained in:
hunicus
2023-03-15 06:08:57 -04:00
parent 418c32e334
commit 4c294b010d
2 changed files with 13 additions and 4 deletions

View File

@@ -68,7 +68,7 @@ export class AboutComponent implements OnInit {
tap(() => this.goToAnchor())
);
}
ngAfterViewInit() {
this.goToAnchor();
}
@@ -90,4 +90,13 @@ export class AboutComponent implements OnInit {
this.showNavigateToSponsor = true;
}
}
showSubtitles(language) {
console.log(this.locale);
if( this.locale.startsWith( language ) ) {
return true;
} else {
return false;
}
}
}