-
Notifications
You must be signed in to change notification settings - Fork 4k
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
NzI18nService setLocale(zh_TW) build error: Property 'global' is missing #4080
Comments
@Mike-Jia Are you interested in fixing this? Something is missing in the zh-TW file. |
@wendzhue I can do that. It's only a frew text missing in the zh-TW.ts file. Compare with zh_CN.ts, missing these fields:
|
We really appreciate your contribute! Please send a pull request to us. BTW, you can refer to i18n files from Ant Design. |
Same with ru_RU.ts |
@Svetomechc Could you please submit a PR to fix Russian? |
@wendzhue You submit a PR already, thks. |
@wendzhue submitted a PR as you requested. |
@Svetomechc Great! Really appreciate it. |
* fix(module:i18n): fix i18n interface and Traditional Chinese * fix: fix typo close #4080
…O#4102) * fix(module:i18n): fix i18n interface and Traditional Chinese * fix: fix typo close NG-ZORRO#4080
…O#4102) * fix(module:i18n): fix i18n interface and Traditional Chinese * fix: fix typo close NG-ZORRO#4080
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-start-kpifwk
Steps to reproduce
app.component.ts -> ngOnInit:
ngOnInit(){
this.i18n.setLocale(zh_TW); //ERROR!
}
What is expected?
build success.
What is actually happening?
Property 'global' is missing in type '{ locale: string; Pagination: { items_per_page: string; jump_to: string; jump_to_confirm: string; page: string; prev_page: string; next_page: string; prev_5: string; next_5: string; prev_3: string; next_3: string; }; ... 9 more ...; PageHeader: { ...; }; }' but required in type 'NzI18nInterface'.
The text was updated successfully, but these errors were encountered: