Skip to content

Commit 2e60459

Browse files
committed
chore: rewrite UI strings for time format hints
1 parent 3e75b1a commit 2e60459

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

frontend/app_flowy/assets/translations/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@
222222
"document": {
223223
"menuName": "Doc",
224224
"date": {
225-
"timeHintTextInTwelveHour": "12:00 AM",
226-
"timeHintTextInTwentyFourHour": "12:00"
225+
"timeHintTextInTwelveHour": "01:00 PM",
226+
"timeHintTextInTwentyFourHour": "13:00"
227227
}
228228
},
229229
"board": {

frontend/app_flowy/assets/translations/es-VE.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@
210210
"document": {
211211
"menuName": "Doc",
212212
"date": {
213-
"timeHintTextInTwelveHour": "12:00 AM",
214-
"timeHintTextInTwentyFourHour": "12:00"
213+
"timeHintTextInTwelveHour": "01:00 PM",
214+
"timeHintTextInTwentyFourHour": "13:00"
215215
}
216216
},
217217
"sideBar": {

frontend/app_flowy/assets/translations/fr-FR.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@
208208
"document": {
209209
"menuName": "Doc",
210210
"date": {
211-
"timeHintTextInTwelveHour": "12:00 AM",
212-
"timeHintTextInTwentyFourHour": "12:00"
211+
"timeHintTextInTwelveHour": "01:00 PM",
212+
"timeHintTextInTwentyFourHour": "13:00"
213213
}
214214
}
215215
}

frontend/app_flowy/assets/translations/id-ID.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@
211211
"document": {
212212
"menuName": "Doc",
213213
"date": {
214-
"timeHintTextInTwelveHour": "12:00 AM",
215-
"timeHintTextInTwentyFourHour": "12:00"
214+
"timeHintTextInTwelveHour": "01:00 PM",
215+
"timeHintTextInTwentyFourHour": "13:00"
216216
}
217217
},
218218
"sideBar": {

frontend/app_flowy/assets/translations/ru-RU.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@
200200
"searchOption": "Поиск"
201201
},
202202
"date": {
203-
"timeHintTextInTwelveHour": "12:00 AM",
204-
"timeHintTextInTwentyFourHour": "12:00"
203+
"timeHintTextInTwelveHour": "01:00 PM",
204+
"timeHintTextInTwentyFourHour": "13:00"
205205
}
206206
},
207207
"sideBar": {

frontend/app_flowy/assets/translations/zh-CN.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@
215215
"document": {
216216
"menuName": "文档",
217217
"date": {
218-
"timeHintTextInTwelveHour": "12:00 AM",
219-
"timeHintTextInTwentyFourHour": "12:00"
218+
"timeHintTextInTwelveHour": "01:00 PM",
219+
"timeHintTextInTwentyFourHour": "13:00"
220220
}
221221
}
222222
}

frontend/app_flowy/assets/translations/zh-TW.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@
211211
"document": {
212212
"menuName": "檔案",
213213
"date": {
214-
"timeHintTextInTwelveHour": "12:00 AM",
215-
"timeHintTextInTwentyFourHour": "12:00"
214+
"timeHintTextInTwelveHour": "01:00 PM",
215+
"timeHintTextInTwentyFourHour": "13:00"
216216
}
217217
},
218218
"sideBar": {

frontend/app_flowy/lib/plugins/grid/application/cell/date_cal_bloc.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ class DateCalBloc extends Bloc<DateCalEvent, DateCalState> {
119119
}
120120

121121
String timeFormatPrompt(FlowyError error) {
122-
String msg = "${LocaleKeys.grid_field_invalidTimeFormat.tr()}. ";
122+
String msg = "${LocaleKeys.grid_field_invalidTimeFormat.tr()}.";
123123
switch (state.dateTypeOptionPB.timeFormat) {
124124
case TimeFormat.TwelveHour:
125-
msg = "${msg}e.g. 01: 00 AM";
125+
msg = "$msg e.g. 01:00 PM";
126126
break;
127127
case TimeFormat.TwentyFourHour:
128-
msg = "${msg}e.g. 13: 00";
128+
msg = "$msg e.g. 13:00";
129129
break;
130130
default:
131131
break;

0 commit comments

Comments
 (0)