From 31da206c89438f58c78a1c0b2510f04c6d2f5c0b Mon Sep 17 00:00:00 2001 From: Amp Date: Tue, 1 Dec 2026 11:10:21 +0000 Subject: [PATCH 1/2] pluralize response count and toggle insight in form summary Amp-Thread-ID: https://ampcode.com/threads/T-3e928177-4945-4ff7-9204-2a36a24248e4 Co-authored-by: Duncan McClean --- lang/en/messages.php | 3 ++- resources/js/components/forms/summary/Summary.vue | 2 +- .../components/forms/summary/insights/CheckedInsight.vue | 8 +++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lang/en/messages.php b/lang/en/messages.php index 18c72b41063..c8af9746838 100644 --- a/lang/en/messages.php +++ b/lang/en/messages.php @@ -178,7 +178,8 @@ 'form_fields_instructions_instructions' => 'Additional field instructions like this.', 'form_navigation' => 'Form navigation', 'form_summary_add_chart_instructions' => 'Add a chart to start summarizing responses.', - 'form_summary_checked_insight' => 'of users checked the toggle', + 'form_summary_checked_insight_count' => 'respondent checked the toggle|respondents checked the toggle', + 'form_summary_checked_insight_percent' => 'of respondents checked the toggle', 'form_summary_other_breakdown' => ':field: Other breakdown: :values', 'form_export_filtered_description' => 'Exports only the submissions matching the current search and filters.', 'getting_started_widget_collections' => 'Collections hold the different content types that make up your site, helping you stay organized.', diff --git a/resources/js/components/forms/summary/Summary.vue b/resources/js/components/forms/summary/Summary.vue index a9f300f05d8..45bd2319b0f 100644 --- a/resources/js/components/forms/summary/Summary.vue +++ b/resources/js/components/forms/summary/Summary.vue @@ -275,7 +275,7 @@ defineExpose({ refresh: fetchSummary }); />

- {{ __(':count responses', { count: $number.format(summary.total) }) }} + {{ __n(':total response|:total responses', summary.total, { total: $number.format(summary.total) }) }}