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 {