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(Today ) text not localizing #24497
Comments
Hello @AbhijeetGaware. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro or a minimal GitHub repository. Issues labeled by 你好 @AbhijeetGaware, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。7 天内未跟进的 issue 将会被自动关闭。 |
Your link is not version 3. |
A set of localization is indecomposable. |
i need to change today text for few countries (eg.Ireland:-irish) rest of few countries working fine |
Maybe you should add |
There is no i18n of |
how to change (Today) text will you provide any parameter for (irish),(ireland) |
i need to locale for irish (ga_IE) and need to work for antd |
@yoyo837 i need to translate Today text when it will be added will you let me know |
i was trying to do what you said please see the once Thank You |
Do you mean that you don't know how to contribute an i18n locale? |
yes i know it and i tried it but still its not taking locale in DatePicker |
What is the output of navigator.language on your computer? |
what i selected languages on browser locale its properly working fine only i am stuck with irish |
https://ant.design/docs/react/i18n#Adding-newplanguage |
You need to send PR to rc-picker like react-component/picker#24 and rc-pagination like react-component/pagination#249 before send PR to |
@yoyo837 okay Thank you |
@yoyo837 Some checks were not succesfull . i have added 2 file from rc-picker in ant-design component so should i have to delete those file or i have to raise pr again for ant-design |
Wait for the PRs of the Picker and Pagination to merge and release a new version. |
Reproduction link
https://ant.design/components/date-picker/
Steps to reproduce
We are trying to localize DatePicker based on browser locale
It will be good if can override today text with parameter
Eg., <DatePicker todayText={"Manual Today}/> // We can take care of localizing using react-intil if this parameter exist
We tried below work-around based on antd recommended localization. It is not working for all countries (Eg., Ireland - ga)
import zh_CN from 'antd/lib/date-picker/locale/zh_CN';
Date Picker Calender localizing perfectly. //
What is expected?
DatePicker should have todayText attribute to override/localize the value
What is actually happening?
Unable to localize Today text for all required countries part of our requirement
The text was updated successfully, but these errors were encountered: