From 309097a038859d8eed5ac607bbcb2cf7256b6ab4 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Thu, 4 Sep 2025 12:43:38 +0100 Subject: [PATCH] Update word count modal text (#28251) GitOrigin-RevId: 754dd01940ef42092b54eaed4117b93ba08dd816 --- services/web/frontend/extracted-translations.json | 1 + .../components/word-count-modal-content.tsx | 2 +- .../word-count-modal/components/word-counts-client.tsx | 8 ++++---- services/web/locales/en.json | 1 + .../word-count-modal/components/word-count-modal.spec.tsx | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 19e72d7c42..34b8d72f3f 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -1923,6 +1923,7 @@ "total_today": "", "total_with_subtotal_and_tax": "", "total_words": "", + "total_words_lower": "", "track_changes": "", "tracked_change_added": "", "tracked_change_deleted": "", diff --git a/services/web/frontend/js/features/word-count-modal/components/word-count-modal-content.tsx b/services/web/frontend/js/features/word-count-modal/components/word-count-modal-content.tsx index 35851825bb..584f945ccd 100644 --- a/services/web/frontend/js/features/word-count-modal/components/word-count-modal-content.tsx +++ b/services/web/frontend/js/features/word-count-modal/components/word-count-modal-content.tsx @@ -23,7 +23,7 @@ export default function WordCountModalContent({ <> - {t('word_count')}{' '} + {t('word_count_lower')}{' '} = ({ data }) => { - {t('total_words')}: + {t('total_words_lower')}: {numberFormat.format(totals.words)} @@ -141,19 +141,19 @@ export const WordCountsClient: FC<{ data: WordCountData }> = ({ data }) => { - Headers: {data.headers} + {t('headers')}: {data.headers} - Math Inline: {data.mathInline} + {t('inline_math')}: {data.mathInline} - Math Display: {data.mathDisplay} + {t('display_math')}: {data.mathDisplay} diff --git a/services/web/locales/en.json b/services/web/locales/en.json index fe9dbf23ad..431bf06e6b 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -2455,6 +2455,7 @@ "total_today": "Total today", "total_with_subtotal_and_tax": "Total: <0>__total__ (__subtotal__ + __tax__ tax) per year", "total_words": "Total Words", + "total_words_lower": "Total words", "tr": "Turkish", "track_changes": "Track changes", "tracked_change_added": "Added", diff --git a/services/web/test/frontend/features/word-count-modal/components/word-count-modal.spec.tsx b/services/web/test/frontend/features/word-count-modal/components/word-count-modal.spec.tsx index 9fc5887535..009daa7e7b 100644 --- a/services/web/test/frontend/features/word-count-modal/components/word-count-modal.spec.tsx +++ b/services/web/test/frontend/features/word-count-modal/components/word-count-modal.spec.tsx @@ -17,7 +17,7 @@ describe('', function () { ) - cy.findByText('Word Count') + cy.findByText('Word count') cy.findByText(/something went wrong/).should('not.exist') })