{
.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);
@@ -274,9 +276,9 @@ export const ListOfGroupPromotions = () => {
const groupId = group.groupId;
const fee = await getFee('JOIN_GROUP');
await show({
- message: t('group:question.perform_transaction', {
+ message: t('core: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..fc63464 100644
--- a/src/components/Group/ListOfInvites.tsx
+++ b/src/components/Group/ListOfInvites.tsx
@@ -94,9 +94,9 @@ export const ListOfInvites = ({
const fee = await getFee('CANCEL_GROUP_INVITE');
await show({
- message: t('group:question.perform_transaction', {
+ message: t('core: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..d996184 100644
--- a/src/components/Group/ManageMembers.tsx
+++ b/src/components/Group/ManageMembers.tsx
@@ -84,9 +84,9 @@ export const ManageMembers = ({
setIsLoadingLeave(true);
const fee = await getFee('LEAVE_GROUP');
await show({
- message: t('group:question.perform_transaction', {
+ message: t('core: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 deac6db..62e7311 100644
--- a/src/components/QMailStatus.tsx
+++ b/src/components/QMailStatus.tsx
@@ -65,8 +65,8 @@ export const QMailStatus = () => {
textTransform: 'uppercase',
}}
>
- {t('core:q_mail', {
- postProcess: 'capitalize',
+ {t('core:q_apps.q_mail', {
+ postProcess: 'capitalizeFirst',
})}
}
diff --git a/src/components/RegisterName.tsx b/src/components/RegisterName.tsx
index f11e9ee..85f4390 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',
+ message: t('core:question.register_name', {
+ 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 d67780a..70faac8 100644
--- a/src/components/Save/Save.tsx
+++ b/src/components/Save/Save.tsx
@@ -155,7 +155,9 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
const fee = await getFee('ARBITRARY');
await show({
- message: t('core:save.publish_qnd', { postProcess: 'capitalize' }),
+ message: t('core:save_options.publish_qnd', {
+ postProcess: 'capitalizeFirst',
+ }),
publishFee: fee.fee + ' QORT',
});
const response = await new Promise((res, rej) => {
@@ -175,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',
+ })
);
});
});
@@ -184,8 +188,8 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
setSettingsQdnLastUpdated(Date.now());
setInfoSnack({
type: 'success',
- message: t('core:message.success.publish_qdn', {
- postProcess: 'capitalize',
+ message: t('core:message.success.published_qdn', {
+ postProcess: 'capitalizeFirst',
}),
});
setOpenSnack(true);
@@ -198,7 +202,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
message:
error?.message ||
t('core:message.error.save_qdn', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
}),
});
setOpenSnack(true);
@@ -231,8 +235,8 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
{isDesktop ? (
{
}}
>
{t('core:save_options.settings', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
{' '}
@@ -332,7 +336,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.qdn', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -363,7 +367,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.register_name', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -384,7 +388,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.unsaved_changes', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -407,8 +411,8 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
onClick={saveToQdn}
variant="contained"
>
- {t('core:save_options.save_qdn', {
- postProcess: 'capitalize',
+ {t('core:action.save_qdn', {
+ postProcess: 'capitalizeFirst',
})}
@@ -420,8 +424,8 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
fontSize: '14px',
}}
>
- {t('core:save_options.reset_qdn', {
- postProcess: 'capitalize',
+ {t('core:question.reset_qdn', {
+ postProcess: 'capitalizeFirst',
})}
@@ -443,7 +447,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.revert_qdn', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
>
@@ -457,8 +461,8 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{' '}
- {t('core:save_options.reset_pinned', {
- postProcess: 'capitalize',
+ {t('core:question.reset_pinned', {
+ postProcess: 'capitalizeFirst',
})}
@@ -468,7 +472,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
variant="contained"
>
{t('core:save_options.revert_default', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
>
@@ -491,8 +495,8 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
fontSize: '14px',
}}
>
- {t('core:save_options.overwrite_changes', {
- postProcess: 'capitalize',
+ {t('core:question.overwrite_changes', {
+ postProcess: 'capitalizeFirst',
})}
@@ -514,7 +518,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.overwrite_qdn', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -534,7 +538,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:save_options.no_pinned_changes', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -591,7 +595,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}}
>
{t('core:action.import', {
- postProcess: 'capitalize',
+ postProcess: 'capitalizeFirst',
})}
@@ -616,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',
diff --git a/src/i18n/locales/en/auth.json b/src/i18n/locales/en/auth.json
index 8a514fa..d212416 100644
--- a/src/i18n/locales/en/auth.json
+++ b/src/i18n/locales/en/auth.json
@@ -37,7 +37,6 @@
"your_accounts": "your saved accounts"
}
},
- "name": "name",
"node": {
"choose": "choose custom node",
"custom_many": "custom nodes",
diff --git a/src/i18n/locales/en/core.json b/src/i18n/locales/en/core.json
index b33a4bf..424c8d0 100644
--- a/src/i18n/locales/en/core.json
+++ b/src/i18n/locales/en/core.json
@@ -1,21 +1,30 @@
{
"action": {
"add": "add",
+ "add_custom_framework": "add custom framework",
"accept": "accept",
+ "access": "access",
"backup_account": "backup account",
"backup_wallet": "backup wallet",
"cancel": "cancel",
"cancel_invitation": "cancel invitation",
"change": "change",
+ "change_file": "change file",
"change_language": "change language",
"choose": "choose",
+ "choose_file": "choose file",
"close": "close",
"continue": "continue",
"continue_logout": "continue to logout",
+ "copy_link": "copy link",
+ "create_apps": "create apps",
+ "create_file": "create file",
"create_thread": "create thread",
+ "choose_logo": "choose a logo",
"choose_name": "choose a name",
"decline": "decline",
"decrypt": "decrypt",
+ "download": "download",
"edit": "edit",
"enter_name": "enter a name",
"export": "export",
@@ -29,21 +38,46 @@
"thread": "new thread"
},
"notify": "notify",
+ "open": "open",
+ "pin": "pin",
+ "pin_app": "pin app",
+ "pin_from_dashboard": "pin from dashboard",
"post": "post",
"post_message": "post message",
"publish": "publish",
+ "publish_app": "publish your app",
"register_name": "register name",
"remove": "remove",
+ "return_apps_dashboard": "return to Apps Dashboard",
"save": "save",
- "start_minting": "start minting"
+ "search_apps": "search for apps",
+ "select_app_type": "select App Type",
+ "select_category": "select Category",
+ "select_name_app": "select Name/App",
+ "start_minting": "start minting",
+ "unpin": "unpin",
+ "unpin_app": "unpin app",
+ "unpin_from_dashboard": "unpin from dashboard",
+ "update": "update",
+ "update_app": "update your app"
},
"admin": "admin",
+ "all": "all",
+ "api": "API",
+ "app": "app",
+ "app_name": "app name",
+ "app_service_type": "app service type",
+ "apps_dashboard": "apps Dashboard",
+ "apps_official": "official Apps",
+ "category": "category",
+ "category_other": "categories",
"core": {
"block_height": "block height",
"information": "core information",
"peers": "connected peers",
"version": "core version"
},
+ "domain": "domain",
"ui": {
"version": "UI version"
},
@@ -52,14 +86,18 @@
"one": "one"
},
"description": "description",
+ "devmode_apps": "dev Mode Apps",
+ "directory": "directory",
"downloading_qdn": "downloading from QDN",
"fee": {
"payment": "payment fee",
"publish": "publish fee"
},
"general_settings": "general settings",
+ "identifier": "identifier",
"last_height": "last height",
"level": "level",
+ "library": "library",
"list": {
"invite": "invite list",
"join_request": "join request list",
@@ -71,21 +109,43 @@
"message": {
"error": {
"address_not_found": "your address was not found",
+ "app_need_name": "your app needs a name",
+ "file_too_large": "file {{ filename }} is too large. Max size allowed is {{ size }} MB.",
"generic": "an error occurred",
"incorrect_password": "incorrect password",
+ "invalid_zip": "invalid zip",
"minting_account_add": "unable to add minting account",
"minting_account_remove": "unable to remove minting account",
- "missing_field": "missing: {{ field }}",
- "save_qdn": "unable to save to QDN"
+ "missing_fields": "missing: {{ fields }}",
+ "navigation_timeout": "navigation timeout",
+ "publish_app": "unable to publish app",
+ "rating_option": "cannot find rating option",
+ "save_qdn": "unable to save to QDN",
+ "unable_encrypt_app": "unable to encrypt app. App not published'",
+ "unable_publish_app": "unable to publish app",
+ "unable_rate": "unable to rate"
},
"generic": {
+ "devmode_local_node": "please use your local node for dev mode! Logout and use Local node.",
"name_available": "{{ name }} is available",
"name_benefits": "benefits of a name",
"name_checking": "checking if name already exists",
+ "name_preview": "you need a name to use preview",
+ "name_publish": "you need a Qortal name to publish",
+ "name_rate": "you need a name to rate.",
"name_registration": "your balance is {{ balance }} QORT. A name registration requires a {{ fee }} QORT fee",
"name_unavailable": "{{ name }} is unavailable",
+ "no_description": "no description",
+ "no_notifications": "no new notifications",
+ "no_results": "no results",
+ "one_app_per_name": "note: Currently, only one App and Website is allowed per Name.",
"publish_data": "publish data to Qortal: anything from apps to videos. Fully decentralized!",
- "secure_ownership": "secure ownership of data published by your name. You can even sell your name, along with your data to a third party."
+ "publishing": "publishing... Please wait.",
+ "rating": "rating for {{ service }} {{ name }}",
+ "secure_ownership": "secure ownership of data published by your name. You can even sell your name, along with your data to a third party.",
+ "select_file": "please select a file",
+ "select_image": "please select an image for a logo",
+ "select_zip": "select .zip file containing static content:"
},
"question": {
"new_user": "are you a new user?"
@@ -98,12 +158,17 @@
},
"success": {
"order_submitted": "your buy order was submitted",
- "publish_qdn": "successfully published to QDN",
+ "published": "successfully published. Please wait a couple minutes for the network to propogate the changes.",
+ "published_qdn": "successfully published to QDN",
+ "rated_app": "successfully rated. Please wait a couple minutes for the network to propogate the changes.",
"request_read": "I have read this request",
"transfer": "the transfer was succesful!"
}
},
"minting_status": "minting status",
+ "name": "name",
+ "name_app": "name/App",
+ "none": "none",
"page": {
"last": "last",
"first": "first",
@@ -111,26 +176,39 @@
"previous": "previous"
},
"payment_notification": "payment notification",
+ "port": "port",
"price": "price",
- "q_mail": "q-mail",
+ "q_apps": {
+ "about": "about this Q-App",
+ "q_mail": "q-mail",
+ "q_sandbox": "q-Sandbox"
+ },
+ "question": {
+ "perform_transaction": "would you like to perform a {{action}} transaction?",
+ "provide_thread": "please provide a thread title",
+ "publish_app": "would you like to publish this app?",
+ "publish_qdn": "would you like to publish your settings to QDN (encrypted)?",
+ "overwrite_changes": "the app was unable to download your existing QDN-saved pinned apps. Would you like to overwrite those changes?",
+ "rate_app": "would you like to rate this app a rating of {{ rate }}?. It will create a POLL tx.",
+ "register_name": "would you like to register this name?",
+ "reset_pinned": "don't like your current local changes? Would you like to reset to the default pinned apps?",
+ "reset_qdn": "don't like your current local changes? Would you like to reset to your saved QDN pinned apps?"
+ },
"save_options": {
"no_pinned_changes": "you currently do not have any changes to your pinned apps",
- "overwrite_changes": "the app was unable to download your existing QDN-saved pinned apps. Would you like to overwrite those changes?",
"overwrite_qdn": "overwrite to QDN",
- "publish_qdn": "would you like to publish your settings to QDN (encrypted)?",
"qdn": "use QDN saving",
"register_name": "you need a registered Qortal name to save your pinned apps to QDN.",
- "reset_pinned": "don't like your current local changes? Would you like to reset to the default pinned apps?",
- "reset_qdn": "don't like your current local changes? Would you like to reset to your saved QDN pinned apps?",
"revert_default": "revert to default",
"revert_qdn": "revert to QDN",
"save_qdn": "save to QDN",
- "save": "save",
"settings": "you are using the export/import way of saving settings.",
- "unsaved_changes": " you have unsaved changes to your pinned apps. Save them to QDN."
+ "unsaved_changes": "you have unsaved changes to your pinned apps. Save them to QDN."
},
+ "server": "server",
"settings": "settings",
"supply": "supply",
+ "tags": "tags",
"theme": {
"dark": "dark mode",
"light": "light mode"
@@ -146,9 +224,11 @@
"title": "title",
"tutorial": "tutorial",
"user_lookup": "user lookup",
+ "zip": "zip",
"wallet": {
"wallet": "wallet",
"wallet_other": "wallets"
},
+ "website": "website",
"welcome": "welcome"
}
diff --git a/src/i18n/locales/en/group.json b/src/i18n/locales/en/group.json
index 7a8cc23..21cb914 100644
--- a/src/i18n/locales/en/group.json
+++ b/src/i18n/locales/en/group.json
@@ -78,6 +78,7 @@
"no_selection": "no group selected",
"not_part_group": "you are not part of the encrypted group of members. Wait until an admin re-encrypts the keys.",
"only_encrypted": "only unencrypted messages will be displayed.",
+ "only_private_groups": "only private groups will be shown",
"private_key_copied": "private key copied",
"provide_message": "please provide a first message to the thread",
"secure_place": "keep your private key in a secure place. Do not share!",
@@ -132,10 +133,5 @@
"user_joined": "user successfully joined!"
}
},
- "question": {
- "perform_transaction": "would you like to perform a {{action}} transaction?",
- "provide_thread": "please provide a thread title",
- "register_name": "would you like to register this name?"
- },
"thread_posts": "new thread posts"
}