Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

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

Richard Shiue8f41a1023c92
diff --git a/frontend/appflowy_flutter/assets/translations/en.json b/frontend/appflowy_flutter/assets/translations/en.json
index b82d80f977..979955f47f 100644
--- a/frontend/appflowy_flutter/assets/translations/en.json
+++ b/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",
diff --git a/frontend/appflowy_flutter/assets/translations/id-ID.json b/frontend/appflowy_flutter/assets/translations/id-ID.json
index 0ffe2323dc..2e6b348b2c 100644
--- a/frontend/appflowy_flutter/assets/translations/id-ID.json
+++ b/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",
diff --git a/frontend/appflowy_flutter/assets/translations/ja-JP.json b/frontend/appflowy_flutter/assets/translations/ja-JP.json
index ffae84c9b0..7b46750779 100644
--- a/frontend/appflowy_flutter/assets/translations/ja-JP.json
+++ b/frontend/appflowy_flutter/assets/translations/ja-JP.json
@@ -167,7 +167,7 @@
"numberFormat": "数値書式",
"dateFormat": "日付書式",
"includeTime": "時刻を含める",
- "dateFormatFriendly": "月 日,年",
+ "dateFormatFriendly": "月 日, 年",
"dateFormatISO": "年-月-日",
"dateFormatLocal": "月/日/年",
"dateFormatUS": "年/月/日",
diff --git a/frontend/appflowy_flutter/assets/translations/ko-KR.json b/frontend/appflowy_flutter/assets/translations/ko-KR.json
index eedf1d5bb0..1ed314b9d6 100644
--- a/frontend/appflowy_flutter/assets/translations/ko-KR.json
+++ b/frontend/appflowy_flutter/assets/translations/ko-KR.json
@@ -179,7 +179,7 @@
"numberFormat": "숫자 형식",
"dateFormat": "날짜 형식",
"includeTime": "시간 표시",
- "dateFormatFriendly": "월 일,년",
+ "dateFormatFriendly": "월 일, 년",
"dateFormatISO": "년-월-일",
"dateFormatLocal": "월/일/년",
"dateFormatUS": "년/월/일",
diff --git a/frontend/appflowy_flutter/assets/translations/pt-BR.json b/frontend/appflowy_flutter/assets/translations/pt-BR.json
index 188b1c1169..2dd0a69ad4 100644
--- a/frontend/appflowy_flutter/assets/translations/pt-BR.json
+++ b/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",
diff --git a/frontend/appflowy_flutter/assets/translations/sv.json b/frontend/appflowy_flutter/assets/translations/sv.json
index aa0306177a..b6bb8c7ab7 100644
--- a/frontend/appflowy_flutter/assets/translations/sv.json
+++ b/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",
diff --git a/frontend/appflowy_flutter/assets/translations/zh-CN.json b/frontend/appflowy_flutter/assets/translations/zh-CN.json
index 91a12d8c77..674dbb3898 100644
--- a/frontend/appflowy_flutter/assets/translations/zh-CN.json
+++ b/frontend/appflowy_flutter/assets/translations/zh-CN.json
@@ -183,7 +183,7 @@
"numberFormat": "数字格式",
"dateFormat": "日期格式",
"includeTime": "包含时间",
- "dateFormatFriendly": "月 日,年",
+ "dateFormatFriendly": "月 日, 年",
"dateFormatISO": "年-月-日",
"dateFormatLocal": "月/日/年",
"dateFormatUS": "年/月/日",
diff --git a/frontend/appflowy_flutter/assets/translations/zh-TW.json b/frontend/appflowy_flutter/assets/translations/zh-TW.json
index cb1236f011..355f137d6b 100644
--- a/frontend/appflowy_flutter/assets/translations/zh-TW.json
+++ b/frontend/appflowy_flutter/assets/translations/zh-TW.json
@@ -278,7 +278,7 @@
"numberFormat": "數字格式",
"dateFormat": "日期格式",
"includeTime": "包含時間",
- "dateFormatFriendly": "月 日,年",
+ "dateFormatFriendly": "月 日, 年",
"dateFormatISO": "年-月-日",
"dateFormatLocal": "月/日/年",
"dateFormatUS": "年/月/日",
diff --git a/frontend/rust-lib/flowy-database/src/services/field/type_options/date_type_option/date_tests.rs b/frontend/rust-lib/flowy-database/src/services/field/type_options/date_type_option/date_tests.rs
index 99468c88b2..2a4ca70333 100644
--- a/frontend/rust-lib/flowy-database/src/services/field/type_options/date_type_option/date_tests.rs
+++ b/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,
);