Skip to content
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

datepicker title error #3616

Closed
dasoncheng opened this issue Jun 20, 2019 · 2 comments
Closed

datepicker title error #3616

dasoncheng opened this issue Jun 20, 2019 · 2 comments
Assignees

Comments

@dasoncheng
Copy link

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-5kk44y

Steps to reproduce

Select a date and hover over the "last year" or "next year" icons

What is expected?

can hide or customize the content of the title

What is actually happening?

the content is "上一年 (Control键加左方向键)",Testers think it's not rigorous to use "Control" on Windows

Environment Info
ng-zorro-antd 7.5.1
Browser chrome 75.0.3770.100
@darshanrampatel
Copy link
Contributor

This looks like it is coming from: https://github.com/NG-ZORRO/ng-zorro-antd/tree/master/components/i18n/languages/calendar

E.g.

previousYear: '上一年 (Control键加左方向键)',

@wzhudev wzhudev changed the title datapicker title error datepicker title error Jun 21, 2019
@dasoncheng
Copy link
Author

@darshanrampatel thx, requirements have been implemented by changing language objects

import { zh_CN } from 'ng-zorro-antd';
zh_CN.DatePicker.lang.nextYear = '下一年'
zh_CN.DatePicker.lang. previousYear = '上一年'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants