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

fix(date-inputs): placeholder i18n fixes #954

Merged
merged 2 commits into from
Jul 25, 2019
Merged

Conversation

montezume
Copy link
Contributor

Summary

We have some bad translations for our placeholders for dates.

@@ -15,10 +15,10 @@
"UIKit.CreatableSelectInput.noOptionsMessageWithInputValue": "Aucune option",
"UIKit.CreatableSelectInput.noOptionsMessageWithoutInputValue": "Aucune option",
"UIKit.CreatableSelectInput.placeholder": "Sélectionner...",
"UIKit.DateInput.placeholder": "MM/JJ/AAAA",
"UIKit.DateRangeInput.placeholder": "MM/JJ/AAAA - MM/JJ/AAAA",
"UIKit.DateTimeInput.placeholder": "MM/JJ/AAAA - HH:mm AM/PM",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

french doesn't use am/pm, and when the "value" is displayed and formatted with moment, it's shown in 24 hour time.

@@ -42,5 +42,5 @@
"UIKit.SelectInput.noOptionsMessageWithInputValue": "无选项",
"UIKit.SelectInput.noOptionsMessageWithoutInputValue": "无选项",
"UIKit.SelectInput.placeholder": "选择...",
"UIKit.TimeInput.placeholder": "小时:分钟 上午/下午"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chinese doesn't use am/pm, and when the "value" is displayed and formatted with moment, it's shown in 24 hour time.

"UIKit.DateRangeInput.placeholder": "月/日/年 - 月/日/年",
"UIKit.DateTimeInput.placeholder": "月/日/年 - 小时:分钟 上午/下午",
"UIKit.DateTimeInput.timePlaceholder": "小时:分钟 上午/下午",
"UIKit.DateInput.placeholder": "年/月/日",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moment formats chinese dates to Years/Month/Day.

https://github.com/moment/moment/blob/develop/locale/zh-cn.js

@montezume montezume requested a review from tdeekens July 24, 2019 23:07
@montezume montezume added the 🐛 Type: Bug Something isn't working label Jul 24, 2019
@montezume montezume self-assigned this Jul 24, 2019
@montezume montezume requested a review from jonnybel July 25, 2019 04:18
@montezume montezume merged commit 12737ed into master Jul 25, 2019
@montezume montezume deleted the ml-translations-fix branch July 25, 2019 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants