mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
fix: 🌐 Added Czech and Chinese Simplified to the language list
This commit is contained in:
parent
b0871bf9ca
commit
68ef366e85
2 changed files with 4 additions and 2 deletions
|
@ -53,7 +53,7 @@ export class AppComponent implements OnInit {
|
||||||
private readonly identity: IdentityService,
|
private readonly identity: IdentityService,
|
||||||
@Inject(DOCUMENT) private document: HTMLDocument) {
|
@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()) {
|
if (this.authService.loggedIn()) {
|
||||||
this.identity.getAccessToken().subscribe(x => this.accessToken = x);
|
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
|
// See if we can match the supported langs with the current browser lang
|
||||||
const browserLang: string = translate.getBrowserLang();
|
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");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,8 @@ export const AvailableLanguages: ILanguage[] = [
|
||||||
{ display: 'Svenska', value: 'sv' },
|
{ display: 'Svenska', value: 'sv' },
|
||||||
{ display: 'Български', value: 'bg' },
|
{ display: 'Български', value: 'bg' },
|
||||||
{ display: 'Русский', value: 'ru' },
|
{ display: 'Русский', value: 'ru' },
|
||||||
|
{ display: 'čeština', value: 'cs' },
|
||||||
|
{ display: '简体中文', value: 'zh' },
|
||||||
];
|
];
|
||||||
|
|
||||||
export interface ILanguage {
|
export interface ILanguage {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue