From 8673d994b3cc9f227fbcd3025b4ace808519d035 Mon Sep 17 00:00:00 2001 From: Damien Alleyne <31164683+d-alleyne@users.noreply.github.com> Date: Sun, 3 Nov 2024 14:31:19 -0400 Subject: [PATCH] Fix some theme filters appearing untranslated (#95995) --- client/my-sites/themes/theme-showcase.jsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/client/my-sites/themes/theme-showcase.jsx b/client/my-sites/themes/theme-showcase.jsx index 8ca62d24790de..6b284cdb8af56 100644 --- a/client/my-sites/themes/theme-showcase.jsx +++ b/client/my-sites/themes/theme-showcase.jsx @@ -75,15 +75,21 @@ const optionShape = PropTypes.shape( { const staticFilters = { MYTHEMES: { key: STATIC_FILTERS.MYTHEMES, - text: translate( 'My Themes' ), + get text() { + return translate( 'My Themes' ); + }, }, RECOMMENDED: { key: STATIC_FILTERS.RECOMMENDED, - text: translate( 'Recommended' ), + get text() { + return translate( 'Recommended' ); + }, }, ALL: { key: STATIC_FILTERS.ALL, - text: translate( 'All' ), + get text() { + return translate( 'All' ); + }, }, };