Browse Source

fix: tests after change in friendly date format (#2449)

Richard Shiue 2 years ago
parent
commit
8f41a1023c

+ 1 - 1
frontend/appflowy_flutter/assets/translations/en.json

@@ -363,7 +363,7 @@
       "smartEditFixSpelling": "Fix spelling",
       "warning": "⚠️ AI responses can be inaccurate or misleading.",
       "smartEditSummarize": "Summarize",
-      "smartEditImproveWriting":"Improve Writing",
+      "smartEditImproveWriting": "Improve Writing",
       "smartEditCouldNotFetchResult": "Could not fetch result from OpenAI",
       "smartEditCouldNotFetchKey": "Could not fetch OpenAI key",
       "smartEditDisabled": "Connect OpenAI in Settings",

+ 1 - 1
frontend/appflowy_flutter/assets/translations/id-ID.json

@@ -175,7 +175,7 @@
       "numberFormat": "Format angka",
       "dateFormat": "Format tanggal",
       "includeTime": "Sertakan waktu",
-      "dateFormatFriendly": "Bulan Hari,Tahun",
+      "dateFormatFriendly": "Bulan Hari, Tahun",
       "dateFormatISO": "Tahun-Bulan-Hari",
       "dateFormatLocal": "Bulan/Hari/Tahun",
       "dateFormatUS": "Tahun/Bulan/Hari",

+ 1 - 1
frontend/appflowy_flutter/assets/translations/ja-JP.json

@@ -167,7 +167,7 @@
       "numberFormat": "数値書式",
       "dateFormat": "日付書式",
       "includeTime": "時刻を含める",
-      "dateFormatFriendly": "月 日,年",
+      "dateFormatFriendly": "月 日, 年",
       "dateFormatISO": "年-月-日",
       "dateFormatLocal": "月/日/年",
       "dateFormatUS": "年/月/日",

+ 1 - 1
frontend/appflowy_flutter/assets/translations/ko-KR.json

@@ -179,7 +179,7 @@
       "numberFormat": "숫자 형식",
       "dateFormat": "날짜 형식",
       "includeTime": "시간 표시",
-      "dateFormatFriendly": "월 일,년",
+      "dateFormatFriendly": "월 일, 년",
       "dateFormatISO": "년-월-일",
       "dateFormatLocal": "월/일/년",
       "dateFormatUS": "년/월/일",

+ 1 - 1
frontend/appflowy_flutter/assets/translations/pt-BR.json

@@ -275,7 +275,7 @@
       "numberFormat": "Formato numérico",
       "dateFormat": "Formato de data",
       "includeTime": "Incluir hora",
-      "dateFormatFriendly": "Mês Dia,Ano",
+      "dateFormatFriendly": "Mês Dia, Ano",
       "dateFormatISO": "Ano-Mês-Dia",
       "dateFormatLocal": "Mês/Dia/Ano",
       "dateFormatUS": "Ano/Mês/Dia",

+ 1 - 1
frontend/appflowy_flutter/assets/translations/sv.json

@@ -183,7 +183,7 @@
       "numberFormat": "Sifferformat",
       "dateFormat": "Datumformat",
       "includeTime": "Inkludera tid",
-      "dateFormatFriendly": "Månad Dag,År",
+      "dateFormatFriendly": "Månad Dag, År",
       "dateFormatISO": "År-Månad-Dag",
       "dateFormatLocal": "Månad/Dag/År",
       "dateFormatUS": "År/Månad/Dag",

+ 1 - 1
frontend/appflowy_flutter/assets/translations/zh-CN.json

@@ -183,7 +183,7 @@
       "numberFormat": "数字格式",
       "dateFormat": "日期格式",
       "includeTime": "包含时间",
-      "dateFormatFriendly": "月 日,年",
+      "dateFormatFriendly": "月 日, 年",
       "dateFormatISO": "年-月-日",
       "dateFormatLocal": "月/日/年",
       "dateFormatUS": "年/月/日",

+ 1 - 1
frontend/appflowy_flutter/assets/translations/zh-TW.json

@@ -278,7 +278,7 @@
       "numberFormat": "數字格式",
       "dateFormat": "日期格式",
       "includeTime": "包含時間",
-      "dateFormatFriendly": "月 日,年",
+      "dateFormatFriendly": "月 日, 年",
       "dateFormatISO": "年-月-日",
       "dateFormatLocal": "月/日/年",
       "dateFormatUS": "年/月/日",

+ 10 - 10
frontend/rust-lib/flowy-database/src/services/field/type_options/date_type_option/date_tests.rs

@@ -86,7 +86,7 @@ mod tests {
   //           &type_option,
   //           1653609600,
   //           None,
-  //           "May 27,2022 00:00",
+  //           "May 27, 2022 00:00",
   //           true,
   //           &field_rev,
   //         );
@@ -94,7 +94,7 @@ mod tests {
   //           &type_option,
   //           1653609600,
   //           Some("9:00".to_owned()),
-  //           "May 27,2022 09:00",
+  //           "May 27, 2022 09:00",
   //           true,
   //           &field_rev,
   //         );
@@ -102,7 +102,7 @@ mod tests {
   //           &type_option,
   //           1653609600,
   //           Some("23:00".to_owned()),
-  //           "May 27,2022 23:00",
+  //           "May 27, 2022 23:00",
   //           true,
   //           &field_rev,
   //         );
@@ -112,7 +112,7 @@ mod tests {
   //           &type_option,
   //           1653609600,
   //           None,
-  //           "May 27,2022 12:00 AM",
+  //           "May 27, 2022 12:00 AM",
   //           true,
   //           &field_rev,
   //         );
@@ -120,7 +120,7 @@ mod tests {
   //           &type_option,
   //           1653609600,
   //           Some("9:00 AM".to_owned()),
-  //           "May 27,2022 09:00 AM",
+  //           "May 27, 2022 09:00 AM",
   //           true,
   //           &field_rev,
   //         );
@@ -128,7 +128,7 @@ mod tests {
   //           &type_option,
   //           1653609600,
   //           Some("11:23 pm".to_owned()),
-  //           "May 27,2022 11:23 PM",
+  //           "May 27, 2022 11:23 PM",
   //           true,
   //           &field_rev,
   //         );
@@ -155,7 +155,7 @@ mod tests {
       &type_option,
       1653609600,
       Some("1:".to_owned()),
-      "May 27,2022 01:00",
+      "May 27, 2022 01:00",
       true,
       &field_rev,
     );
@@ -170,7 +170,7 @@ mod tests {
   //     &type_option,
   //     1653609600,
   //     Some("".to_owned()),
-  //     "May 27,2022 00:00",
+  //     "May 27, 2022 00:00",
   //     true,
   //     &field_rev,
   //   );
@@ -202,7 +202,7 @@ mod tests {
       &type_option,
       1653609600,
       Some("1:00 am".to_owned()),
-      "May 27,2022 01:00 AM",
+      "May 27, 2022 01:00 AM",
       true,
       &field_rev,
     );
@@ -220,7 +220,7 @@ mod tests {
       &type_option,
       1653609600,
       Some("20:00".to_owned()),
-      "May 27,2022 08:00 PM",
+      "May 27, 2022 08:00 PM",
       true,
       &field_rev,
     );