Prechádzať zdrojové kódy

chore: rewrite UI strings for time format hints

Richard Shiue 2 rokov pred
rodič
commit
2e60459878

+ 2 - 2
frontend/app_flowy/assets/translations/en.json

@@ -222,8 +222,8 @@
   "document": {
     "menuName": "Doc",
     "date": {
-      "timeHintTextInTwelveHour": "12:00 AM",
-      "timeHintTextInTwentyFourHour": "12:00"
+      "timeHintTextInTwelveHour": "01:00 PM",
+      "timeHintTextInTwentyFourHour": "13:00"
     }
   },
   "board": {

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

@@ -210,8 +210,8 @@
   "document": {
     "menuName": "Doc",
     "date": {
-      "timeHintTextInTwelveHour": "12:00 AM",
-      "timeHintTextInTwentyFourHour": "12:00"
+      "timeHintTextInTwelveHour": "01:00 PM",
+      "timeHintTextInTwentyFourHour": "13:00"
     }
   },
   "sideBar": {

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

@@ -208,8 +208,8 @@
   "document": {
     "menuName": "Doc",
     "date": {
-      "timeHintTextInTwelveHour": "12:00 AM",
-      "timeHintTextInTwentyFourHour": "12:00"
+      "timeHintTextInTwelveHour": "01:00 PM",
+      "timeHintTextInTwentyFourHour": "13:00"
     }
   }
 }

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

@@ -211,8 +211,8 @@
   "document": {
     "menuName": "Doc",
     "date": {
-      "timeHintTextInTwelveHour": "12:00 AM",
-      "timeHintTextInTwentyFourHour": "12:00"
+      "timeHintTextInTwelveHour": "01:00 PM",
+      "timeHintTextInTwentyFourHour": "13:00"
     }
   },
   "sideBar": {

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

@@ -200,8 +200,8 @@
       "searchOption": "Поиск"
     },
     "date": {
-      "timeHintTextInTwelveHour": "12:00 AM",
-      "timeHintTextInTwentyFourHour": "12:00"
+      "timeHintTextInTwelveHour": "01:00 PM",
+      "timeHintTextInTwentyFourHour": "13:00"
     }
   },
   "sideBar": {

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

@@ -215,8 +215,8 @@
   "document": {
     "menuName": "文档",
     "date": {
-      "timeHintTextInTwelveHour": "12:00 AM",
-      "timeHintTextInTwentyFourHour": "12:00"
+      "timeHintTextInTwelveHour": "01:00 PM",
+      "timeHintTextInTwentyFourHour": "13:00"
     }
   }
 }

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

@@ -211,8 +211,8 @@
   "document": {
     "menuName": "檔案",
     "date": {
-      "timeHintTextInTwelveHour": "12:00 AM",
-      "timeHintTextInTwentyFourHour": "12:00"
+      "timeHintTextInTwelveHour": "01:00 PM",
+      "timeHintTextInTwentyFourHour": "13:00"
     }
   },
   "sideBar": {

+ 3 - 3
frontend/app_flowy/lib/plugins/grid/application/cell/date_cal_bloc.dart

@@ -119,13 +119,13 @@ class DateCalBloc extends Bloc<DateCalEvent, DateCalState> {
   }
 
   String timeFormatPrompt(FlowyError error) {
-    String msg = "${LocaleKeys.grid_field_invalidTimeFormat.tr()}. ";
+    String msg = "${LocaleKeys.grid_field_invalidTimeFormat.tr()}.";
     switch (state.dateTypeOptionPB.timeFormat) {
       case TimeFormat.TwelveHour:
-        msg = "${msg}e.g. 01: 00 AM";
+        msg = "$msg e.g. 01:00 PM";
         break;
       case TimeFormat.TwentyFourHour:
-        msg = "${msg}e.g. 13: 00";
+        msg = "$msg e.g. 13:00";
         break;
       default:
         break;