From 6b05be2362d727347be68e8ae3a5c17315cfaf8c Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Mon, 4 Mar 2024 12:01:31 +0800 Subject: [PATCH] fix: remove dup translation token and rearrange (#4810) --- .../database/grid/grid_overlay/GridTableOverlay.tsx | 8 ++++---- frontend/resources/translations/am-ET.json | 4 ++-- frontend/resources/translations/en.json | 10 ++++------ frontend/resources/translations/it-IT.json | 10 ++++------ frontend/resources/translations/ru-RU.json | 10 ++++------ frontend/resources/translations/zh-CN.json | 10 ++++------ 6 files changed, 22 insertions(+), 30 deletions(-) diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/database/grid/grid_overlay/GridTableOverlay.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/database/grid/grid_overlay/GridTableOverlay.tsx index 128d046259..07ece5dec2 100644 --- a/frontend/appflowy_tauri/src/appflowy_app/components/database/grid/grid_overlay/GridTableOverlay.tsx +++ b/frontend/appflowy_tauri/src/appflowy_app/components/database/grid/grid_overlay/GridTableOverlay.tsx @@ -20,9 +20,9 @@ function GridTableOverlay({ const [openConfirm, setOpenConfirm] = useState(false); const [confirmModalProps, setConfirmModalProps] = useState< | { - onOk: () => Promise; - onCancel: () => void; - } + onOk: () => Promise; + onCancel: () => void; + } | undefined >(undefined); @@ -59,7 +59,7 @@ function GridTableOverlay({ {openConfirm && ( { diff --git a/frontend/resources/translations/am-ET.json b/frontend/resources/translations/am-ET.json index 88d526ae09..f5f11d7495 100644 --- a/frontend/resources/translations/am-ET.json +++ b/frontend/resources/translations/am-ET.json @@ -193,7 +193,7 @@ "editContact": "እውቂያ ያርትዑ" }, "button": { - "OK": "እሺ", + "ok": "እሺ", "cancel": "ይቅር", "signIn": "ይግቡ", "signOut": "ዘግተው ውጣ", @@ -860,4 +860,4 @@ "noResult": "ምንም ውጤቶች የሉም", "caseSensitive": "መጪ" } -} +} \ No newline at end of file diff --git a/frontend/resources/translations/en.json b/frontend/resources/translations/en.json index da6e80825f..71e2ea9909 100644 --- a/frontend/resources/translations/en.json +++ b/frontend/resources/translations/en.json @@ -249,8 +249,6 @@ "helpCenter": "Help Center", "add": "Add", "yes": "Yes", - "Done": "Done", - "Cancel": "Cancel", "clear": "Clear", "remove": "Remove", "dontRemove": "Don't remove", @@ -672,7 +670,8 @@ "empty": "No active sorts", "cannotFindCreatableField": "Cannot find a suitable field to sort by", "deleteAllSorts": "Delete all sorts", - "addSort": "Add new sort" + "addSort": "Add new sort", + "removeSorting": "Would you like to remove sorting?" }, "row": { "duplicate": "Duplicate", @@ -733,8 +732,7 @@ "median": "Median", "min": "Min", "sum": "Sum" - }, - "removeSorting": "Would you like to remove sorting?" + } }, "document": { "menuName": "Document", @@ -1341,4 +1339,4 @@ "userIcon": "User icon" }, "noLogFiles": "There're no log files" -} +} \ No newline at end of file diff --git a/frontend/resources/translations/it-IT.json b/frontend/resources/translations/it-IT.json index ad7a91add2..74d72997f6 100644 --- a/frontend/resources/translations/it-IT.json +++ b/frontend/resources/translations/it-IT.json @@ -238,8 +238,6 @@ "helpCenter": "Centro assistenza", "add": "Aggiungi", "yes": "SÌ", - "Done": "Fatto", - "Cancel": "Annulla", "remove": "Rimuovi", "dontRemove": "Non rimuovere" }, @@ -621,7 +619,8 @@ "cannotFindCreatableField": "Impossibile trovare un campo adatto per l'ordinamento", "deleteAllSorts": "Elimina tutti gli ordinamenti", "addSort": "Aggiungi ordinamento", - "deleteSort": "Elimina ordinamento" + "deleteSort": "Elimina ordinamento", + "removeSorting": "Si desidera rimuovere l'ordinamento?" }, "row": { "duplicate": "Duplicare", @@ -675,8 +674,7 @@ "median": "Medio", "min": "Minimo", "sum": "Somma" - }, - "removeSorting": "Si desidera rimuovere l'ordinamento?" + } }, "document": { "menuName": "Documento", @@ -1266,4 +1264,4 @@ "userIcon": "Icona utente" }, "noLogFiles": "Non ci sono file di log" -} +} \ No newline at end of file diff --git a/frontend/resources/translations/ru-RU.json b/frontend/resources/translations/ru-RU.json index 9a18b75272..68942931d0 100644 --- a/frontend/resources/translations/ru-RU.json +++ b/frontend/resources/translations/ru-RU.json @@ -242,8 +242,6 @@ "helpCenter": "Центр помощи", "add": "Добавить", "yes": "Да", - "Done": "Готово", - "Cancel": "Отмена", "clear": "Очистить", "remove": "Удалить", "dontRemove": "Не удалять", @@ -645,7 +643,8 @@ "empty": "Нет активных сортировок", "cannotFindCreatableField": "Не могу найти подходящее поле для сортировки", "deleteAllSorts": "Удалить все сортировки", - "addSort": "Добавить сортировку" + "addSort": "Добавить сортировку", + "removeSorting": "Убрать сортировку?" }, "row": { "duplicate": "Дублировать", @@ -706,8 +705,7 @@ "median": "Медиана", "min": "Минимум", "sum": "Сумма" - }, - "removeSorting": "Убрать сортировку?" + } }, "document": { "menuName": "Документ", @@ -1315,4 +1313,4 @@ "userIcon": "Пользовательская иконка" }, "noLogFiles": "Нет файлов журналов" -} +} \ No newline at end of file diff --git a/frontend/resources/translations/zh-CN.json b/frontend/resources/translations/zh-CN.json index e2bc243762..da547efc5d 100644 --- a/frontend/resources/translations/zh-CN.json +++ b/frontend/resources/translations/zh-CN.json @@ -242,8 +242,6 @@ "helpCenter": "帮助中心", "add": "添加", "yes": "是", - "Done": "完成", - "Cancel": "取消", "clear": "清空", "remove": "删除", "dontRemove": "请勿删除", @@ -646,7 +644,8 @@ "descending": "降序", "deleteAllSorts": "删除所有排序", "addSort": "添加排序", - "deleteSort": "取消排序" + "deleteSort": "取消排序", + "removeSorting": "你确定要移除排序吗?" }, "row": { "duplicate": "复制", @@ -705,8 +704,7 @@ "median": "中位数", "min": "最小值", "sum": "求和" - }, - "removeSorting": "你确定要移除排序吗?" + } }, "document": { "menuName": "文档", @@ -1293,4 +1291,4 @@ "userIcon": "用户图标" }, "noLogFiles": "没有日志文件" -} +} \ No newline at end of file