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

refactor(Calendar): change locale from method to string #6276

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

whwnow
Copy link
Contributor

@whwnow whwnow commented Jul 31, 2023

解决issue #6269 ,多语统一修改为字符串形式

@github-actions
Copy link
Contributor

PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6276.surge.sh

@whwnow
Copy link
Contributor Author

whwnow commented Jul 31, 2023

image
这个测试用例没过是因为日语的翻译多了个空白的空格,被我去掉了,这个要补回来么

@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.02% ⚠️

Comparison is base (4cf67a3) 90.90% compared to head (4d5ba61) 90.88%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6276      +/-   ##
==========================================
- Coverage   90.90%   90.88%   -0.02%     
==========================================
  Files         305      306       +1     
  Lines        6607     6597      -10     
  Branches     1635     1635              
==========================================
- Hits         6006     5996      -10     
  Misses        556      556              
  Partials       45       45              
Files Changed Coverage Δ
src/locales/base.ts 100.00% <ø> (ø)
src/locales/da-DK.ts 100.00% <ø> (ø)
src/locales/es-ES.ts 100.00% <ø> (ø)
src/locales/fa-IR.ts 100.00% <ø> (ø)
src/locales/fr-FR.ts 100.00% <ø> (ø)
src/locales/id-ID.ts 100.00% <ø> (ø)
src/locales/it-IT.ts 100.00% <ø> (ø)
src/locales/ja-JP.ts 100.00% <ø> (ø)
src/locales/kk-KZ.ts 100.00% <ø> (ø)
src/locales/ko-KR.ts 100.00% <ø> (ø)
... and 8 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@miracles1919
Copy link
Contributor

这个测试用例没过是因为日语的翻译多了个空白的空格,被我去掉了,这个要补回来么

应该是要去掉的

@zombieJ
Copy link
Member

zombieJ commented Aug 2, 2023

66666~

@zombieJ zombieJ merged commit bf44a5c into ant-design:master Aug 2, 2023
8 checks passed
@whwnow
Copy link
Contributor Author

whwnow commented Aug 2, 2023

这个测试用例没过是因为日语的翻译多了个空白的空格,被我去掉了,这个要补回来么

应该是要去掉的

嗯,我理解也是要去掉的,后面的提交已经把测试用例 snap 里多余的空格去掉了。感谢 merge

