Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Catalan to the language list #4785

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
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;
}
}