mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-11 00:25:12 +00:00
feat: internationalization Chinese (#4222)
* feat: internationalization chinese * typo: optimize the semantic expression of copywriting * Update internal/api/ui/login/static/i18n/zh.yaml Co-authored-by: Silvan <[email protected]> * Update console/src/assets/i18n/it.json Co-authored-by: Silvan <[email protected]> * Update console/src/assets/i18n/en.json Co-authored-by: Silvan <[email protected]> * Update console/src/assets/i18n/zh.json Co-authored-by: Silvan <[email protected]> * Update internal/api/ui/login/static/i18n/zh.yaml Co-authored-by: Silvan <[email protected]> * Update console/src/assets/i18n/it.json Co-authored-by: Silvan <[email protected]> * Update console/src/assets/i18n/it.json Co-authored-by: Silvan <[email protected]> * Update console/src/assets/i18n/fr.json Co-authored-by: Silvan <[email protected]> * Update console/src/assets/i18n/en.json Co-authored-by: Silvan <[email protected]> * Update console/src/assets/i18n/en.json Co-authored-by: Silvan <[email protected]> * Update console/src/assets/i18n/fr.json Co-authored-by: Silvan <[email protected]> * Update console/src/assets/i18n/fr.json Co-authored-by: Silvan <[email protected]> * minor: add Chinese to other language file * Update console/src/app/app.module.ts Co-authored-by: Max Peintner <[email protected]> * Update console/src/app/app.module.ts Co-authored-by: Max Peintner <[email protected]> Co-authored-by: Silvan <[email protected]> Co-authored-by: Max Peintner <[email protected]>
This commit is contained in:
co-authored by
Silvan
Max Peintner
parent
5052aa1c12
commit
8ab85afd15
@@ -1,6 +1,10 @@
|
||||
import { CommonModule, registerLocaleData } from '@angular/common';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import localeDe from '@angular/common/locales/de';
|
||||
import localeZh from '@angular/common/locales/zh';
|
||||
import localeFr from '@angular/common/locales/fr';
|
||||
import localeIt from '@angular/common/locales/it';
|
||||
import localeEn from '@angular/common/locales/en';
|
||||
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||
import { MatNativeDateModule } from '@angular/material/core';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
@@ -55,6 +59,10 @@ import { ThemeService } from './services/theme.service';
|
||||
import { ToastService } from './services/toast.service';
|
||||
|
||||
registerLocaleData(localeDe);
|
||||
registerLocaleData(localeZh);
|
||||
registerLocaleData(localeFr);
|
||||
registerLocaleData(localeIt);
|
||||
registerLocaleData(localeEn);
|
||||
|
||||
export class WebpackTranslateLoader implements TranslateLoader {
|
||||
getTranslation(lang: string): Observable<any> {
|
||||
|
||||
Reference in New Issue
Block a user