fix: 🌐 Added Czech and Chinese Simplified to the language list

l10n_develop
tidusjar 3 years ago
parent b0871bf9ca
commit 68ef366e85

@ -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);
@ -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");
}

@ -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 {

Loading…
Cancel
Save