Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Ombi/ClientApp/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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");

}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const AvailableLanguages: ILanguage[] = [
{ display: 'Català', value: 'ca' },
{ display: 'Dansk', value: 'da' },
{ display: 'Deutsch', value: 'de' },
{ display: 'English', value: 'en' },
Expand All @@ -21,4 +22,4 @@ export const AvailableLanguages: ILanguage[] = [
export interface ILanguage {
display: string;
value: string;
}
}