{
.catch((error) => {
rej(
error.message ||
- t('core:message.error.generic', { postProcess: 'capitalize' })
+ t('core:message.error.generic', {
+ postProcess: 'capitalizeFirst',
+ })
);
});
});
setInfoSnack({
type: 'success',
message: t('group:message.success.group_promotion', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
});
setOpenSnack(true);
@@ -260,7 +262,7 @@ export const ListOfGroupPromotions = () => {
message:
error?.message ||
t('group:message.error.group_promotion', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
});
setOpenSnack(true);
@@ -276,7 +278,7 @@ export const ListOfGroupPromotions = () => {
await show({
message: t('group:question.perform_transaction', {
action: 'JOIN_GROUP',
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
publishFee: fee.fee + ' QORT',
});
@@ -291,7 +293,7 @@ export const ListOfGroupPromotions = () => {
setInfoSnack({
type: 'success',
message: t('group:message.success.group_join', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
});
@@ -302,11 +304,11 @@ export const ListOfGroupPromotions = () => {
type: 'joined-group',
label: t('group:message.success.group_join_label', {
group_name: group?.groupName,
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
labelDone: t('group:message.success.group_join_label', {
group_name: group?.groupName,
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
done: false,
groupId,
@@ -320,11 +322,11 @@ export const ListOfGroupPromotions = () => {
type: 'joined-group-request',
label: t('group:message.success.group_join_request', {
group_name: group?.groupName,
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
labelDone: t('group:message.success.group_join_outcome', {
group_name: group?.groupName,
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
done: false,
groupId,
@@ -350,7 +352,9 @@ export const ListOfGroupPromotions = () => {
type: 'error',
message:
error.message ||
- t('core:message.error.generic', { postProcess: 'capitalize' }),
+ t('core:message.error.generic', {
+ postProcess: 'capitalizeFirst',
+ }),
});
setOpenSnack(true);
rej(error);
@@ -399,7 +403,7 @@ export const ListOfGroupPromotions = () => {
fontSize: '1rem',
}}
>
- {t('group:group.promotions', { postProcess: 'capitalize' })}{' '}
+ {t('group:group.promotions', { postProcess: 'capitalizeFirst' })}{' '}
{promotions.length > 0 && ` (${promotions.length})`}
@@ -458,7 +462,9 @@ export const ListOfGroupPromotions = () => {
fontSize: '12px',
}}
>
- {t('group.action.add_promotion', { postProcess: 'capitalize' })}
+ {t('group.action.add_promotion', {
+ postProcess: 'capitalizeFirst',
+ })}
@@ -505,7 +511,7 @@ export const ListOfGroupPromotions = () => {
}}
>
{t('group.message.generic.no_display', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -570,7 +576,7 @@ export const ListOfGroupPromotions = () => {
fallback={
{t('group.message.generic.invalid_data', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
}
@@ -622,7 +628,7 @@ export const ListOfGroupPromotions = () => {
}}
>
{t('group:group.name', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
: {` ${promotion?.groupName}`}
@@ -634,7 +640,7 @@ export const ListOfGroupPromotions = () => {
}}
>
{t('group:group.member_number', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
: {` ${promotion?.memberCount}`}
@@ -658,7 +664,7 @@ export const ListOfGroupPromotions = () => {
}}
>
{t('group:message.generic.closed_group', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
)}
@@ -681,7 +687,7 @@ export const ListOfGroupPromotions = () => {
onClick={handlePopoverClose}
>
{t('core:action.close', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -697,7 +703,7 @@ export const ListOfGroupPromotions = () => {
}
>
{t('core:action.join', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -783,10 +789,10 @@ export const ListOfGroupPromotions = () => {
>
{promotion?.isOpen
? t('group:group.public', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})
: t('group:group.private', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -822,7 +828,7 @@ export const ListOfGroupPromotions = () => {
}}
>
{t('group:action.join_group', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
: {` ${promotion?.groupName}`}
@@ -850,19 +856,19 @@ export const ListOfGroupPromotions = () => {
aria-describedby="alert-dialog-description"
>
- {t('group:action.promote_group', { postProcess: 'capitalize' })}
+ {t('group:action.promote_group', { postProcess: 'capitalizeFirst' })}
{t('group:message.generic.latest_promotion', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
{t('group:message.generic.max_chars', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
: {fee && fee} {' QORT'}
@@ -878,13 +884,13 @@ export const ListOfGroupPromotions = () => {
>
@@ -936,7 +942,7 @@ export const ListOfGroupPromotions = () => {
onClick={() => setIsShowModal(false)}
>
{t('core:action.close', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
diff --git a/src/components/Group/ListOfInvites.tsx b/src/components/Group/ListOfInvites.tsx
index 50b3424..64927a8 100644
--- a/src/components/Group/ListOfInvites.tsx
+++ b/src/components/Group/ListOfInvites.tsx
@@ -96,7 +96,7 @@ export const ListOfInvites = ({
await show({
message: t('group:question.perform_transaction', {
action: 'CANCEL_GROUP_INVITE',
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
publishFee: fee.fee + ' QORT',
});
@@ -114,7 +114,7 @@ export const ListOfInvites = ({
setInfoSnack({
type: 'success',
message: t('group:message.success.invitation_cancellation', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
});
setOpenSnack(true);
@@ -136,7 +136,7 @@ export const ListOfInvites = ({
message:
error.message ||
t('core:message.error.generic', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
});
setOpenSnack(true);
@@ -196,7 +196,7 @@ export const ListOfInvites = ({
onClick={() => handleCancelInvitation(member?.invitee)}
>
{t('core:action.cancel_invitation', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -229,7 +229,7 @@ export const ListOfInvites = ({
{t('group:invitees_list', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
handleAcceptJoinRequest(member?.joiner)}
>
- {t('core:action.accept', { postProcess: 'capitalize' })}
+ {t('core:action.accept', {
+ postProcess: 'capitalizeFirst',
+ })}
@@ -252,7 +256,7 @@ export const ListOfJoinRequests = ({
return (
-
{t('core:list.join_request', { postProcess: 'capitalize' })}
+
{t('core:list.join_request', { postProcess: 'capitalizeFirst' })}
handleKick(member?.member)}
>
{t('group:action.kick_member', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -337,7 +345,7 @@ const ListOfMembers = ({
onClick={() => handleBan(member?.member)}
>
{t('group:action.ban', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -348,7 +356,7 @@ const ListOfMembers = ({
onClick={() => makeAdmin(member?.member)}
>
{t('group:action.make_admin', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -359,7 +367,7 @@ const ListOfMembers = ({
onClick={() => removeAdmin(member?.member)}
>
{t('group:action.remove_admin', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
>
@@ -394,7 +402,7 @@ const ListOfMembers = ({
}}
>
{t('core:admin', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
)}
@@ -410,7 +418,7 @@ const ListOfMembers = ({
{t('core:list.member', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
{
.catch((error) => {
rej(
error.message ||
- t('core:message.error.generic', { postProcess: 'capitalize' })
+ t('core:message.error.generic', {
+ postProcess: 'capitalizeFirst',
+ })
);
});
});
@@ -85,7 +87,7 @@ export const ListOfThreadPostsWatched = () => {
}}
>
{t('group:thread_posts', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
:
@@ -133,7 +135,7 @@ export const ListOfThreadPostsWatched = () => {
}}
>
{t('group:message.generic.no_display', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
diff --git a/src/components/Group/ManageMembers.tsx b/src/components/Group/ManageMembers.tsx
index 5768f97..db2444a 100644
--- a/src/components/Group/ManageMembers.tsx
+++ b/src/components/Group/ManageMembers.tsx
@@ -86,7 +86,7 @@ export const ManageMembers = ({
await show({
message: t('group:question.perform_transaction', {
action: 'LEAVE_GROUP',
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
publishFee: fee.fee + ' QORT',
});
@@ -104,11 +104,11 @@ export const ManageMembers = ({
type: 'leave-group',
label: t('group:message.success.group_leave_name', {
group_name: selectedGroup?.groupName,
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
labelDone: t('group:message.success.group_leave_label', {
group_name: selectedGroup?.groupName,
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
done: false,
groupId: selectedGroup?.groupId,
@@ -119,7 +119,7 @@ export const ManageMembers = ({
setInfoSnack({
type: 'success',
message: t('group:message.success.group_leave', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
});
setOpenSnack(true);
@@ -130,7 +130,9 @@ export const ManageMembers = ({
.catch((error) => {
rej(
error.message ||
- t('core:message.error.generic', { postProcess: 'capitalize' })
+ t('core:message.error.generic', {
+ postProcess: 'capitalizeFirst',
+ })
);
});
});
@@ -207,7 +209,9 @@ export const ManageMembers = ({
>
- {t('group:action.manage_members', { postProcess: 'capitalize' })}
+ {t('group:action.manage_members', {
+ postProcess: 'capitalizeFirst',
+ })}
- {t('group:group.id', { postProcess: 'capitalize' })}:{' '}
+ {t('group:group.id', { postProcess: 'capitalizeFirst' })}:{' '}
{groupInfo?.groupId}
- {t('group:group.name', { postProcess: 'capitalize' })}:{' '}
+ {t('group:group.name', { postProcess: 'capitalizeFirst' })}:{' '}
{groupInfo?.groupName}
- {t('group:group.member_number', { postProcess: 'capitalize' })}:{' '}
- {groupInfo?.memberCount}
+ {t('group:group.member_number', {
+ postProcess: 'capitalizeFirst',
+ })}
+ : {groupInfo?.memberCount}
- {t('group:join_link', { postProcess: 'capitalize' })}
+ {t('group:join_link', { postProcess: 'capitalizeFirst' })}
@@ -351,7 +357,9 @@ export const ManageMembers = ({
variant="contained"
onClick={handleLeaveGroup}
>
- {t('group:action.leave_group', { postProcess: 'capitalize' })}
+ {t('group:action.leave_group', {
+ postProcess: 'capitalizeFirst',
+ })}
)}
@@ -368,7 +376,9 @@ export const ManageMembers = ({
variant="contained"
onClick={() => getMembersWithNames(selectedGroup?.groupId)}
>
- {t('group:action.load_members', { postProcess: 'capitalize' })}
+ {t('group:action.load_members', {
+ postProcess: 'capitalizeFirst',
+ })}
@@ -465,7 +475,7 @@ export const ManageMembers = ({
open={isLoadingMembers}
info={{
message: t('group:message.generic.loading_members', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
}}
/>
diff --git a/src/components/Group/QMailMessages.tsx b/src/components/Group/QMailMessages.tsx
index b20f519..e2e4ce5 100644
--- a/src/components/Group/QMailMessages.tsx
+++ b/src/components/Group/QMailMessages.tsx
@@ -92,7 +92,9 @@ export const QMailMessages = ({ userName, userAddress }) => {
.catch((error) => {
rej(
error.message ||
- t('core:message.error.generic', { postProcess: 'capitalize' })
+ t('core:message.error.generic', {
+ postProcess: 'capitalizeFirst',
+ })
);
});
});
@@ -155,7 +157,7 @@ export const QMailMessages = ({ userName, userAddress }) => {
fontSize: '1rem',
}}
>
- {t('group:latest_mails', { postProcess: 'capitalize' })}
+ {t('group:latest_mails', { postProcess: 'capitalizeFirst' })}
{
}}
>
{t('group:message.generic.no_display', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
diff --git a/src/components/Group/Settings.tsx b/src/components/Group/Settings.tsx
index 70859d4..6ba7e84 100644
--- a/src/components/Group/Settings.tsx
+++ b/src/components/Group/Settings.tsx
@@ -135,7 +135,9 @@ export const Settings = ({ open, setOpen, rawWallet }) => {
.catch((error) => {
rej(
error.message ||
- t('core:message.error.generic', { postProcess: 'capitalize' })
+ t('core:message.error.generic', {
+ postProcess: 'capitalizeFirst',
+ })
);
});
});
@@ -160,7 +162,7 @@ export const Settings = ({ open, setOpen, rawWallet }) => {
{t('core:general_settings', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -194,7 +196,7 @@ export const Settings = ({ open, setOpen, rawWallet }) => {
}
label={t('group:action.disable_push_notifications', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
/>
{window?.electronAPI && (
@@ -212,7 +214,7 @@ export const Settings = ({ open, setOpen, rawWallet }) => {
/>
}
label={t('group:action.enable_dev_mode', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
/>
)}
@@ -236,7 +238,7 @@ const ExportPrivateKey = ({ rawWallet }) => {
setInfoSnackCustom({
type: 'info',
message: t('group:message.generic.descrypt_wallet', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
});
@@ -260,10 +262,10 @@ const ExportPrivateKey = ({ rawWallet }) => {
message: error?.message
? t('group:message.error.decrypt_wallet', {
errorMessage: error?.message,
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})
: t('group:message.error.descrypt_wallet', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
});
@@ -281,7 +283,7 @@ const ExportPrivateKey = ({ rawWallet }) => {
onClick={() => setIsOpen(true)}
>
{t('group:action.export_private_key', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -292,7 +294,7 @@ const ExportPrivateKey = ({ rawWallet }) => {
>
{t('group:action.export_password', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -305,7 +307,7 @@ const ExportPrivateKey = ({ rawWallet }) => {
>
{t('group:message.generic.secure_place', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -326,7 +328,7 @@ const ExportPrivateKey = ({ rawWallet }) => {
setInfoSnackCustom({
type: 'success',
message: t('group:message.generic.private_key_copied', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
});
@@ -334,7 +336,7 @@ const ExportPrivateKey = ({ rawWallet }) => {
}}
>
{t('group:action.copy_private_key', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}{' '}
@@ -351,13 +353,13 @@ const ExportPrivateKey = ({ rawWallet }) => {
}}
>
{t('group:action.cancel', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
diff --git a/src/components/Group/ThingsToDoInitial.tsx b/src/components/Group/ThingsToDoInitial.tsx
index 94d66ed..f85099e 100644
--- a/src/components/Group/ThingsToDoInitial.tsx
+++ b/src/components/Group/ThingsToDoInitial.tsx
@@ -76,9 +76,9 @@ export const ThingsToDoInitial = ({
}}
>
{!isLoaded
- ? t('core:loading', { postProcess: 'capitalize' })
+ ? t('core:loading', { postProcess: 'capitalizeFirst' })
: t('tutorial:initial.getting_started', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -122,7 +122,7 @@ export const ThingsToDoInitial = ({
},
}}
primary={t('tutorial:initial.6_qort', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
/>
@@ -171,7 +171,7 @@ export const ThingsToDoInitial = ({
},
}}
primary={t('tutorial:initial.register_name', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
/>
{t('core:action.join', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}{' '}
{invite?.groupName}
@@ -217,7 +219,7 @@ export const UserListOfInvites = ({
}
>
{t('group:action.join_group', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -265,7 +267,7 @@ export const UserListOfInvites = ({
>
{t('core:list.invite', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
diff --git a/src/components/Home/NewUsersCTA.tsx b/src/components/Home/NewUsersCTA.tsx
index 7d5a7b1..b5d330b 100644
--- a/src/components/Home/NewUsersCTA.tsx
+++ b/src/components/Home/NewUsersCTA.tsx
@@ -36,13 +36,15 @@ export const NewUsersCTA = ({ balance }) => {
textAlign: 'center',
}}
>
- {t('core:message.question.new_user', { postProcess: 'capitalize' })}
+ {t('core:message.question.new_user', {
+ postProcess: 'capitalizeFirst',
+ })}
- {t('core:message_us', { postProcess: 'capitalize' })}
+ {t('core:message_us', { postProcess: 'capitalizeFirst' })}
diff --git a/src/components/Home/QortPrice.tsx b/src/components/Home/QortPrice.tsx
index a9bd62a..7f0d3ee 100644
--- a/src/components/Home/QortPrice.tsx
+++ b/src/components/Home/QortPrice.tsx
@@ -152,7 +152,7 @@ export const QortPrice = () => {
fontWeight: 'bold',
}}
>
- {t('core:price', { postProcess: 'capitalize' })}
+ {t('core:price', { postProcess: 'capitalizeFirst' })}
{!ltcPerQort ? (
@@ -184,7 +184,7 @@ export const QortPrice = () => {
fontWeight: 'bold',
}}
>
- {t('core:supply', { postProcess: 'capitalize' })}
+ {t('core:supply', { postProcess: 'capitalizeFirst' })}
{!supply ? (
@@ -238,7 +238,7 @@ export const QortPrice = () => {
fontWeight: 'bold',
}}
>
- {t('core:last_height', { postProcess: 'capitalize' })}
+ {t('core:last_height', { postProcess: 'capitalizeFirst' })}
{!lastBlock?.height ? (
diff --git a/src/components/Language/LanguageSelector.tsx b/src/components/Language/LanguageSelector.tsx
index ff78246..19008f5 100644
--- a/src/components/Language/LanguageSelector.tsx
+++ b/src/components/Language/LanguageSelector.tsx
@@ -40,7 +40,7 @@ const LanguageSelector = () => {
{mintingAccounts?.length > 1 && (
{t('group:message.generic.minting_keys_per_node', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
)}
@@ -742,7 +754,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
{mintingAccounts?.length > 0 && (
{t('group:message.generic.node_minting_account', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
)}
@@ -762,7 +774,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
>
{t('group:message.generic.node_minting_key', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -781,7 +793,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
>
{t('group:message.generic.minting_account', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}{' '}
{handleNames(acct?.mintingAccount)}
@@ -807,7 +819,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
variant="contained"
>
{t('group:action.remove_minting_account', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -820,7 +832,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
{mintingAccounts?.length > 1 && (
{t('group:message.generic.minting_keys_per_node_different', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
)}
@@ -846,13 +858,13 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
>
{t('group:message.generic.minter_group', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
{t('group:message.generic.mintership_app', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -882,7 +894,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
variant="contained"
>
{t('group:action.visit_q_mintership', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -903,14 +915,14 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
{!isShowNext && (
{t('group:message.success.rewardshare_creation', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
)}
{isShowNext && (
{t('group:message.success.rewardshare_confirmed', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
)}
@@ -923,7 +935,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
onClick={onOk}
autoFocus
>
- {t('core:page.next', { postProcess: 'capitalize' })}
+ {t('core:page.next', { postProcess: 'capitalizeFirst' })}
@@ -936,7 +948,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
variant="contained"
onClick={() => setIsOpenMinting(false)}
>
- {t('core:action.close', { postProcess: 'capitalize' })}
+ {t('core:action.close', { postProcess: 'capitalizeFirst' })}
diff --git a/src/components/QMailStatus.tsx b/src/components/QMailStatus.tsx
index f88adbb..62e7311 100644
--- a/src/components/QMailStatus.tsx
+++ b/src/components/QMailStatus.tsx
@@ -66,7 +66,7 @@ export const QMailStatus = () => {
}}
>
{t('core:q_apps.q_mail', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
}
diff --git a/src/components/RegisterName.tsx b/src/components/RegisterName.tsx
index f11e9ee..c50f66a 100644
--- a/src/components/RegisterName.tsx
+++ b/src/components/RegisterName.tsx
@@ -115,20 +115,20 @@ export const RegisterName = ({
if (!userInfo?.address)
throw new Error(
t('core:message.error.address_not_found', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})
);
if (!registerNameValue)
throw new Error(
t('core:action.enter_name', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})
);
const fee = await getFee('REGISTER_NAME');
await show({
message: t('group:question.register_name', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
publishFee: fee.fee + ' QORT',
});
@@ -145,7 +145,7 @@ export const RegisterName = ({
setInfoSnack({
type: 'success',
message: t('group:message.success.registered_name', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
});
setIsOpen(false);
@@ -156,12 +156,12 @@ export const RegisterName = ({
...response,
type: 'register-name',
label: t('group:message.success.registered_name_label', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
labelDone: t(
'group:message.success.registered_name_success',
{
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}
),
done: false,
@@ -182,7 +182,9 @@ export const RegisterName = ({
type: 'error',
message:
error.message ||
- t('core:message.error.generic', { postProcess: 'capitalize' }),
+ t('core:message.error.generic', {
+ postProcess: 'capitalizeFirst',
+ }),
});
setOpenSnack(true);
rej(error);
@@ -224,7 +226,7 @@ export const RegisterName = ({
}}
>
@@ -280,7 +282,7 @@ export const RegisterName = ({
{t('core:message.generic.name_available', {
name: registerNameValue,
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -302,7 +304,7 @@ export const RegisterName = ({
{t('core:message.generic.name_unavailable', {
name: registerNameValue,
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -320,7 +322,7 @@ export const RegisterName = ({
{t('core:message.generic.name_checking', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -334,7 +336,7 @@ export const RegisterName = ({
}}
>
{t('core:message.generic.name_benefits', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -352,7 +354,7 @@ export const RegisterName = ({
@@ -367,7 +369,7 @@ export const RegisterName = ({
@@ -384,7 +386,7 @@ export const RegisterName = ({
setRegisterNameValue('');
}}
>
- {t('core:action.close', { postProcess: 'capitalize' })}
+ {t('core:action.close', { postProcess: 'capitalizeFirst' })}
diff --git a/src/components/Save/Save.tsx b/src/components/Save/Save.tsx
index 36edbdd..a75baeb 100644
--- a/src/components/Save/Save.tsx
+++ b/src/components/Save/Save.tsx
@@ -156,7 +156,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
await show({
message: t('core:save_options.publish_qnd', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
publishFee: fee.fee + ' QORT',
});
@@ -177,7 +177,9 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
.catch((error) => {
rej(
error.message ||
- t('core:message.error.generic', { postProcess: 'capitalize' })
+ t('core:message.error.generic', {
+ postProcess: 'capitalizeFirst',
+ })
);
});
});
@@ -187,7 +189,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
setInfoSnack({
type: 'success',
message: t('core:message.success.published_qdn', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
});
setOpenSnack(true);
@@ -200,7 +202,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
message:
error?.message ||
t('core:message.error.save_qdn', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
});
setOpenSnack(true);
@@ -234,7 +236,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
{
}}
>
{t('core:save_options.settings', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
{' '}
@@ -334,7 +336,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.qdn', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -365,7 +367,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.register_name', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -386,7 +388,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.unsaved_changes', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -410,7 +412,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
variant="contained"
>
{t('core:action.save_qdn', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -423,7 +425,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.reset_qdn', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -445,7 +447,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.revert_qdn', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
>
@@ -460,7 +462,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
>
{' '}
{t('core:save_options.reset_pinned', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -470,7 +472,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
variant="contained"
>
{t('core:save_options.revert_default', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
>
@@ -494,7 +496,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.overwrite_changes', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -516,7 +518,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.overwrite_qdn', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -536,7 +538,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.no_pinned_changes', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -593,7 +595,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:action.import', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -618,7 +620,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:action.export', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
diff --git a/src/components/Theme/ThemeSelector.tsx b/src/components/Theme/ThemeSelector.tsx
index bab403c..305b4ab 100644
--- a/src/components/Theme/ThemeSelector.tsx
+++ b/src/components/Theme/ThemeSelector.tsx
@@ -23,10 +23,10 @@ const ThemeSelector = () => {
title={
themeMode === 'dark'
? t('core:theme.light', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})
: t('core:theme.light', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})
}
>
diff --git a/src/components/Tutorials/Tutorials.tsx b/src/components/Tutorials/Tutorials.tsx
index f1a5fe5..f6d3b3b 100644
--- a/src/components/Tutorials/Tutorials.tsx
+++ b/src/components/Tutorials/Tutorials.tsx
@@ -91,7 +91,7 @@ export const Tutorials = () => {
@@ -138,7 +138,7 @@ export const Tutorials = () => {
diff --git a/src/components/Tutorials/useHandleTutorials.tsx b/src/components/Tutorials/useHandleTutorials.tsx
index 597199e..1f5ac33 100644
--- a/src/components/Tutorials/useHandleTutorials.tsx
+++ b/src/components/Tutorials/useHandleTutorials.tsx
@@ -108,7 +108,7 @@ export const useHandleTutorials = () => {
multi: [
{
title: t('tutorial:1_getting_started', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
resource: {
name: 'a-test',
@@ -119,7 +119,7 @@ export const useHandleTutorials = () => {
},
{
title: t('tutorial:2_overview', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
resource: {
name: 'a-test',
@@ -130,7 +130,7 @@ export const useHandleTutorials = () => {
},
{
title: t('tutorial:3_groups', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
resource: {
name: 'a-test',
@@ -141,7 +141,7 @@ export const useHandleTutorials = () => {
},
{
title: t('tutorial:4_obtain_qort', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
resource: {
name: 'a-test',
@@ -163,7 +163,7 @@ export const useHandleTutorials = () => {
multi: [
{
title: t('tutorial:apps.dashboard', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
resource: {
name: 'a-test',
@@ -174,7 +174,7 @@ export const useHandleTutorials = () => {
},
{
title: t('tutorial:apps.navigation', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
resource: {
name: 'a-test',
diff --git a/src/i18n/i18n.ts b/src/i18n/i18n.ts
index 8d267be..23a76a3 100644
--- a/src/i18n/i18n.ts
+++ b/src/i18n/i18n.ts
@@ -2,9 +2,15 @@ import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
-const capitalize = {
+const capitalizeAll = {
type: 'postProcessor',
- name: 'capitalize',
+ name: 'capitalizeAll',
+ process: (value: string) => value.toUpperCase(),
+};
+
+const capitalizeFirst = {
+ type: 'postProcessor',
+ name: 'capitalizeFirst',
process: (value: string) => value.charAt(0).toUpperCase() + value.slice(1),
};
@@ -38,7 +44,8 @@ for (const path in modules) {
i18n
.use(initReactI18next)
.use(LanguageDetector)
- .use(capitalize as any)
+ .use(capitalizeAll as any)
+ .use(capitalizeFirst as any)
.init({
resources,
fallbackLng: 'en',