-
Notifications
You must be signed in to change notification settings - Fork 26
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
Conversation
@@ -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", |
There was a problem hiding this comment.
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": "小时:分钟 上午/下午" |
There was a problem hiding this comment.
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": "年/月/日", |
There was a problem hiding this comment.
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
Summary
We have some bad translations for our placeholders for dates.