miracles1919 added a commit that referenced this pull request Aug 16, 2023
* docs: update doc of  SwipeAction ProgressBar ProgressCircle Popover Switch  (#6232)

* doc: update SwupeAction doc

* doc: update ProgressBar  ProgressCircle doc

* doc: update Popover doc

* doc: update Switch doc

* test: fix failed test (#6227)

* doc: Improve doc descriptions of some components (#6233)

* doc: update docs

* doc: update doc

* fix: virtual input value 0 (#6231)

* fix: fix placeholder show when value is number 0 on virtual-input

* test: add value `0`

---------

Co-authored-by: wuguangsen.wgs <wuguangsen.wgs@alibaba-inc.com>
Co-authored-by: miracles1919 <516571350@qq.com>

* fix(TextArea): hidden textarea element is not positioned relative to its parent (#6239)

fix: hidden textarea element is not positioned relative to its parent

* chore: bump 5.32.0

* enhance: useWheel dir change (#6240)

* enhance: useWheel dir change

* enhance: 代码风格调整

* refactor: 数组解构方式优化

* style: delete note code

* chore: prompt when repairing step cloneElement (#6259)

* fix(TextArea): reset rows when rows exceed autoSize (#6256)

* fix(TextArea): rows should be the smallest of default and autoSize

* refactor: adjust rows logic

* chore: side add type specification (#6258)

* chore: type enhance (#6262)

* refactor: to simplify the judge (#6263)

* refactor: to simplify the judge

* refactor: simplify the judge

* fix: add null judge

* fix: add judage case

* chore: repair type warning (#6267)

* fix: classname use repeatedly (#6278)

* chore: form's code style optimization (#6279)

* refactor(Calendar): change locale from method to string (#6276)

* refactor(Calendar): change locale from method to string

* test(ConfigProvider): remove spaces in Japanese translation in calendar

---------

Co-authored-by: litaoq <litaoq@yonyou.com>

* chore: add `--inactive-color-half` type (#6281)

* enhance: passive and preventDefault coexist repair (#6284)

* enhance: passive and preventDefault coexist repair

* refactor: code simplify

* test: add useLockScroll test case

* chore: pick type to InputHTMLAttributes (#6290)

* enhance(toast): compatible with rtl mode (#6287)

fix(toast): compatible with rtl mode

Co-authored-by: Fog3211 <23151576+Fog3211@users.noreply.github.com>

* test(useLockScroll): update test (#6292)

* fix: repir passive and preventDefault in components (#6296)

enhance: fix passive and preventDefault in components

* chore: eventOptions  type fix (#6298)

chore: type fix

* enhance: floating-panel add classPrefix (#6297)

* chore: code simplify (#6295)

* chore: code simplify

* chore: code simplify

* fix: useLockScroll whether the element scroll is in the end #6253 (#6254)

* fix: useLockScroll whether the element scroll is in the end #6253

* test: useLockScroll test case #6253

* fix: useLockScroll whether the element scroll is in the end #6253

* test: useLockScroll whether the element scroll is in the end #6253

* test: useLockScroll with strict params #6253

* test: useLockScroll with strict params #6253

* fix: del px and remove {} #6253

* fix: error-block Normal display 0 (#6309)

* fix: error-block Normal display 0

* test: add test case

* chore: center-popup use classPrefix (#6305)

* chore: pickview use classPrefix (#6304)

chore: pickview dom use classPrefix

* enhance: replace missing colors with css variables. fix #6319 (#6320)

* enhance: replace missing colors with css variables. fix #6319

* enhance: replace black color with css variable

* chore: update tag snapshots for css var

---------

Co-authored-by: Wing <1587315093@qq.com>
Co-authored-by: WuLiSenSen <wuguangsenwow@163.com>
Co-authored-by: wuguangsen.wgs <wuguangsen.wgs@alibaba-inc.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: whwnow <whwnow@gmail.com>
Co-authored-by: litaoq <litaoq@yonyou.com>
Co-authored-by: Hyden Liu <sunupdong@gmail.com>
Co-authored-by: Fog3211 <fog3211@gmail.com>
Co-authored-by: Fog3211 <23151576+Fog3211@users.noreply.github.com>
Co-authored-by: wang.haoyu <31119562+19Qingfeng@users.noreply.github.com>
Co-authored-by: Wuma <canyoutle@gmail.com>
zombieJ added a commit that referenced this pull request Aug 17, 2023
* docs: update doc of  SwipeAction ProgressBar ProgressCircle Popover Switch  (#6232)

* doc: update SwupeAction doc

* doc: update ProgressBar  ProgressCircle doc

* doc: update Popover doc

* doc: update Switch doc

* test: fix failed test (#6227)

* doc: Improve doc descriptions of some components (#6233)

* doc: update docs

* doc: update doc

* fix: virtual input value 0 (#6231)

* fix: fix placeholder show when value is number 0 on virtual-input

* test: add value `0`

---------

Co-authored-by: wuguangsen.wgs <wuguangsen.wgs@alibaba-inc.com>
Co-authored-by: miracles1919 <516571350@qq.com>

* fix(TextArea): hidden textarea element is not positioned relative to its parent (#6239)

fix: hidden textarea element is not positioned relative to its parent

* chore: bump 5.32.0

* enhance: useWheel dir change (#6240)

* enhance: useWheel dir change

* enhance: 代码风格调整

* refactor: 数组解构方式优化

* style: delete note code

* chore: prompt when repairing step cloneElement (#6259)

* fix(TextArea): reset rows when rows exceed autoSize (#6256)

* fix(TextArea): rows should be the smallest of default and autoSize

* refactor: adjust rows logic

* chore: side add type specification (#6258)

* chore: type enhance (#6262)

* refactor: to simplify the judge (#6263)

* refactor: to simplify the judge

* refactor: simplify the judge

* fix: add null judge

* fix: add judage case

* chore: repair type warning (#6267)

* fix: classname use repeatedly (#6278)

* chore: form's code style optimization (#6279)

* refactor(Calendar): change locale from method to string (#6276)

* refactor(Calendar): change locale from method to string

* test(ConfigProvider): remove spaces in Japanese translation in calendar

---------

Co-authored-by: litaoq <litaoq@yonyou.com>

* chore: add `--inactive-color-half` type (#6281)

* enhance: passive and preventDefault coexist repair (#6284)

* enhance: passive and preventDefault coexist repair

* refactor: code simplify

* test: add useLockScroll test case

* chore: pick type to InputHTMLAttributes (#6290)

* enhance(toast): compatible with rtl mode (#6287)

fix(toast): compatible with rtl mode

Co-authored-by: Fog3211 <23151576+Fog3211@users.noreply.github.com>

* test(useLockScroll): update test (#6292)

* fix: repir passive and preventDefault in components (#6296)

enhance: fix passive and preventDefault in components

* chore: eventOptions  type fix (#6298)

chore: type fix

* enhance: floating-panel add classPrefix (#6297)

* chore: code simplify (#6295)

* chore: code simplify

* chore: code simplify

* fix: useLockScroll whether the element scroll is in the end #6253 (#6254)

* fix: useLockScroll whether the element scroll is in the end #6253

* test: useLockScroll test case #6253

* fix: useLockScroll whether the element scroll is in the end #6253

* test: useLockScroll whether the element scroll is in the end #6253

* test: useLockScroll with strict params #6253

* test: useLockScroll with strict params #6253

* fix: del px and remove {} #6253

* fix: error-block Normal display 0 (#6309)

* fix: error-block Normal display 0

* test: add test case

* feat: support for incoming ref to image-uploader #6289

* fix: remove imageUploaderRef openPhoto #6316

* fix: remove log ref:#6316

* doc: update

* feat: export image upload ref

* doc: update demo

---------

Co-authored-by: Wing <1587315093@qq.com>
Co-authored-by: miracles1919 <516571350@qq.com>
Co-authored-by: WuLiSenSen <wuguangsenwow@163.com>
Co-authored-by: wuguangsen.wgs <wuguangsen.wgs@alibaba-inc.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: whwnow <whwnow@gmail.com>
Co-authored-by: litaoq <litaoq@yonyou.com>
Co-authored-by: Hyden Liu <sunupdong@gmail.com>
Co-authored-by: Fog3211 <fog3211@gmail.com>
Co-authored-by: Fog3211 <23151576+Fog3211@users.noreply.github.com>
@xianxin011
Copy link

如何自己定义月份和年份的显示?

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

Successfully merging this pull request may close these issues.

None yet

4 participants