From e0c137ef833d2e376b01e1c0e5f13e4cfd9ee683 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 17 Nov 2026 20:48:25 -0500 Subject: [PATCH] Translations --- app/editor/components/TableFilterMenu.tsx | 8 +++---- shared/editor/plugins/TableFilterPlugin.ts | 4 ++-- shared/i18n/locales/en_US/translation.json | 27 +++++++++++++++++++++- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/app/editor/components/TableFilterMenu.tsx b/app/editor/components/TableFilterMenu.tsx index dbb3b24714..f12b587a62 100644 --- a/app/editor/components/TableFilterMenu.tsx +++ b/app/editor/components/TableFilterMenu.tsx @@ -73,9 +73,9 @@ export const TableFilterMenu = observer(function TableFilterMenu() { if (!summary || summary.visibleRows === summary.totalRows) { return t("Showing all rows"); } - return t("Showing {{ visible }} of {{ total }} rows", { + return t("Showing {{ visible }} of {{ count }} rows", { visible: summary.visibleRows, - total: summary.totalRows, + count: summary.totalRows, }); }, [editor, t]); @@ -403,9 +403,9 @@ const TableFilterForm = observer(function TableFilterForm({ {summary - ? t("{{ visible }} of {{ total }} rows", { + ? t("{{ visible }} of {{ count }} rows", { visible: summary.visibleRows, - total: summary.totalRows, + count: summary.totalRows, }) : null} diff --git a/shared/editor/plugins/TableFilterPlugin.ts b/shared/editor/plugins/TableFilterPlugin.ts index be09e6c222..ce70cc40ee 100644 --- a/shared/editor/plugins/TableFilterPlugin.ts +++ b/shared/editor/plugins/TableFilterPlugin.ts @@ -599,8 +599,8 @@ function buildFilterBar( const label = document.createElement("span"); label.textContent = activeCount ? `${t("{{ count }} filter applied", { count: activeCount })} · ${t( - "{{ visible }} of {{ total }} rows", - { visible: visibleRows, total: totalRows } + "{{ visible }} of {{ count }} rows", + { visible: visibleRows, count: totalRows } )}` : t("Filters cleared for you"); bar.appendChild(label); diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 45cf8ce990..4d1a8dc8f1 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -813,6 +813,26 @@ "Upload file": "Upload file", "Paste a link from {{service}}…": "Paste a link from {{service}}…", "Suggestions": "Suggestions", + "Showing all rows": "Showing all rows", + "Showing {{ visible }} of {{ count }} rows": "Showing {{ visible }} of {{ count }} row", + "Showing {{ visible }} of {{ count }} rows_plural": "Showing {{ visible }} of {{ count }} rows", + "Filter {{ columnName }}": "Filter {{ columnName }}", + "Is": "Is", + "Is not": "Is not", + "Contains": "Contains", + "Does not contain": "Does not contain", + "Is empty": "Is empty", + "Is not empty": "Is not empty", + "Condition": "Condition", + "Search values": "Search values", + "Values": "Values", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Showing {{ shown }} of {{ total }} values. Search to find more.", + "No values match your search.": "No values match your search.", + "This column has no values": "This column has no values", + "{{ visible }} of {{ count }} rows": "{{ visible }} of {{ count }} row", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} of {{ count }} rows", + "Clear": "Clear", + "Text": "Text", "More options": "More options", "Type '/' to insert": "Type '/' to insert", "Keep typing to filter": "Keep typing to filter", @@ -1672,7 +1692,6 @@ "When enabled, email notifications will include content previews": "When enabled, email notifications will include content previews", "Boolean": "Boolean", "Number": "Number", - "Text": "Text", "List": "List", "Could not load events": "Could not load events", "Audit Log": "Audit Log", @@ -2011,6 +2030,12 @@ "Display as card": "Display as card", "Add title": "Add title", "Add content": "Add content", + "Change column filter": "Change column filter", + "Filter column": "Filter column", + "{{ count }} filter applied": "{{ count }} filter applied", + "{{ count }} filter applied_plural": "{{ count }} filters applied", + "Filters cleared for you": "Filters cleared for you", + "Save for everyone": "Save for everyone", "Tomorrow": "Tomorrow", "Group admin": "Group admin", "Member": "Member"