From 71ac4015c4cf15a690db009206f16f08513deba7 Mon Sep 17 00:00:00 2001 From: lucasferreiralimax Date: Fri, 14 Jun 2024 04:44:15 -0300 Subject: [PATCH] adjustment validation language --- src/app/components/base/app-language/app-language.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/components/base/app-language/app-language.component.ts b/src/app/components/base/app-language/app-language.component.ts index 4a343a8..d098f8d 100644 --- a/src/app/components/base/app-language/app-language.component.ts +++ b/src/app/components/base/app-language/app-language.component.ts @@ -33,8 +33,7 @@ export class AppLanguageComponent implements OnInit { } isLanguageValid(code: string): boolean { - const validLanguages = ['en', 'pt', 'es', 'ru', 'zh', 'fr']; - return validLanguages.includes(code); + return this.codeLanguage == code; } getUrl(language: string): string {