Skip to content

Commit

Permalink
fix: 🌐 Added Czech and Chinese Simplified to the language list
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar committed Feb 1, 2022
1 parent b0871bf commit 68ef366
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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: HTMLDocument) {

this.translate.addLangs(["da", "de", "en", "es", "fr", "it", "hu", "nl", "no", "pl", "pt", "sk", "sv", "bg", "ru"]);
this.translate.addLangs(["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/) ? browserLang : "en");
this.translate.use(browserLang.match(/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
Expand Up @@ -14,6 +14,8 @@ export const AvailableLanguages: ILanguage[] = [
{ display: 'Svenska', value: 'sv' },
{ display: 'Български', value: 'bg' },
{ display: 'Русский', value: 'ru' },
{ display: 'čeština', value: 'cs' },
{ display: '简体中文', value: 'zh' },
];

export interface ILanguage {
Expand Down

0 comments on commit 68ef366

Please sign in to comment.