From 301d7d6f6a1fdf55ba9af583aeee7b7c12d26f29 Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Sat, 24 May 2025 23:23:18 +0200 Subject: [PATCH] Refactor and fix some typos --- src/components/Group/ListOfGroupPromotions.tsx | 7 ++++--- src/components/QortPayment.tsx | 12 ++++++++++-- src/components/RegisterName.tsx | 7 ++++++- src/i18n/locales/it/core.json | 6 +++--- src/i18n/locales/it/group.json | 2 +- 5 files changed, 24 insertions(+), 10 deletions(-) diff --git a/src/components/Group/ListOfGroupPromotions.tsx b/src/components/Group/ListOfGroupPromotions.tsx index 47f6e10..7f255b0 100644 --- a/src/components/Group/ListOfGroupPromotions.tsx +++ b/src/components/Group/ListOfGroupPromotions.tsx @@ -466,7 +466,7 @@ export const ListOfGroupPromotions = () => { fontSize: '12px', }} > - {t('group.action.add_promotion', { + {t('group:action.add_promotion', { postProcess: 'capitalizeFirstChar', })} @@ -474,6 +474,7 @@ export const ListOfGroupPromotions = () => { + { color: 'rgba(255, 255, 255, 0.2)', }} > - {t('group.message.generic.no_display', { + {t('group:message.generic.no_display', { postProcess: 'capitalizeFirstChar', })} @@ -927,7 +928,7 @@ export const ListOfGroupPromotions = () => { { const theme = useTheme(); diff --git a/src/components/RegisterName.tsx b/src/components/RegisterName.tsx index eb988ff..9bc5f5c 100644 --- a/src/components/RegisterName.tsx +++ b/src/components/RegisterName.tsx @@ -215,7 +215,11 @@ export const RegisterName = ({ aria-labelledby="alert-dialog-title" aria-describedby="alert-dialog-description" > - {'Register name'} + + {t('core:action.register_name', { + postProcess: 'capitalizeAll', + })} + +