From c683a52a01605f81848a3367a15e2c05910b93af Mon Sep 17 00:00:00 2001 From: hunicus <93150691+hunicus@users.noreply.github.com> Date: Thu, 16 Mar 2023 02:29:33 -0400 Subject: [PATCH] Show captions for non-english locales --- frontend/src/app/components/about/about.component.html | 6 +++--- frontend/src/app/components/about/about.component.ts | 7 +------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/components/about/about.component.html b/frontend/src/app/components/about/about.component.html index 6e459cbac..17920157f 100644 --- a/frontend/src/app/components/about/about.component.html +++ b/frontend/src/app/components/about/about.component.html @@ -14,9 +14,9 @@
diff --git a/frontend/src/app/components/about/about.component.ts b/frontend/src/app/components/about/about.component.ts index 4bf70e435..2bc42bde9 100644 --- a/frontend/src/app/components/about/about.component.ts +++ b/frontend/src/app/components/about/about.component.ts @@ -92,11 +92,6 @@ export class AboutComponent implements OnInit { } showSubtitles(language) { - console.log(this.locale); - if( this.locale.startsWith( language ) ) { - return true; - } else { - return false; - } + return ( this.locale.startsWith( language ) && !this.locale.startsWith('en') ); } }