From cf4d28a87b81a0ac65d9b67f3bb6f30b73900055 Mon Sep 17 00:00:00 2001 From: dtalens Date: Tue, 25 Oct 2022 12:43:26 +0200 Subject: [PATCH 1/2] Update app.component.ts --- src/Ombi/ClientApp/src/app/app.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ombi/ClientApp/src/app/app.component.ts b/src/Ombi/ClientApp/src/app/app.component.ts index 720ec22a2d..6013c54a29 100644 --- a/src/Ombi/ClientApp/src/app/app.component.ts +++ b/src/Ombi/ClientApp/src/app/app.component.ts @@ -53,7 +53,7 @@ export class AppComponent implements OnInit { private readonly identity: IdentityService, @Inject(DOCUMENT) private document: Document) { - this.translate.addLangs(["da", "de", "en", "es", "fr", "it", "hu", "nl", "no", "pl", "pt", "sk", "sv", "bg", "ru", "cs", "zh"]); + this.translate.addLangs(["ca", "da", "de", "en", "es", "fr", "it", "hu", "nl", "no", "pl", "pt", "sk", "sv", "bg", "ru", "cs", "zh"]); if (this.authService.loggedIn()) { this.identity.getAccessToken().subscribe(x => this.accessToken = x); @@ -81,7 +81,7 @@ export class AppComponent implements OnInit { // See if we can match the supported langs with the current browser lang const browserLang: string = translate.getBrowserLang(); - this.translate.use(browserLang.match(/da|de|en|es|fr|it|hu|nl|no|pl|pt|sk|sv|bg|ru|cs|zh/) ? browserLang : "en"); + this.translate.use(browserLang.match(/ca|da|de|en|es|fr|it|hu|nl|no|pl|pt|sk|sv|bg|ru|cs|zh/) ? browserLang : "en"); } From 369a8b2ed4bdc45298e1de1abe1b8f6098ef7dde Mon Sep 17 00:00:00 2001 From: dtalens Date: Tue, 25 Oct 2022 12:51:12 +0200 Subject: [PATCH 2/2] Update user-preference.constants.ts --- .../components/user-preference/user-preference.constants.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.constants.ts b/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.constants.ts index d5101fa525..80d67a2e67 100644 --- a/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.constants.ts +++ b/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.constants.ts @@ -1,4 +1,5 @@ export const AvailableLanguages: ILanguage[] = [ + { display: 'CatalĂ ', value: 'ca' }, { display: 'Dansk', value: 'da' }, { display: 'Deutsch', value: 'de' }, { display: 'English', value: 'en' }, @@ -21,4 +22,4 @@ export const AvailableLanguages: ILanguage[] = [ export interface ILanguage { display: string; value: string; -} \ No newline at end of file +}