From 4240cec2e1c29e590b3f035ce9ee93586c672b3e Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Wed, 21 May 2025 20:44:41 +0200 Subject: [PATCH] Add label translations --- src/components/Apps/AppsCategoryDesktop.tsx | 4 +++- src/components/Chat/ChatOptions.tsx | 4 +++- src/components/Group/AddGroup.tsx | 6 ++++-- src/components/Group/AddGroupList.tsx | 10 ++++++++-- .../Group/ListOfGroupPromotions.tsx | 4 +++- src/components/Group/ManageMembers.tsx | 20 ++++++++++++++----- src/components/Theme/ThemeManager.tsx | 15 ++++++++++++-- src/components/Theme/ThemeSelector.tsx | 5 ++--- src/i18n/locales/en/core.json | 15 +++++++++++--- src/i18n/locales/en/group.json | 3 ++- 10 files changed, 65 insertions(+), 21 deletions(-) diff --git a/src/components/Apps/AppsCategoryDesktop.tsx b/src/components/Apps/AppsCategoryDesktop.tsx index bd52a53..4c4a541 100644 --- a/src/components/Apps/AppsCategoryDesktop.tsx +++ b/src/components/Apps/AppsCategoryDesktop.tsx @@ -145,7 +145,9 @@ export const AppsCategoryDesktop = ({ postProcess: 'capitalizeFirstChar', })} inputProps={{ - 'aria-label': 'Search for apps', + 'aria-label': t('core:action.search_apps', { + postProcess: 'capitalizeFirstChar', + }), fontSize: '16px', fontWeight: 400, }} diff --git a/src/components/Chat/ChatOptions.tsx b/src/components/Chat/ChatOptions.tsx index a79a4a2..f4dfb9c 100644 --- a/src/components/Chat/ChatOptions.tsx +++ b/src/components/Chat/ChatOptions.tsx @@ -426,7 +426,9 @@ export const ChatOptions = ({ postProcess: 'capitalizeFirstChar', })} inputProps={{ - 'aria-label': 'Search for apps', + 'aria-label': t('core:action.search_apps', { + postProcess: 'capitalizeFirstChar', + }), fontSize: '16px', fontWeight: 400, }} diff --git a/src/components/Group/AddGroup.tsx b/src/components/Group/AddGroup.tsx index 2028dea..1916aaa 100644 --- a/src/components/Group/AddGroup.tsx +++ b/src/components/Group/AddGroup.tsx @@ -433,7 +433,7 @@ export const AddGroup = ({ address, open, setOpen }) => { }} > @@ -442,7 +442,9 @@ export const AddGroup = ({ address, open, setOpen }) => { labelId="demo-simple-select-label" id="demo-simple-select" value={approvalThreshold} - label="Group Approval Threshold" + label={t('group:group.approval_threshold', { + postProcess: 'capitalizeFirstChar', + })} onChange={handleChangeApprovalThreshold} > diff --git a/src/components/Group/AddGroupList.tsx b/src/components/Group/AddGroupList.tsx index 64c4b3b..eaa7f4d 100644 --- a/src/components/Group/AddGroupList.tsx +++ b/src/components/Group/AddGroupList.tsx @@ -312,9 +312,15 @@ export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => { flexGrow: 1, }} > -

Groups list

+

+ {t('core:list.groups', { + postProcess: 'capitalizeFirstChar', + })} +

{ setCurrentTab(newValue)} sx={{ mt: 2, mb: 2 }} > - - + + @@ -412,6 +422,7 @@ export default function ThemeManager() { +