mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-06 00:16:58 +00:00
CapitalizeFirst and CapitalizeAll
This commit is contained in:
parent
d93262fc92
commit
45e5e9b660
@ -7,4 +7,4 @@ In JSON file:
|
||||
|
||||
In GUI:
|
||||
|
||||
- If the first letter of the translation must be uppercase, use the postProcess, for example: `{t_auth('advanced_users', { postProcess: 'capitalize' })}`
|
||||
- If the first letter of the translation must be uppercase, use the postProcess, for example: `{t_auth('advanced_users', { postProcess: 'capitalizeFirst' })}`
|
||||
|
56
src/App.tsx
56
src/App.tsx
@ -2514,7 +2514,9 @@ function App() {
|
||||
setExtstate('create-wallet');
|
||||
}}
|
||||
>
|
||||
{t('auth:action.create_account', { postProcess: 'capitalize' })}
|
||||
{t('auth:action.create_account', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomButton>
|
||||
</>
|
||||
)}
|
||||
@ -2611,7 +2613,9 @@ function App() {
|
||||
fontWeight: 600,
|
||||
}}
|
||||
>
|
||||
{t('auth:action.authenticate', { postProcess: 'capitalize' })}
|
||||
{t('auth:action.authenticate', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</TextP>
|
||||
</Box>
|
||||
|
||||
@ -2619,7 +2623,7 @@ function App() {
|
||||
|
||||
<>
|
||||
<CustomLabel htmlFor="standard-adornment-password">
|
||||
{t('auth:wallet.password', { postProcess: 'capitalize' })}
|
||||
{t('auth:wallet.password', { postProcess: 'capitalizeFirst' })}
|
||||
</CustomLabel>
|
||||
|
||||
<Spacer height="5px" />
|
||||
@ -2643,7 +2647,7 @@ function App() {
|
||||
fontSize: '12px',
|
||||
}}
|
||||
>
|
||||
{t('auth:node.using', { postProcess: 'capitalize' })}:{' '}
|
||||
{t('auth:node.using', { postProcess: 'capitalizeFirst' })}:{' '}
|
||||
{currentNode?.url}
|
||||
</Typography>
|
||||
</>
|
||||
@ -2655,7 +2659,9 @@ function App() {
|
||||
fontSize: '12px',
|
||||
}}
|
||||
>
|
||||
{t('auth:node.using_public', { postProcess: 'capitalize' })}
|
||||
{t('auth:node.using_public', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</>
|
||||
)}
|
||||
@ -2663,7 +2669,9 @@ function App() {
|
||||
<Spacer height="20px" />
|
||||
|
||||
<CustomButton onClick={authenticateWallet}>
|
||||
{t('auth:action.authenticate', { postProcess: 'capitalize' })}
|
||||
{t('auth:action.authenticate', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomButton>
|
||||
|
||||
<ErrorText>{walletToBeDecryptedError}</ErrorText>
|
||||
@ -2932,7 +2940,7 @@ function App() {
|
||||
|
||||
<CustomButton onClick={createAccountFunc}>
|
||||
{t('auth:action.create_account', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomButton>
|
||||
</Box>
|
||||
@ -2978,7 +2986,7 @@ function App() {
|
||||
}}
|
||||
>
|
||||
{t('core:action.backup_account', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomButton>
|
||||
</>
|
||||
@ -3008,7 +3016,7 @@ function App() {
|
||||
}}
|
||||
>
|
||||
{t('core:message.success.transfer', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</TextP>
|
||||
<Spacer height="100px" />
|
||||
@ -3019,7 +3027,7 @@ function App() {
|
||||
}}
|
||||
>
|
||||
<CustomButton>
|
||||
{t('core:action.continue', { postProcess: 'capitalize' })}
|
||||
{t('core:action.continue', { postProcess: 'capitalizeFirst' })}
|
||||
</CustomButton>
|
||||
</ButtonBase>
|
||||
</Box>
|
||||
@ -3036,7 +3044,7 @@ function App() {
|
||||
}}
|
||||
>
|
||||
{t('core:message.success.transfer', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</TextP>
|
||||
<Spacer height="100px" />
|
||||
@ -3045,7 +3053,7 @@ function App() {
|
||||
window.close();
|
||||
}}
|
||||
>
|
||||
{t('core:action.continue', { postProcess: 'capitalize' })}
|
||||
{t('core:action.continue', { postProcess: 'capitalizeFirst' })}
|
||||
</CustomButton>
|
||||
</>
|
||||
)}
|
||||
@ -3061,7 +3069,7 @@ function App() {
|
||||
}}
|
||||
>
|
||||
{t('core:message.success.order_submitted', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</TextP>
|
||||
<Spacer height="100px" />
|
||||
@ -3070,7 +3078,7 @@ function App() {
|
||||
window.close();
|
||||
}}
|
||||
>
|
||||
{t('core:action.close', { postProcess: 'capitalize' })}
|
||||
{t('core:action.close', { postProcess: 'capitalizeFirst' })}
|
||||
</CustomButton>
|
||||
</>
|
||||
)}
|
||||
@ -3119,7 +3127,7 @@ function App() {
|
||||
{message?.paymentFee && (
|
||||
<DialogContentText id="alert-dialog-description2">
|
||||
{t('core:fee.payment', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
: {message.paymentFee}
|
||||
</DialogContentText>
|
||||
@ -3127,7 +3135,7 @@ function App() {
|
||||
{message?.publishFee && (
|
||||
<DialogContentText id="alert-dialog-description2">
|
||||
{t('core:fee.publish', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
: {message.publishFee}
|
||||
</DialogContentText>
|
||||
@ -3151,7 +3159,7 @@ function App() {
|
||||
autoFocus
|
||||
>
|
||||
{t('core:action.accept', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
<Button
|
||||
@ -3170,7 +3178,7 @@ function App() {
|
||||
onClick={onCancel}
|
||||
>
|
||||
{t('core:action.decline', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
@ -3193,7 +3201,7 @@ function App() {
|
||||
<DialogActions>
|
||||
<Button variant="contained" onClick={onOkInfo} autoFocus>
|
||||
{t('core:action.close', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
@ -3214,7 +3222,7 @@ function App() {
|
||||
<DialogActions>
|
||||
<Button variant="contained" onClick={onCancelUnsavedChanges}>
|
||||
{t('core:action.cancel', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
<Button
|
||||
@ -3223,7 +3231,7 @@ function App() {
|
||||
autoFocus
|
||||
>
|
||||
{t('core:action.continue_logout', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
@ -3502,7 +3510,7 @@ function App() {
|
||||
<Box sx={{ display: 'flex', alignItems: 'center' }}>
|
||||
<Typography sx={{ fontSize: '14px' }}>
|
||||
{t('core:message.success.request_read', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
<PriorityHighIcon color="warning" />
|
||||
@ -3552,7 +3560,7 @@ function App() {
|
||||
}}
|
||||
>
|
||||
{t('core:action.accept', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomButtonAccept>
|
||||
<CustomButtonAccept
|
||||
@ -3564,7 +3572,7 @@ function App() {
|
||||
onClick={() => onCancelQortalRequestExtension()}
|
||||
>
|
||||
{t('core:action.decline', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomButtonAccept>
|
||||
</Box>
|
||||
|
@ -351,7 +351,8 @@ export const NotAuthenticated = ({
|
||||
.catch((error) => {
|
||||
console.error(
|
||||
'Failed to set API key:',
|
||||
error.message || t('core:error', { postProcess: 'capitalize' })
|
||||
error.message ||
|
||||
t('core:error', { postProcess: 'capitalizeFirst' })
|
||||
);
|
||||
});
|
||||
} else {
|
||||
@ -361,7 +362,7 @@ export const NotAuthenticated = ({
|
||||
setInfoSnack({
|
||||
type: 'error',
|
||||
message: t('auth:apikey.select_valid', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -387,7 +388,7 @@ export const NotAuthenticated = ({
|
||||
'Failed to set API key:',
|
||||
error.message ||
|
||||
t('core:error', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
});
|
||||
@ -399,7 +400,7 @@ export const NotAuthenticated = ({
|
||||
message:
|
||||
error?.message ||
|
||||
t('auth:apikey.select_valid', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -481,7 +482,7 @@ export const NotAuthenticated = ({
|
||||
fontSize: '18px',
|
||||
}}
|
||||
>
|
||||
{t('auth:welcome', { postProcess: 'capitalize' })}
|
||||
{t('auth:welcome', { postProcess: 'capitalizeFirst' })}
|
||||
<TextSpan
|
||||
sx={{
|
||||
fontSize: '18px',
|
||||
@ -511,13 +512,13 @@ export const NotAuthenticated = ({
|
||||
fontSize: '16px',
|
||||
}}
|
||||
>
|
||||
{t('auth:tips.digital_id', { postProcess: 'capitalize' })}
|
||||
{t('auth:tips.digital_id', { postProcess: 'capitalizeFirst' })}
|
||||
</Typography>
|
||||
</React.Fragment>
|
||||
}
|
||||
>
|
||||
<CustomButton onClick={() => setExtstate('wallets')}>
|
||||
{t('auth:account.account_many', { postProcess: 'capitalize' })}
|
||||
{t('auth:account.account_many', { postProcess: 'capitalizeFirst' })}
|
||||
</CustomButton>
|
||||
</HtmlTooltip>
|
||||
</Box>
|
||||
@ -542,7 +543,7 @@ export const NotAuthenticated = ({
|
||||
fontSize: '18px',
|
||||
}}
|
||||
>
|
||||
{t('auth:tips.new_users', { postProcess: 'capitalize' })}
|
||||
{t('auth:tips.new_users', { postProcess: 'capitalizeFirst' })}
|
||||
</Typography>
|
||||
<Spacer height="10px" />
|
||||
<Typography
|
||||
@ -551,7 +552,7 @@ export const NotAuthenticated = ({
|
||||
fontSize: '16px',
|
||||
}}
|
||||
>
|
||||
{t('auth:tips.new_account', { postProcess: 'capitalize' })}
|
||||
{t('auth:tips.new_account', { postProcess: 'capitalizeFirst' })}
|
||||
</Typography>
|
||||
</React.Fragment>
|
||||
}
|
||||
@ -572,7 +573,9 @@ export const NotAuthenticated = ({
|
||||
},
|
||||
}}
|
||||
>
|
||||
{t('auth:action.create_account', { postProcess: 'capitalize' })}
|
||||
{t('auth:action.create_account', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomButton>
|
||||
</HtmlTooltip>
|
||||
</Box>
|
||||
@ -585,7 +588,7 @@ export const NotAuthenticated = ({
|
||||
visibility: !useLocalNode && 'hidden',
|
||||
}}
|
||||
>
|
||||
{t('auth:node.using', { postProcess: 'capitalize' })}:{' '}
|
||||
{t('auth:node.using', { postProcess: 'capitalizeFirst' })}:{' '}
|
||||
{currentNode?.url}
|
||||
</Typography>
|
||||
|
||||
@ -613,7 +616,7 @@ export const NotAuthenticated = ({
|
||||
textDecoration: 'underline',
|
||||
}}
|
||||
>
|
||||
{t('auth:advanced_users', { postProcess: 'capitalize' })}
|
||||
{t('auth:advanced_users', { postProcess: 'capitalizeFirst' })}
|
||||
</Typography>
|
||||
<Box
|
||||
sx={{
|
||||
@ -662,8 +665,12 @@ export const NotAuthenticated = ({
|
||||
}
|
||||
label={
|
||||
isLocal
|
||||
? t('auth:node.use_local', { postProcess: 'capitalize' })
|
||||
: t('auth:node.use_custom', { postProcess: 'capitalize' })
|
||||
? t('auth:node.use_local', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
: t('auth:node.use_custom', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
}
|
||||
/>
|
||||
</Box>
|
||||
@ -676,8 +683,12 @@ export const NotAuthenticated = ({
|
||||
component="label"
|
||||
>
|
||||
{apiKey
|
||||
? t('auth:node.use_local', { postProcess: 'capitalize' })
|
||||
: t('auth:apikey.import', { postProcess: 'capitalize' })}
|
||||
? t('auth:node.use_local', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
: t('auth:apikey.import', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
<Typography
|
||||
sx={{
|
||||
@ -685,7 +696,7 @@ export const NotAuthenticated = ({
|
||||
visibility: importedApiKey ? 'visible' : 'hidden',
|
||||
}}
|
||||
>
|
||||
{t('auth:apikey.key', { postProcess: 'capitalize' })}:{' '}
|
||||
{t('auth:apikey.key', { postProcess: 'capitalizeFirst' })}:{' '}
|
||||
{importedApiKey}
|
||||
</Typography>
|
||||
</>
|
||||
@ -698,7 +709,7 @@ export const NotAuthenticated = ({
|
||||
variant="contained"
|
||||
component="label"
|
||||
>
|
||||
{t('auth:node.choose', { postProcess: 'capitalize' })}
|
||||
{t('auth:node.choose', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
</>
|
||||
<Typography
|
||||
@ -707,7 +718,7 @@ export const NotAuthenticated = ({
|
||||
fontSize: '12px',
|
||||
}}
|
||||
>
|
||||
{t('auth:build_version', { postProcess: 'capitalize' })}:
|
||||
{t('auth:build_version', { postProcess: 'capitalizeFirst' })}:
|
||||
{manifestData?.version}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -728,7 +739,7 @@ export const NotAuthenticated = ({
|
||||
>
|
||||
<DialogTitle id="alert-dialog-title">
|
||||
{' '}
|
||||
{t('auth:node.custom_many', { postProcess: 'capitalize' })}:
|
||||
{t('auth:node.custom_many', { postProcess: 'capitalizeFirst' })}:
|
||||
</DialogTitle>
|
||||
<DialogContent>
|
||||
<Box
|
||||
@ -798,7 +809,9 @@ export const NotAuthenticated = ({
|
||||
}}
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:action.choose', { postProcess: 'capitalize' })}
|
||||
{t('core:action.choose', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
</Box>
|
||||
</Box>
|
||||
@ -858,7 +871,7 @@ export const NotAuthenticated = ({
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:action.choose', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
|
||||
@ -873,7 +886,7 @@ export const NotAuthenticated = ({
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:action.edit', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
|
||||
@ -887,7 +900,9 @@ export const NotAuthenticated = ({
|
||||
}}
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:remove', { postProcess: 'capitalize' })}
|
||||
{t('core:remove', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
</Box>
|
||||
</Box>
|
||||
@ -926,7 +941,7 @@ export const NotAuthenticated = ({
|
||||
<DialogActions>
|
||||
{mode === 'list' && (
|
||||
<Button variant="contained" onClick={addCustomNode}>
|
||||
{t('core:action.add', { postProcess: 'capitalize' })}
|
||||
{t('core:action.add', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
)}
|
||||
|
||||
@ -939,7 +954,7 @@ export const NotAuthenticated = ({
|
||||
}}
|
||||
autoFocus
|
||||
>
|
||||
{t('core:action.close', { postProcess: 'capitalize' })}
|
||||
{t('core:action.close', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
@ -954,7 +969,7 @@ export const NotAuthenticated = ({
|
||||
}}
|
||||
>
|
||||
{t('auth:action.return_to_list', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
|
||||
@ -964,7 +979,7 @@ export const NotAuthenticated = ({
|
||||
onClick={() => saveCustomNodes(customNodes)}
|
||||
autoFocus
|
||||
>
|
||||
{t('core:save', { postProcess: 'capitalize' })}
|
||||
{t('core:save', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
@ -979,7 +994,7 @@ export const NotAuthenticated = ({
|
||||
aria-describedby="alert-dialog-description"
|
||||
>
|
||||
<DialogTitle id="alert-dialog-title">
|
||||
{t('auth:apikey.enter', { postProcess: 'capitalize' })}
|
||||
{t('auth:apikey.enter', { postProcess: 'capitalizeFirst' })}
|
||||
</DialogTitle>
|
||||
<DialogContent>
|
||||
<Box
|
||||
@ -998,7 +1013,9 @@ export const NotAuthenticated = ({
|
||||
variant="contained"
|
||||
component="label"
|
||||
>
|
||||
{t('auth:apikey.alternative', { postProcess: 'capitalize' })}
|
||||
{t('auth:apikey.alternative', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
<input
|
||||
type="file"
|
||||
accept=".txt"
|
||||
@ -1053,7 +1070,7 @@ export const NotAuthenticated = ({
|
||||
}}
|
||||
autoFocus
|
||||
>
|
||||
{t('core:save', { postProcess: 'capitalize' })}
|
||||
{t('core:save', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
@ -1063,7 +1080,7 @@ export const NotAuthenticated = ({
|
||||
setShowSelectApiKey(false);
|
||||
}}
|
||||
>
|
||||
{t('core:action.close', { postProcess: 'capitalize' })}
|
||||
{t('core:action.close', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
|
@ -152,7 +152,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
} else {
|
||||
setSeedError(
|
||||
t('auth:message.error.account_creation', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
}
|
||||
@ -160,7 +160,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
setSeedError(
|
||||
error?.message ||
|
||||
t('auth:message.error.account_creation', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
} finally {
|
||||
@ -202,7 +202,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
<>
|
||||
<Typography>
|
||||
{t('auth:message.generic.no_account', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
@ -212,7 +212,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
<>
|
||||
<Typography>
|
||||
{t('auth:message.generic.your_accounts', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
@ -224,7 +224,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
<Box>
|
||||
<Typography>
|
||||
{t('auth:account.selected', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
:
|
||||
</Typography>
|
||||
@ -282,7 +282,9 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
fontSize: '16px',
|
||||
}}
|
||||
>
|
||||
{t('auth:tips.existing_account', { postProcess: 'capitalize' })}
|
||||
{t('auth:tips.existing_account', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Fragment>
|
||||
}
|
||||
@ -294,7 +296,9 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
display: 'inline',
|
||||
}}
|
||||
>
|
||||
{t('auth:action.add.seed_phrase', { postProcess: 'capitalize' })}
|
||||
{t('auth:action.add.seed_phrase', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomButton>
|
||||
</HtmlTooltip>
|
||||
|
||||
@ -309,7 +313,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
}}
|
||||
>
|
||||
{t('auth:tips.additional_wallet', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Fragment>
|
||||
@ -323,7 +327,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
>
|
||||
<input {...getInputProps()} />
|
||||
{t('auth:action.add.account', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomButton>
|
||||
</HtmlTooltip>
|
||||
@ -341,7 +345,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
>
|
||||
<DialogTitle id="alert-dialog-title">
|
||||
{t('auth:message.generic.type_seed', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</DialogTitle>
|
||||
|
||||
@ -354,7 +358,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
>
|
||||
<Label>
|
||||
{t('auth:name', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Label>
|
||||
<Input
|
||||
@ -367,7 +371,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
|
||||
<Label>
|
||||
{t('auth:seed', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Label>
|
||||
<PasswordField
|
||||
@ -385,7 +389,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
|
||||
<Label>
|
||||
{t('auth:action.choose_password', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Label>
|
||||
<PasswordField
|
||||
@ -413,7 +417,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:action.close', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
<LoadingButton
|
||||
@ -427,7 +431,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
||||
autoFocus
|
||||
>
|
||||
{t('core:action.add', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
<Typography
|
||||
@ -516,7 +520,7 @@ const WalletItem = ({ wallet, updateWalletItem, idx, setSelectedWallet }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:action.login', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -546,7 +550,7 @@ const WalletItem = ({ wallet, updateWalletItem, idx, setSelectedWallet }) => {
|
||||
>
|
||||
<Label>
|
||||
{t('auth:name', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Label>
|
||||
<Input
|
||||
@ -562,7 +566,7 @@ const WalletItem = ({ wallet, updateWalletItem, idx, setSelectedWallet }) => {
|
||||
|
||||
<Label>
|
||||
{t('auth:note', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Label>
|
||||
<Input
|
||||
@ -593,7 +597,7 @@ const WalletItem = ({ wallet, updateWalletItem, idx, setSelectedWallet }) => {
|
||||
onClick={() => setIsEdit(false)}
|
||||
>
|
||||
{t('core:action.close', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
<Button
|
||||
@ -611,7 +615,7 @@ const WalletItem = ({ wallet, updateWalletItem, idx, setSelectedWallet }) => {
|
||||
onClick={() => updateWalletItem(idx, null)}
|
||||
>
|
||||
{t('core:action.remove', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
<Button
|
||||
@ -636,7 +640,7 @@ const WalletItem = ({ wallet, updateWalletItem, idx, setSelectedWallet }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:action.save', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
</Box>
|
||||
|
@ -174,10 +174,10 @@ export const AppInfo = ({ app, myName }) => {
|
||||
<AppDownloadButtonText>
|
||||
{isSelectedAppPinned
|
||||
? t('core:action.unpin_from_dashboard', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
: t('core:action.pin_from_dashboard', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</AppDownloadButtonText>
|
||||
</AppDownloadButton>
|
||||
@ -200,10 +200,10 @@ export const AppInfo = ({ app, myName }) => {
|
||||
<AppDownloadButtonText>
|
||||
{isInstalled
|
||||
? t('core:action.open', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
: t('core:action.download', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</AppDownloadButtonText>
|
||||
</AppDownloadButton>
|
||||
@ -229,7 +229,7 @@ export const AppInfo = ({ app, myName }) => {
|
||||
<AppsCategoryInfoSub>
|
||||
<AppsCategoryInfoLabel>
|
||||
{t('core:category', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
:
|
||||
</AppsCategoryInfoLabel>
|
||||
@ -239,7 +239,7 @@ export const AppInfo = ({ app, myName }) => {
|
||||
<AppsCategoryInfoValue>
|
||||
{app?.metadata?.categoryName ||
|
||||
t('core:none', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</AppsCategoryInfoValue>
|
||||
</AppsCategoryInfoSub>
|
||||
@ -249,7 +249,7 @@ export const AppInfo = ({ app, myName }) => {
|
||||
|
||||
<AppInfoAppName>
|
||||
{t('core:q_apps.about', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</AppInfoAppName>
|
||||
</AppsWidthLimiter>
|
||||
@ -259,7 +259,7 @@ export const AppInfo = ({ app, myName }) => {
|
||||
<AppsInfoDescription>
|
||||
{app?.metadata?.description ||
|
||||
t('core:message.generic.no_description', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</AppsInfoDescription>
|
||||
</Box>
|
||||
|
@ -173,10 +173,10 @@ export const AppInfoSnippet = ({
|
||||
<AppDownloadButtonText>
|
||||
{isSelectedAppPinned
|
||||
? t('core:action.unpin', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
: t('core:action.pin', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</AppDownloadButtonText>
|
||||
</AppDownloadButton>
|
||||
@ -196,10 +196,10 @@ export const AppInfoSnippet = ({
|
||||
<AppDownloadButtonText>
|
||||
{isInstalled
|
||||
? t('core:action.open', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
: t('core:action.download', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</AppDownloadButtonText>
|
||||
</AppDownloadButton>
|
||||
|
@ -96,7 +96,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
t('core:message.error.file_too_large', {
|
||||
filename: file.name,
|
||||
size: maxFileSize / (1024 * 1024),
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
}
|
||||
@ -171,7 +171,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
const missingFieldsString = missingFields.join(', ');
|
||||
const errorMsg = t('core:message.error.missing_fields', {
|
||||
fields: missingFieldsString,
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
});
|
||||
throw new Error(errorMsg);
|
||||
}
|
||||
@ -179,13 +179,13 @@ export const AppPublish = ({ names, categories }) => {
|
||||
|
||||
await show({
|
||||
message: t('core:save_options.publish_app', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
setIsLoading(
|
||||
t('core:message.generic.publishing', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
const fileBase64 = await fileToBase64(file);
|
||||
@ -214,14 +214,16 @@ export const AppPublish = ({ names, categories }) => {
|
||||
.catch((error) => {
|
||||
rej(
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' })
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('core:message.success.published', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -244,7 +246,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
message:
|
||||
error?.message ||
|
||||
t('core:message.error.publish_app', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -268,7 +270,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
>
|
||||
<AppLibrarySubTitle>
|
||||
{t('core:action.create_apps', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
!
|
||||
</AppLibrarySubTitle>
|
||||
@ -277,7 +279,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
|
||||
<PublishQAppInfo>
|
||||
{t('core:message.generic.one_app_per_name', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</PublishQAppInfo>
|
||||
|
||||
@ -285,7 +287,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
|
||||
<InputLabel sx={{ fontSize: '14px', marginBottom: '2px' }}>
|
||||
{t('core:name_app', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</InputLabel>
|
||||
|
||||
@ -302,7 +304,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:action.select_name_app', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</em>
|
||||
{/* This is the placeholder item */}
|
||||
@ -316,7 +318,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
|
||||
<InputLabel sx={{ fontSize: '14px', marginBottom: '2px' }}>
|
||||
{t('core:app_service_type', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</InputLabel>
|
||||
|
||||
@ -333,18 +335,18 @@ export const AppPublish = ({ names, categories }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:action.select_app_type', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</em>
|
||||
</CustomMenuItem>
|
||||
<CustomMenuItem value={'APP'}>
|
||||
{t('core:app', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomMenuItem>
|
||||
<CustomMenuItem value={'WEBSITE'}>
|
||||
{t('core:website', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomMenuItem>
|
||||
</CustomSelect>
|
||||
@ -353,7 +355,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
|
||||
<InputLabel sx={{ fontSize: '14px', marginBottom: '2px' }}>
|
||||
{t('core:title', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</InputLabel>
|
||||
|
||||
@ -380,7 +382,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
|
||||
<InputLabel sx={{ fontSize: '14px', marginBottom: '2px' }}>
|
||||
{t('core:description', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</InputLabel>
|
||||
|
||||
@ -407,7 +409,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
|
||||
<InputLabel sx={{ fontSize: '14px', marginBottom: '2px' }}>
|
||||
{t('core:category', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</InputLabel>
|
||||
|
||||
@ -424,7 +426,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:action.select_category', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</em>
|
||||
</CustomMenuItem>
|
||||
@ -441,7 +443,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
|
||||
<InputLabel sx={{ fontSize: '14px', marginBottom: '2px' }}>
|
||||
{t('core:tags', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</InputLabel>
|
||||
|
||||
@ -536,7 +538,9 @@ export const AppPublish = ({ names, categories }) => {
|
||||
<Spacer height="30px" />
|
||||
|
||||
<PublishQAppInfo>
|
||||
{t('core:message.generic.select_zip', { postProcess: 'capitalize' })}
|
||||
{t('core:message.generic.select_zip', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</PublishQAppInfo>
|
||||
|
||||
<Spacer height="10px" />
|
||||
@ -556,7 +560,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
<PublishQAppChoseFile {...getRootProps()}>
|
||||
{' '}
|
||||
<input {...getInputProps()} />
|
||||
{t('core:action.choose_file', { postProcess: 'capitalize' })}
|
||||
{t('core:action.choose_file', { postProcess: 'capitalizeFirst' })}
|
||||
</PublishQAppChoseFile>
|
||||
|
||||
<Spacer height="35px" />
|
||||
@ -567,7 +571,7 @@ export const AppPublish = ({ names, categories }) => {
|
||||
}}
|
||||
onClick={publishApp}
|
||||
>
|
||||
{t('core:action.publish', { postProcess: 'capitalize' })}
|
||||
{t('core:action.publish', { postProcess: 'capitalizeFirst' })}
|
||||
</PublishQAppCTAButton>
|
||||
</AppsWidthLimiter>
|
||||
|
||||
|
@ -106,7 +106,7 @@ export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
|
||||
if (!myName)
|
||||
throw new Error(
|
||||
t('core:message.generic.name_rate', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
if (!app?.name) return;
|
||||
@ -115,7 +115,7 @@ export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
|
||||
await show({
|
||||
message: t('core:message.error.generic', {
|
||||
rate: newValue,
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
@ -126,7 +126,7 @@ export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
|
||||
const pollDescription = t('core:message.error.generic', {
|
||||
name: app.name,
|
||||
service: app.service,
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
});
|
||||
|
||||
await new Promise((res, rej) => {
|
||||
@ -150,7 +150,7 @@ export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('core:message.success.rated_app', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -169,7 +169,7 @@ export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
|
||||
if (isNaN(optionIndex) || optionIndex === -1)
|
||||
throw new Error(
|
||||
t('core:message.error.rating_option', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
await new Promise((res, rej) => {
|
||||
@ -191,7 +191,7 @@ export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('core:message.success.rated_app', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -209,7 +209,7 @@ export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
|
||||
message:
|
||||
error?.message ||
|
||||
t('core:message.error.unable_rate', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
|
@ -24,6 +24,7 @@ import { AppsIcon } from '../../assets/Icons/AppsIcon';
|
||||
import { CoreSyncStatus } from '../CoreSyncStatus';
|
||||
import { MessagingIconFilled } from '../../assets/Icons/MessagingIconFilled';
|
||||
import { useAtom } from 'jotai';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
const uid = new ShortUniqueId({ length: 8 });
|
||||
|
||||
@ -47,9 +48,9 @@ export const AppsDesktop = ({
|
||||
const [categories, setCategories] = useState([]);
|
||||
const iframeRefs = useRef({});
|
||||
const [isEnabledDevMode, setIsEnabledDevMode] = useAtom(enabledDevModeAtom);
|
||||
|
||||
const { showTutorial } = useContext(MyContext);
|
||||
const theme = useTheme();
|
||||
const { t } = useTranslation(['core', 'group']);
|
||||
|
||||
const myApp = useMemo(() => {
|
||||
return availableQapps.find(
|
||||
@ -104,7 +105,6 @@ export const AppsDesktop = ({
|
||||
try {
|
||||
let apps = [];
|
||||
let websites = [];
|
||||
// dispatch(setIsLoadingGlobal(true))
|
||||
const url = `${getBaseApiReact()}/arbitrary/resources/search?service=APP&mode=ALL&limit=0&includestatus=true&includemetadata=true`;
|
||||
|
||||
const response = await fetch(url, {
|
||||
@ -113,6 +113,7 @@ export const AppsDesktop = ({
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
|
||||
if (!response?.ok) return;
|
||||
const responseData = await response.json();
|
||||
const urlWebsites = `${getBaseApiReact()}/arbitrary/resources/search?service=WEBSITE&mode=ALL&limit=0&includestatus=true&includemetadata=true`;
|
||||
@ -123,6 +124,7 @@ export const AppsDesktop = ({
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
|
||||
if (!responseWebsites?.ok) return;
|
||||
const responseDataWebsites = await responseWebsites.json();
|
||||
|
||||
|
@ -76,14 +76,16 @@ export const DownloadWallet = ({
|
||||
if (!keepCurrentPassword && !newPassword) {
|
||||
setWalletToBeDownloadedError(
|
||||
t('auth:wallet.error.missing_new_password', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (!walletToBeDownloadedPassword) {
|
||||
setWalletToBeDownloadedError(
|
||||
t('auth:wallet.error.missing_password', { postProcess: 'capitalize' })
|
||||
t('auth:wallet.error.missing_password', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
return;
|
||||
}
|
||||
@ -157,7 +159,9 @@ export const DownloadWallet = ({
|
||||
fontWeight: 600,
|
||||
}}
|
||||
>
|
||||
{t('auth:action.download_account', { postProcess: 'capitalize' })}
|
||||
{t('auth:action.download_account', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</TextP>
|
||||
</Box>
|
||||
|
||||
@ -167,7 +171,7 @@ export const DownloadWallet = ({
|
||||
<>
|
||||
<CustomLabel htmlFor="standard-adornment-password">
|
||||
{t('auth:wallet.password_confirmation', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomLabel>
|
||||
|
||||
@ -206,7 +210,7 @@ export const DownloadWallet = ({
|
||||
<Box sx={{ display: 'flex', alignItems: 'center' }}>
|
||||
<Typography sx={{ fontSize: '14px' }}>
|
||||
{t('auth:wallet.keep_password', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -217,7 +221,7 @@ export const DownloadWallet = ({
|
||||
<>
|
||||
<CustomLabel htmlFor="standard-adornment-password">
|
||||
{t('auth:wallet.new_password', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomLabel>
|
||||
|
||||
@ -233,7 +237,7 @@ export const DownloadWallet = ({
|
||||
|
||||
<CustomButton onClick={confirmPasswordToDownload}>
|
||||
{t('auth:password_confirmation', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomButton>
|
||||
|
||||
@ -248,13 +252,13 @@ export const DownloadWallet = ({
|
||||
await saveFileToDiskFunc();
|
||||
await showInfo({
|
||||
message: t('auth:message.generic.keep_secure', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
}}
|
||||
>
|
||||
{t('auth:action.download_account', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomButton>
|
||||
</>
|
||||
|
@ -291,7 +291,7 @@ export const GroupAnnouncements = ({
|
||||
await show({
|
||||
message: t('group:question.perform_transaction', {
|
||||
action: 'ARBITRARY',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
|
@ -77,26 +77,26 @@ export const CoreSyncStatus = () => {
|
||||
|
||||
let imagePath = syncingImg;
|
||||
let message = t('core:message.status.synchronizing', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
});
|
||||
|
||||
if (isMintingPossible && !isUsingGateway) {
|
||||
imagePath = syncedMintingImg;
|
||||
message = `${t(`core:message.status.${isSynchronizing ? 'synchronizing' : 'synchronized'}`, { postProcess: 'capitalize' })} ${t('core:message.status.minting')}`;
|
||||
message = `${t(`core:message.status.${isSynchronizing ? 'synchronizing' : 'synchronized'}`, { postProcess: 'capitalizeFirst' })} ${t('core:message.status.minting')}`;
|
||||
} else if (isSynchronizing === true && syncPercent === 99) {
|
||||
imagePath = syncingImg;
|
||||
} else if (isSynchronizing && !isMintingPossible && syncPercent === 100) {
|
||||
imagePath = syncingImg;
|
||||
message = `${t('core:message.status.synchronizing', { postProcess: 'capitalize' })} ${!isUsingGateway ? t('core:message.status.not_minting') : ''}`;
|
||||
message = `${t('core:message.status.synchronizing', { postProcess: 'capitalizeFirst' })} ${!isUsingGateway ? t('core:message.status.not_minting') : ''}`;
|
||||
} else if (!isSynchronizing && !isMintingPossible && syncPercent === 100) {
|
||||
imagePath = syncedImg;
|
||||
message = `${t('core:message.status.synchronized', { postProcess: 'capitalize' })} ${!isUsingGateway ? t('core:message.status.not_minting') : ''}`;
|
||||
message = `${t('core:message.status.synchronized', { postProcess: 'capitalizeFirst' })} ${!isUsingGateway ? t('core:message.status.not_minting') : ''}`;
|
||||
} else if (isSynchronizing && isMintingPossible && syncPercent === 100) {
|
||||
imagePath = syncingImg;
|
||||
message = `${t('core:message.status.synchronizing', { postProcess: 'capitalize' })} ${!isUsingGateway ? t('core:message.status.minting') : ''}`;
|
||||
message = `${t('core:message.status.synchronizing', { postProcess: 'capitalizeFirst' })} ${!isUsingGateway ? t('core:message.status.minting') : ''}`;
|
||||
} else if (!isSynchronizing && isMintingPossible && syncPercent === 100) {
|
||||
imagePath = syncedMintingImg;
|
||||
message = `${t('core:message.status.synchronized', { postProcess: 'capitalize' })} ${!isUsingGateway ? t('core:message.status.minting') : ''}`;
|
||||
message = `${t('core:message.status.synchronized', { postProcess: 'capitalizeFirst' })} ${!isUsingGateway ? t('core:message.status.minting') : ''}`;
|
||||
}
|
||||
|
||||
return (
|
||||
@ -121,36 +121,38 @@ export const CoreSyncStatus = () => {
|
||||
top: '10px',
|
||||
}}
|
||||
>
|
||||
<h3>{t('core:core.information', { postProcess: 'capitalize' })}</h3>
|
||||
<h3>
|
||||
{t('core:core.information', { postProcess: 'capitalizeFirst' })}
|
||||
</h3>
|
||||
|
||||
<h4 className="lineHeight">
|
||||
{t('core:core.version', { postProcess: 'capitalize' })}:{' '}
|
||||
{t('core:core.version', { postProcess: 'capitalizeFirst' })}:{' '}
|
||||
<span style={{ color: '#03a9f4' }}>{buildVersion}</span>
|
||||
</h4>
|
||||
|
||||
<h4 className="lineHeight">{message}</h4>
|
||||
|
||||
<h4 className="lineHeight">
|
||||
{t('core:core.block_height', { postProcess: 'capitalize' })}:{' '}
|
||||
{t('core:core.block_height', { postProcess: 'capitalizeFirst' })}:{' '}
|
||||
<span style={{ color: '#03a9f4' }}>{height || ''}</span>
|
||||
</h4>
|
||||
|
||||
<h4 className="lineHeight">
|
||||
{t('core:core.peers', { postProcess: 'capitalize' })}:{' '}
|
||||
{t('core:core.peers', { postProcess: 'capitalizeFirst' })}:{' '}
|
||||
<span style={{ color: '#03a9f4' }}>
|
||||
{numberOfConnections || ''}
|
||||
</span>
|
||||
</h4>
|
||||
|
||||
<h4 className="lineHeight">
|
||||
{t('auth:node.using_public', { postProcess: 'capitalize' })}:{' '}
|
||||
{t('auth:node.using_public', { postProcess: 'capitalizeFirst' })}:{' '}
|
||||
<span style={{ color: '#03a9f4' }}>
|
||||
{isUsingGateway?.toString()}
|
||||
</span>
|
||||
</h4>
|
||||
|
||||
<h4 className="lineHeight">
|
||||
{t('core:ui.version', { postProcess: 'capitalize' })}:{' '}
|
||||
{t('core:ui.version', { postProcess: 'capitalizeFirst' })}:{' '}
|
||||
<span style={{ color: '#03a9f4' }}>{manifestData.version}</span>
|
||||
</h4>
|
||||
</div>
|
||||
|
@ -46,7 +46,7 @@ export const Explore = ({ setDesktopViewMode }) => {
|
||||
fontSize: '1rem',
|
||||
}}
|
||||
>
|
||||
{t('tutorial:initial.trade_qort', { postProcess: 'capitalize' })}
|
||||
{t('tutorial:initial.trade_qort', { postProcess: 'capitalizeFirst' })}
|
||||
</Typography>
|
||||
</ButtonBase>
|
||||
|
||||
@ -73,7 +73,7 @@ export const Explore = ({ setDesktopViewMode }) => {
|
||||
fontSize: '1rem',
|
||||
}}
|
||||
>
|
||||
{t('tutorial:initial.see_apps', { postProcess: 'capitalize' })}
|
||||
{t('tutorial:initial.see_apps', { postProcess: 'capitalizeFirst' })}
|
||||
</Typography>
|
||||
</ButtonBase>
|
||||
|
||||
@ -102,7 +102,9 @@ export const Explore = ({ setDesktopViewMode }) => {
|
||||
fontSize: '1rem',
|
||||
}}
|
||||
>
|
||||
{t('tutorial:initial.general_chat', { postProcess: 'capitalize' })}
|
||||
{t('tutorial:initial.general_chat', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</ButtonBase>
|
||||
|
||||
@ -129,7 +131,7 @@ export const Explore = ({ setDesktopViewMode }) => {
|
||||
fontSize: '1rem',
|
||||
}}
|
||||
>
|
||||
{t('core:wallet.wallet_other', { postProcess: 'capitalize' })}
|
||||
{t('core:wallet.wallet_other', { postProcess: 'capitalizeFirst' })}
|
||||
</Typography>
|
||||
</ButtonBase>
|
||||
</Box>
|
||||
|
@ -72,7 +72,7 @@ export const JoinGroup = () => {
|
||||
await show({
|
||||
message: t('group:question.perform_transaction', {
|
||||
action: 'JOIN_GROUP',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
@ -89,7 +89,7 @@ export const JoinGroup = () => {
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:message.success.group_join', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
|
||||
@ -100,11 +100,11 @@ export const JoinGroup = () => {
|
||||
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,
|
||||
@ -118,11 +118,11 @@ export const JoinGroup = () => {
|
||||
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,
|
||||
@ -147,7 +147,9 @@ export const JoinGroup = () => {
|
||||
type: 'error',
|
||||
message:
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
rej(error);
|
||||
@ -205,7 +207,7 @@ export const JoinGroup = () => {
|
||||
fontWeight: 600,
|
||||
}}
|
||||
>
|
||||
{t('group:group.name', { postProcess: 'capitalize' })}:{' '}
|
||||
{t('group:group.name', { postProcess: 'capitalizeFirst' })}:{' '}
|
||||
{` ${groupInfo?.groupName}`}
|
||||
</Typography>
|
||||
|
||||
@ -215,8 +217,10 @@ export const JoinGroup = () => {
|
||||
fontWeight: 600,
|
||||
}}
|
||||
>
|
||||
{t('group:group.member_number', { postProcess: 'capitalize' })}:{' '}
|
||||
{` ${groupInfo?.memberCount}`}
|
||||
{t('group:group.member_number', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
: {` ${groupInfo?.memberCount}`}
|
||||
</Typography>
|
||||
|
||||
{groupInfo?.description && (
|
||||
@ -237,7 +241,7 @@ export const JoinGroup = () => {
|
||||
}}
|
||||
>
|
||||
{t('group:message.generic.already_in_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
)}
|
||||
@ -249,7 +253,7 @@ export const JoinGroup = () => {
|
||||
}}
|
||||
>
|
||||
{t('group:message.generic.closed_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
)}
|
||||
@ -276,7 +280,7 @@ export const JoinGroup = () => {
|
||||
}}
|
||||
>
|
||||
{t('core:action.join', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomButtonAccept>
|
||||
</ButtonBase>
|
||||
@ -291,7 +295,7 @@ export const JoinGroup = () => {
|
||||
onClick={() => setIsOpen(false)}
|
||||
>
|
||||
{t('core:action.close', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</CustomButtonAccept>
|
||||
</DialogActions>
|
||||
|
@ -105,13 +105,13 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
if (!name)
|
||||
throw new Error(
|
||||
t('group:message.error.name_required', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
if (!description)
|
||||
throw new Error(
|
||||
t('group:message.error.description_required', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
|
||||
@ -120,7 +120,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
await show({
|
||||
message: t('group:question.perform_transaction', {
|
||||
action: 'CREATE_GROUP',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
@ -140,7 +140,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:message.success.group_creation', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -150,11 +150,11 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
type: 'created-group',
|
||||
label: t('group:message.success.group_creation_name', {
|
||||
group_name: name,
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
labelDone: t('group:message.success.group_creation_label', {
|
||||
group_name: name,
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
done: false,
|
||||
},
|
||||
@ -172,7 +172,9 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
rej({
|
||||
message:
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -225,7 +227,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
>
|
||||
<Toolbar>
|
||||
<Typography sx={{ ml: 2, flex: 1 }} variant="h4" component="div">
|
||||
{t('group:group.management', { postProcess: 'capitalize' })}
|
||||
{t('group:group.management', { postProcess: 'capitalizeFirst' })}
|
||||
</Typography>
|
||||
|
||||
<IconButton
|
||||
@ -267,7 +269,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
>
|
||||
<Tab
|
||||
label={t('group:action.create_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
{...a11yProps(0)}
|
||||
sx={{
|
||||
@ -279,7 +281,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
/>
|
||||
<Tab
|
||||
label={t('group:action.find_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
{...a11yProps(1)}
|
||||
sx={{
|
||||
@ -291,7 +293,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
/>
|
||||
<Tab
|
||||
label={t('group:group.invites', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
{...a11yProps(2)}
|
||||
sx={{
|
||||
@ -328,13 +330,13 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
>
|
||||
<Label>
|
||||
{t('group:group.name', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Label>
|
||||
|
||||
<Input
|
||||
placeholder={t('group:group.name', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
value={name}
|
||||
onChange={(e) => setName(e.target.value)}
|
||||
@ -350,13 +352,13 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
>
|
||||
<Label>
|
||||
{t('group:group.description', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Label>
|
||||
|
||||
<Input
|
||||
placeholder={t('group:group.description', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
value={description}
|
||||
onChange={(e) => setDescription(e.target.value)}
|
||||
@ -372,7 +374,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
>
|
||||
<Label>
|
||||
{t('group:group.type', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Label>
|
||||
|
||||
@ -385,12 +387,12 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
>
|
||||
<MenuItem value={1}>
|
||||
{t('group:group.open', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</MenuItem>
|
||||
<MenuItem value={0}>
|
||||
{t('group:group.closed', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</MenuItem>
|
||||
</Select>
|
||||
@ -407,7 +409,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
>
|
||||
<Typography>
|
||||
{t('group:advanced_options', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
@ -424,7 +426,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
>
|
||||
<Label>
|
||||
{t('group:approval_threshold', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Label>
|
||||
|
||||
@ -437,12 +439,12 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
>
|
||||
<MenuItem value={0}>
|
||||
{t('core:count.none', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</MenuItem>
|
||||
<MenuItem value={1}>
|
||||
{t('core:count.one', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</MenuItem>
|
||||
<MenuItem value={20}>20%</MenuItem>
|
||||
@ -462,7 +464,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
>
|
||||
<Label>
|
||||
{t('group:block_delay.minimum', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Label>
|
||||
|
||||
@ -521,7 +523,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
>
|
||||
<Label>
|
||||
{t('group:block_delay.maximum', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Label>
|
||||
|
||||
@ -582,7 +584,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
onClick={handleCreateGroup}
|
||||
>
|
||||
{t('group:action.create_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
</Box>
|
||||
|
@ -115,7 +115,7 @@ export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => {
|
||||
await show({
|
||||
message: t('group:question.perform_transaction', {
|
||||
action: 'JOIN_GROUP',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
@ -131,7 +131,7 @@ export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => {
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:message.success.join_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
|
||||
@ -142,11 +142,11 @@ export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => {
|
||||
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,
|
||||
@ -160,11 +160,11 @@ export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => {
|
||||
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,
|
||||
@ -243,7 +243,7 @@ export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => {
|
||||
}}
|
||||
>
|
||||
<Typography>
|
||||
{t('core:action.join', { postProcess: 'capitalize' })}{' '}
|
||||
{t('core:action.join', { postProcess: 'capitalizeFirst' })}{' '}
|
||||
{group?.groupName}
|
||||
</Typography>
|
||||
<Typography>
|
||||
@ -257,7 +257,7 @@ export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => {
|
||||
onClick={() => handleJoinGroup(group, group?.isOpen)}
|
||||
>
|
||||
{t('group:action.join_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
</Box>
|
||||
|
@ -170,7 +170,9 @@ export const GroupMail = ({
|
||||
.catch((error) => {
|
||||
rej(
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' })
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -754,7 +756,7 @@ export const GroupMail = ({
|
||||
<ThreadSingleLastMessageP>
|
||||
<ThreadSingleLastMessageSpanP>
|
||||
{t('group:last_message', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
:{' '}
|
||||
</ThreadSingleLastMessageSpanP>
|
||||
@ -791,7 +793,7 @@ export const GroupMail = ({
|
||||
}}
|
||||
>
|
||||
{t('core:page.last', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
<ArrowForwardIosIcon
|
||||
@ -825,7 +827,7 @@ export const GroupMail = ({
|
||||
open={isLoading}
|
||||
info={{
|
||||
message: t('group:message.success.loading_threads', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
}}
|
||||
/>
|
||||
|
@ -183,19 +183,19 @@ export const NewThread = ({
|
||||
|
||||
if (!isMessage && !threadTitle) {
|
||||
errorMsg = t('group:question.provide_thread', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
});
|
||||
}
|
||||
|
||||
if (!name) {
|
||||
errorMsg = t('group:message.error.access_name', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
});
|
||||
}
|
||||
|
||||
if (!groupInfo) {
|
||||
errorMsg = t('group:message.error.group_info', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
});
|
||||
}
|
||||
|
||||
@ -204,7 +204,7 @@ export const NewThread = ({
|
||||
const missingFieldsString = missingFields.join(', ');
|
||||
const errMsg = t('core:message.error.missing_fields', {
|
||||
field: missingFieldsString,
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
});
|
||||
errorMsg = errMsg;
|
||||
}
|
||||
@ -217,7 +217,7 @@ export const NewThread = ({
|
||||
|
||||
if (!htmlContent?.trim() || htmlContent?.trim() === '<p></p>') {
|
||||
const errMsg = t('group:message.generic.provide_message', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
});
|
||||
throw new Error(errMsg);
|
||||
}
|
||||
@ -231,7 +231,7 @@ export const NewThread = ({
|
||||
await show({
|
||||
message: t('group:question.perform_transaction', {
|
||||
action: 'ARBITRARY',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: feeToShow + ' QORT',
|
||||
});
|
||||
@ -257,7 +257,7 @@ export const NewThread = ({
|
||||
isPrivate === false ? null : await getSecretKey(false, true);
|
||||
if (!secretKey && isPrivate) {
|
||||
const errMsg = t('group:message.error.group_secret_key', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
});
|
||||
throw new Error(errMsg);
|
||||
}
|
||||
@ -320,7 +320,7 @@ export const NewThread = ({
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:message.success.thread_creation', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -332,7 +332,7 @@ export const NewThread = ({
|
||||
} else {
|
||||
if (!currentThread) {
|
||||
const errMsg = t('group:message.error.thread_id', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
});
|
||||
throw new Error(errMsg);
|
||||
}
|
||||
@ -360,7 +360,7 @@ export const NewThread = ({
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:message.success.post_creation', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -404,10 +404,10 @@ export const NewThread = ({
|
||||
<ComposeP>
|
||||
{currentThread
|
||||
? t('core:action.new.post', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
: t('core:action.new.thread', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</ComposeP>
|
||||
</ComposeContainer>
|
||||
@ -437,10 +437,10 @@ export const NewThread = ({
|
||||
<NewMessageHeaderP>
|
||||
{isMessage
|
||||
? t('core:action.post_message', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
: t('core:action.new.thread', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</NewMessageHeaderP>
|
||||
|
||||
@ -562,10 +562,10 @@ export const NewThread = ({
|
||||
<NewMessageSendP>
|
||||
{isMessage
|
||||
? t('core:action.post', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
: t('core:action.create_thread', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</NewMessageSendP>
|
||||
|
||||
|
@ -609,7 +609,7 @@ export const Thread = ({
|
||||
<ReturnIcon />
|
||||
<ComposeP>
|
||||
{t('group:action.return_to_thread', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</ComposeP>
|
||||
</ShowMessageReturnButton>
|
||||
@ -688,7 +688,7 @@ export const Thread = ({
|
||||
disabled={!hasFirstPage}
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:page.first', { postProcess: 'capitalize' })}
|
||||
{t('core:page.first', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
@ -707,7 +707,7 @@ export const Thread = ({
|
||||
disabled={!hasPreviousPage}
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:page.previous', { postProcess: 'capitalize' })}
|
||||
{t('core:page.previous', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
@ -726,7 +726,7 @@ export const Thread = ({
|
||||
disabled={!hasNextPage}
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:page.next', { postProcess: 'capitalize' })}
|
||||
{t('core:page.next', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
@ -745,7 +745,7 @@ export const Thread = ({
|
||||
disabled={!hasLastPage}
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:page.last', { postProcess: 'capitalize' })}
|
||||
{t('core:page.last', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
</Box>
|
||||
|
||||
@ -929,7 +929,9 @@ export const Thread = ({
|
||||
fontSize: '18px',
|
||||
}}
|
||||
>
|
||||
{t('core:downloading_qdn', { postProcess: 'capitalize' })}
|
||||
{t('core:downloading_qdn', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
@ -961,7 +963,7 @@ export const Thread = ({
|
||||
}}
|
||||
>
|
||||
{t('group:action.refetch_page', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
</Box>
|
||||
@ -1000,7 +1002,7 @@ export const Thread = ({
|
||||
disabled={!hasFirstPage}
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:page.first', { postProcess: 'capitalize' })}
|
||||
{t('core:page.first', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
@ -1019,7 +1021,7 @@ export const Thread = ({
|
||||
disabled={!hasPreviousPage}
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:page.previous', { postProcess: 'capitalize' })}
|
||||
{t('core:page.previous', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
@ -1038,7 +1040,7 @@ export const Thread = ({
|
||||
disabled={!hasNextPage}
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:page.next', { postProcess: 'capitalize' })}
|
||||
{t('core:page.next', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
@ -1057,7 +1059,7 @@ export const Thread = ({
|
||||
disabled={!hasLastPage}
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:page.last', { postProcess: 'capitalize' })}
|
||||
{t('core:page.last', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
</Box>
|
||||
|
||||
@ -1071,7 +1073,7 @@ export const Thread = ({
|
||||
<LoadingSnackbar
|
||||
open={isLoading}
|
||||
info={{
|
||||
message: t('core:loading_posts', { postProcess: 'capitalize' }),
|
||||
message: t('core:loading_posts', { postProcess: 'capitalizeFirst' }),
|
||||
}}
|
||||
/>
|
||||
</GroupContainer>
|
||||
|
@ -514,7 +514,9 @@ export const Group = ({
|
||||
.catch((error) => {
|
||||
rej(
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' })
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -543,7 +545,9 @@ export const Group = ({
|
||||
.catch((error) => {
|
||||
rej(
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' })
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -575,7 +579,9 @@ export const Group = ({
|
||||
.catch((error) => {
|
||||
rej(
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' })
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -1098,7 +1104,9 @@ export const Group = ({
|
||||
.catch((error) => {
|
||||
rej(
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' })
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -1995,7 +2003,7 @@ export const Group = ({
|
||||
}}
|
||||
>
|
||||
{t('group:message.generic.no_selection', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -2094,7 +2102,7 @@ export const Group = ({
|
||||
{' '}
|
||||
<Typography>
|
||||
{t('group:message.generic.encryption_key', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</div>
|
||||
@ -2120,21 +2128,21 @@ export const Group = ({
|
||||
{' '}
|
||||
<Typography>
|
||||
{t('group:message.generic.not_part_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
<Spacer height="25px" />
|
||||
<Typography>
|
||||
<strong>
|
||||
{t('group:message.generic.only_encrypted', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</strong>
|
||||
</Typography>
|
||||
<Spacer height="25px" />
|
||||
<Typography>
|
||||
{t('group:message.generic.notify_admins', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
<Spacer height="25px" />
|
||||
@ -2156,7 +2164,7 @@ export const Group = ({
|
||||
onClick={() => notifyAdmin(admin)}
|
||||
>
|
||||
{t('core:action.notify', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
</Box>
|
||||
@ -2381,7 +2389,7 @@ export const Group = ({
|
||||
message:
|
||||
isLoadingGroupMessage ||
|
||||
t('group:message.generic.setting_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
}}
|
||||
/>
|
||||
@ -2390,7 +2398,7 @@ export const Group = ({
|
||||
open={isLoadingGroups}
|
||||
info={{
|
||||
message: t('group:message.generic.setting_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
}}
|
||||
/>
|
||||
|
@ -71,7 +71,7 @@ export const GroupInvites = ({ myAddress, setOpenAddGroup }) => {
|
||||
fontSize: '1rem',
|
||||
}}
|
||||
>
|
||||
{t('group:group.invites', { postProcess: 'capitalize' })}{' '}
|
||||
{t('group:group.invites', { postProcess: 'capitalizeFirst' })}{' '}
|
||||
{groupsWithJoinRequests?.length > 0 &&
|
||||
` (${groupsWithJoinRequests?.length})`}
|
||||
</Typography>
|
||||
@ -131,7 +131,7 @@ export const GroupInvites = ({ myAddress, setOpenAddGroup }) => {
|
||||
}}
|
||||
>
|
||||
{t('group:message.generic.no_display', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -181,7 +181,7 @@ export const GroupInvites = ({ myAddress, setOpenAddGroup }) => {
|
||||
}}
|
||||
primary={t('group:message.generic.group_invited_you', {
|
||||
group: group?.groupName,
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
/>
|
||||
</ListItemButton>
|
||||
|
@ -144,7 +144,7 @@ export const GroupJoinRequests = ({
|
||||
fontSize: '1rem',
|
||||
}}
|
||||
>
|
||||
{t('group:join_requests', { postProcess: 'capitalize' })}{' '}
|
||||
{t('group:join_requests', { postProcess: 'capitalizeFirst' })}{' '}
|
||||
{filteredJoinRequests?.filter((group) => group?.data?.length > 0)
|
||||
?.length > 0 &&
|
||||
` (${filteredJoinRequests?.filter((group) => group?.data?.length > 0)?.length})`}
|
||||
@ -207,7 +207,7 @@ export const GroupJoinRequests = ({
|
||||
}}
|
||||
>
|
||||
{t('group:message.generic.no_display', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
@ -85,7 +85,7 @@ export const HomeDesktop = ({
|
||||
padding: '10px',
|
||||
}}
|
||||
>
|
||||
{t('core:welcome', { postProcess: 'capitalize' })}
|
||||
{t('core:welcome', { postProcess: 'capitalizeFirst' })}
|
||||
{userInfo?.name ? (
|
||||
<span
|
||||
style={{
|
||||
@ -217,7 +217,9 @@ export const HomeDesktop = ({
|
||||
fontSize: '1rem',
|
||||
}}
|
||||
>
|
||||
{t('tutorial:initial.explore', { postProcess: 'capitalize' })}
|
||||
{t('tutorial:initial.explore', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>{' '}
|
||||
</Box>
|
||||
</Divider>
|
||||
|
@ -19,7 +19,7 @@ export const InviteMember = ({ groupId, setInfoSnack, setOpenSnack, show }) => {
|
||||
await show({
|
||||
message: t('group:question.perform_transaction', {
|
||||
action: 'GROUP_INVITE',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
@ -40,7 +40,7 @@ export const InviteMember = ({ groupId, setInfoSnack, setOpenSnack, show }) => {
|
||||
type: 'success',
|
||||
message: t('group:message.success.group_invite', {
|
||||
value: value,
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -61,7 +61,7 @@ export const InviteMember = ({ groupId, setInfoSnack, setOpenSnack, show }) => {
|
||||
message:
|
||||
error?.message ||
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -86,7 +86,7 @@ export const InviteMember = ({ groupId, setInfoSnack, setOpenSnack, show }) => {
|
||||
flexDirection: 'column',
|
||||
}}
|
||||
>
|
||||
{t('group:action.invite_member', { postProcess: 'capitalize' })}
|
||||
{t('group:action.invite_member', { postProcess: 'capitalizeFirst' })}
|
||||
|
||||
<Spacer height="20px" />
|
||||
|
||||
@ -99,14 +99,14 @@ export const InviteMember = ({ groupId, setInfoSnack, setOpenSnack, show }) => {
|
||||
<Spacer height="20px" />
|
||||
|
||||
<Label>
|
||||
{t('group:invitation_expiry', { postProcess: 'capitalize' })}
|
||||
{t('group:invitation_expiry', { postProcess: 'capitalizeFirst' })}
|
||||
</Label>
|
||||
|
||||
<Select
|
||||
labelId="demo-simple-select-label"
|
||||
id="demo-simple-select"
|
||||
value={expiryTime}
|
||||
label={t('group:invitation_expiry', { postProcess: 'capitalize' })}
|
||||
label={t('group:invitation_expiry', { postProcess: 'capitalizeFirst' })}
|
||||
onChange={handleChange}
|
||||
>
|
||||
<MenuItem value={10800}>{t('core:time.hour', { count: 3 })}</MenuItem>
|
||||
@ -129,7 +129,7 @@ export const InviteMember = ({ groupId, setInfoSnack, setOpenSnack, show }) => {
|
||||
loading={isLoadingInvite}
|
||||
onClick={inviteMember}
|
||||
>
|
||||
{t('core:action.invite', { postProcess: 'capitalize' })}
|
||||
{t('core:action.invite', { postProcess: 'capitalizeFirst' })}
|
||||
</LoadingButton>
|
||||
</Box>
|
||||
);
|
||||
|
@ -90,7 +90,7 @@ export const ListOfBans = ({ groupId, setInfoSnack, setOpenSnack, show }) => {
|
||||
await show({
|
||||
message: t('group:question.perform_transaction', {
|
||||
action: 'CANCEL_GROUP_BAN',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
@ -108,7 +108,7 @@ export const ListOfBans = ({ groupId, setInfoSnack, setOpenSnack, show }) => {
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:message.success.unbanned_user', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
handlePopoverClose();
|
||||
@ -184,7 +184,7 @@ export const ListOfBans = ({ groupId, setInfoSnack, setOpenSnack, show }) => {
|
||||
onClick={() => handleCancelBan(member?.offender)}
|
||||
>
|
||||
{t('group:action.cancel_ban', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
</Box>
|
||||
@ -214,7 +214,7 @@ export const ListOfBans = ({ groupId, setInfoSnack, setOpenSnack, show }) => {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<p>{t('group:ban_list', { postProcess: 'capitalize' })}</p>
|
||||
<p>{t('group:ban_list', { postProcess: 'capitalizeFirst' })}</p>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
|
@ -240,14 +240,16 @@ export const ListOfGroupPromotions = () => {
|
||||
.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})`}
|
||||
</Typography>
|
||||
|
||||
@ -458,7 +462,9 @@ export const ListOfGroupPromotions = () => {
|
||||
fontSize: '12px',
|
||||
}}
|
||||
>
|
||||
{t('group.action.add_promotion', { postProcess: 'capitalize' })}
|
||||
{t('group.action.add_promotion', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
</Box>
|
||||
|
||||
@ -505,7 +511,7 @@ export const ListOfGroupPromotions = () => {
|
||||
}}
|
||||
>
|
||||
{t('group.message.generic.no_display', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -570,7 +576,7 @@ export const ListOfGroupPromotions = () => {
|
||||
fallback={
|
||||
<Typography>
|
||||
{t('group.message.generic.invalid_data', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
}
|
||||
@ -622,7 +628,7 @@ export const ListOfGroupPromotions = () => {
|
||||
}}
|
||||
>
|
||||
{t('group:group.name', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
: {` ${promotion?.groupName}`}
|
||||
</Typography>
|
||||
@ -634,7 +640,7 @@ export const ListOfGroupPromotions = () => {
|
||||
}}
|
||||
>
|
||||
{t('group:group.member_number', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
: {` ${promotion?.memberCount}`}
|
||||
</Typography>
|
||||
@ -658,7 +664,7 @@ export const ListOfGroupPromotions = () => {
|
||||
}}
|
||||
>
|
||||
{t('group:message.generic.closed_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
)}
|
||||
@ -681,7 +687,7 @@ export const ListOfGroupPromotions = () => {
|
||||
onClick={handlePopoverClose}
|
||||
>
|
||||
{t('core:action.close', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
|
||||
@ -697,7 +703,7 @@ export const ListOfGroupPromotions = () => {
|
||||
}
|
||||
>
|
||||
{t('core:action.join', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
</Box>
|
||||
@ -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',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -822,7 +828,7 @@ export const ListOfGroupPromotions = () => {
|
||||
}}
|
||||
>
|
||||
{t('group:action.join_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
: {` ${promotion?.groupName}`}
|
||||
</Button>
|
||||
@ -850,19 +856,19 @@ export const ListOfGroupPromotions = () => {
|
||||
aria-describedby="alert-dialog-description"
|
||||
>
|
||||
<DialogTitle id="alert-dialog-title">
|
||||
{t('group:action.promote_group', { postProcess: 'capitalize' })}
|
||||
{t('group:action.promote_group', { postProcess: 'capitalizeFirst' })}
|
||||
</DialogTitle>
|
||||
|
||||
<DialogContent>
|
||||
<DialogContentText id="alert-dialog-description">
|
||||
{t('group:message.generic.latest_promotion', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</DialogContentText>
|
||||
|
||||
<DialogContentText id="alert-dialog-description2">
|
||||
{t('group:message.generic.max_chars', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
: {fee && fee} {' QORT'}
|
||||
</DialogContentText>
|
||||
@ -878,13 +884,13 @@ export const ListOfGroupPromotions = () => {
|
||||
>
|
||||
<Label>
|
||||
{t('group:action.select_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Label>
|
||||
|
||||
<Label>
|
||||
{t('group:message.generic.admin_only', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Label>
|
||||
|
||||
@ -936,7 +942,7 @@ export const ListOfGroupPromotions = () => {
|
||||
onClick={() => setIsShowModal(false)}
|
||||
>
|
||||
{t('core:action.close', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
<Button
|
||||
@ -946,7 +952,7 @@ export const ListOfGroupPromotions = () => {
|
||||
autoFocus
|
||||
>
|
||||
{t('core:action.publish', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
|
@ -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',
|
||||
})}
|
||||
</LoadingButton>
|
||||
</Box>
|
||||
@ -229,7 +229,7 @@ export const ListOfInvites = ({
|
||||
<div>
|
||||
<p>
|
||||
{t('group:invitees_list', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</p>
|
||||
<div
|
||||
|
@ -99,7 +99,7 @@ export const ListOfJoinRequests = ({
|
||||
await show({
|
||||
message: t('group:question.perform_transaction', {
|
||||
action: 'GROUP_INVITE',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
@ -119,7 +119,7 @@ export const ListOfJoinRequests = ({
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:message.success,group_join', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -130,10 +130,10 @@ export const ListOfJoinRequests = ({
|
||||
...response,
|
||||
type: 'join-request-accept',
|
||||
label: t('group:message.success,invitation_request', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
labelDone: t('group:message.success,user_joined', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
done: false,
|
||||
groupId,
|
||||
@ -157,7 +157,9 @@ export const ListOfJoinRequests = ({
|
||||
type: 'error',
|
||||
message:
|
||||
error?.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
rej(error);
|
||||
@ -223,7 +225,9 @@ export const ListOfJoinRequests = ({
|
||||
variant="contained"
|
||||
onClick={() => handleAcceptJoinRequest(member?.joiner)}
|
||||
>
|
||||
{t('core:action.accept', { postProcess: 'capitalize' })}
|
||||
{t('core:action.accept', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
</Box>
|
||||
</Popover>
|
||||
@ -252,7 +256,7 @@ export const ListOfJoinRequests = ({
|
||||
|
||||
return (
|
||||
<div>
|
||||
<p>{t('core:list.join_request', { postProcess: 'capitalize' })}</p>
|
||||
<p>{t('core:list.join_request', { postProcess: 'capitalizeFirst' })}</p>
|
||||
<div
|
||||
style={{
|
||||
position: 'relative',
|
||||
|
@ -61,7 +61,7 @@ const ListOfMembers = ({
|
||||
await show({
|
||||
message: t('group:question.perform_transaction', {
|
||||
action: 'GROUP_KICK',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
@ -78,7 +78,7 @@ const ListOfMembers = ({
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:message.success.group_kick', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -98,7 +98,9 @@ const ListOfMembers = ({
|
||||
type: 'error',
|
||||
message:
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
rej(error);
|
||||
@ -117,7 +119,7 @@ const ListOfMembers = ({
|
||||
await show({
|
||||
message: t('group:question.perform_transaction', {
|
||||
action: 'GROUP_BAN',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
@ -136,7 +138,7 @@ const ListOfMembers = ({
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:message.success.group_ban', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -156,7 +158,9 @@ const ListOfMembers = ({
|
||||
type: 'error',
|
||||
message:
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
rej(error);
|
||||
@ -175,7 +179,7 @@ const ListOfMembers = ({
|
||||
await show({
|
||||
message: t('group:question.perform_transaction', {
|
||||
action: 'ADD_GROUP_ADMIN',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
@ -191,7 +195,7 @@ const ListOfMembers = ({
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:message.success.group_member_admin', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -211,7 +215,9 @@ const ListOfMembers = ({
|
||||
type: 'error',
|
||||
message:
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
rej(error);
|
||||
@ -230,7 +236,7 @@ const ListOfMembers = ({
|
||||
await show({
|
||||
message: t('group:question.perform_transaction', {
|
||||
action: 'REMOVE_GROUP_ADMIN',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
@ -246,7 +252,7 @@ const ListOfMembers = ({
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:message.success.group_remove_member', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -266,7 +272,9 @@ const ListOfMembers = ({
|
||||
type: 'error',
|
||||
message:
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
rej(error);
|
||||
@ -326,7 +334,7 @@ const ListOfMembers = ({
|
||||
onClick={() => handleKick(member?.member)}
|
||||
>
|
||||
{t('group:action.kick_member', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
|
||||
@ -337,7 +345,7 @@ const ListOfMembers = ({
|
||||
onClick={() => handleBan(member?.member)}
|
||||
>
|
||||
{t('group:action.ban', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
|
||||
@ -348,7 +356,7 @@ const ListOfMembers = ({
|
||||
onClick={() => makeAdmin(member?.member)}
|
||||
>
|
||||
{t('group:action.make_admin', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
|
||||
@ -359,7 +367,7 @@ const ListOfMembers = ({
|
||||
onClick={() => removeAdmin(member?.member)}
|
||||
>
|
||||
{t('group:action.remove_admin', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
</>
|
||||
@ -394,7 +402,7 @@ const ListOfMembers = ({
|
||||
}}
|
||||
>
|
||||
{t('core:admin', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
)}
|
||||
@ -410,7 +418,7 @@ const ListOfMembers = ({
|
||||
<div>
|
||||
<p>
|
||||
{t('core:list.member', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</p>
|
||||
<div
|
||||
|
@ -46,7 +46,9 @@ export const ListOfThreadPostsWatched = () => {
|
||||
.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',
|
||||
})}
|
||||
:
|
||||
</Typography>
|
||||
@ -133,7 +135,7 @@ export const ListOfThreadPostsWatched = () => {
|
||||
}}
|
||||
>
|
||||
{t('group:message.generic.no_display', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
@ -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 = ({
|
||||
>
|
||||
<Toolbar>
|
||||
<Typography sx={{ ml: 2, flex: 1 }} variant="h4" component="div">
|
||||
{t('group:action.manage_members', { postProcess: 'capitalize' })}
|
||||
{t('group:action.manage_members', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
<IconButton
|
||||
@ -310,18 +314,20 @@ export const ManageMembers = ({
|
||||
>
|
||||
<Box>
|
||||
<Typography>
|
||||
{t('group:group.id', { postProcess: 'capitalize' })}:{' '}
|
||||
{t('group:group.id', { postProcess: 'capitalizeFirst' })}:{' '}
|
||||
{groupInfo?.groupId}
|
||||
</Typography>
|
||||
|
||||
<Typography>
|
||||
{t('group:group.name', { postProcess: 'capitalize' })}:{' '}
|
||||
{t('group:group.name', { postProcess: 'capitalizeFirst' })}:{' '}
|
||||
{groupInfo?.groupName}
|
||||
</Typography>
|
||||
|
||||
<Typography>
|
||||
{t('group:group.member_number', { postProcess: 'capitalize' })}:{' '}
|
||||
{groupInfo?.memberCount}
|
||||
{t('group:group.member_number', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
: {groupInfo?.memberCount}
|
||||
</Typography>
|
||||
|
||||
<ButtonBase
|
||||
@ -336,7 +342,7 @@ export const ManageMembers = ({
|
||||
<InsertLinkIcon />
|
||||
|
||||
<Typography>
|
||||
{t('group:join_link', { postProcess: 'capitalize' })}
|
||||
{t('group:join_link', { postProcess: 'capitalizeFirst' })}
|
||||
</Typography>
|
||||
</ButtonBase>
|
||||
</Box>
|
||||
@ -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',
|
||||
})}
|
||||
</LoadingButton>
|
||||
)}
|
||||
</Card>
|
||||
@ -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',
|
||||
})}
|
||||
</Button>
|
||||
|
||||
<Spacer height="10px" />
|
||||
@ -465,7 +475,7 @@ export const ManageMembers = ({
|
||||
open={isLoadingMembers}
|
||||
info={{
|
||||
message: t('group:message.generic.loading_members', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
}}
|
||||
/>
|
||||
|
@ -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' })}
|
||||
</Typography>
|
||||
|
||||
<MarkEmailUnreadIcon
|
||||
@ -226,7 +228,7 @@ export const QMailMessages = ({ userName, userAddress }) => {
|
||||
}}
|
||||
>
|
||||
{t('group:message.generic.no_display', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
@ -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 }) => {
|
||||
<Toolbar>
|
||||
<Typography sx={{ ml: 2, flex: 1 }} variant="h4" component="div">
|
||||
{t('core:general_settings', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
@ -194,7 +196,7 @@ export const Settings = ({ open, setOpen, rawWallet }) => {
|
||||
<LocalNodeSwitch checked={checked} onChange={handleChange} />
|
||||
}
|
||||
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',
|
||||
})}
|
||||
</Button>
|
||||
|
||||
@ -292,7 +294,7 @@ const ExportPrivateKey = ({ rawWallet }) => {
|
||||
>
|
||||
<DialogTitle id="alert-dialog-title">
|
||||
{t('group:action.export_password', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</DialogTitle>
|
||||
|
||||
@ -305,7 +307,7 @@ const ExportPrivateKey = ({ rawWallet }) => {
|
||||
>
|
||||
<DialogContentText id="alert-dialog-description">
|
||||
{t('group:message.generic.secure_place', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</DialogContentText>
|
||||
|
||||
@ -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',
|
||||
})}{' '}
|
||||
<ContentCopyIcon color="primary" />
|
||||
</Button>
|
||||
@ -351,13 +353,13 @@ const ExportPrivateKey = ({ rawWallet }) => {
|
||||
}}
|
||||
>
|
||||
{t('group:action.cancel', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
|
||||
<Button variant="contained" onClick={exportPrivateKeyFunc}>
|
||||
{t('group:action.decrypt', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
|
@ -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',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
@ -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',
|
||||
})}
|
||||
/>
|
||||
<ListItemIcon
|
||||
|
@ -101,7 +101,7 @@ export const UserListOfInvites = ({
|
||||
await show({
|
||||
message: t('group:question.perform_transaction', {
|
||||
action: 'JOIN_GROUP',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
@ -130,7 +130,7 @@ export const UserListOfInvites = ({
|
||||
setInfoSnack({
|
||||
type: 'success',
|
||||
message: t('group:message.success.group_join', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -149,7 +149,9 @@ export const UserListOfInvites = ({
|
||||
type: 'error',
|
||||
message:
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
rej(error);
|
||||
@ -203,7 +205,7 @@ export const UserListOfInvites = ({
|
||||
>
|
||||
<Typography>
|
||||
{t('core:action.join', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}{' '}
|
||||
{invite?.groupName}
|
||||
</Typography>
|
||||
@ -217,7 +219,7 @@ export const UserListOfInvites = ({
|
||||
}
|
||||
>
|
||||
{t('group:action.join_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
</Box>
|
||||
@ -265,7 +267,7 @@ export const UserListOfInvites = ({
|
||||
>
|
||||
<p>
|
||||
{t('core:list.invite', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</p>
|
||||
|
||||
|
@ -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',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
<Spacer height="20px" />
|
||||
|
||||
<Typography>
|
||||
{t('core:message_us', { postProcess: 'capitalize' })}
|
||||
{t('core:message_us', { postProcess: 'capitalizeFirst' })}
|
||||
</Typography>
|
||||
|
||||
<Spacer height="20px" />
|
||||
|
@ -152,7 +152,7 @@ export const QortPrice = () => {
|
||||
fontWeight: 'bold',
|
||||
}}
|
||||
>
|
||||
{t('core:price', { postProcess: 'capitalize' })}
|
||||
{t('core:price', { postProcess: 'capitalizeFirst' })}
|
||||
</Typography>
|
||||
|
||||
{!ltcPerQort ? (
|
||||
@ -184,7 +184,7 @@ export const QortPrice = () => {
|
||||
fontWeight: 'bold',
|
||||
}}
|
||||
>
|
||||
{t('core:supply', { postProcess: 'capitalize' })}
|
||||
{t('core:supply', { postProcess: 'capitalizeFirst' })}
|
||||
</Typography>
|
||||
|
||||
{!supply ? (
|
||||
@ -238,7 +238,7 @@ export const QortPrice = () => {
|
||||
fontWeight: 'bold',
|
||||
}}
|
||||
>
|
||||
{t('core:last_height', { postProcess: 'capitalize' })}
|
||||
{t('core:last_height', { postProcess: 'capitalizeFirst' })}
|
||||
</Typography>
|
||||
|
||||
{!lastBlock?.height ? (
|
||||
|
@ -40,7 +40,7 @@ const LanguageSelector = () => {
|
||||
<Tooltip
|
||||
key={currentLang}
|
||||
title={t('core:action.change_language', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
>
|
||||
<button
|
||||
|
@ -227,7 +227,9 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
rej({
|
||||
message:
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -237,7 +239,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
message:
|
||||
error?.message ||
|
||||
t('core:message.error.minting_account_add', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -275,7 +277,9 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
rej({
|
||||
message:
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -285,7 +289,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
message:
|
||||
error?.message ||
|
||||
t('core:message.error.minting_account_remove', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -300,7 +304,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
message: t('group:question.perform_transaction', {
|
||||
// TODO move from group into core namespace
|
||||
action: 'REWARD_SHARE',
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
publishFee: fee.fee + ' QORT',
|
||||
});
|
||||
@ -317,10 +321,10 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
...response,
|
||||
type: 'add-rewardShare',
|
||||
label: t('group:message.success.rewardshare_add', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
labelDone: t('group:message.success.rewardshare_add_label', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
done: false,
|
||||
},
|
||||
@ -335,7 +339,9 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
rej({
|
||||
message:
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -358,7 +364,9 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
rej({
|
||||
message:
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -384,7 +392,9 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
}
|
||||
|
||||
throw new Error(
|
||||
t('group:message.error.timeout_reward', { postProcess: 'capitalize' })
|
||||
t('group:message.error.timeout_reward', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
@ -420,7 +430,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
message:
|
||||
error?.message ||
|
||||
t('group:message.error.unable_minting', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
setOpenSnack(true);
|
||||
@ -460,10 +470,10 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
...response,
|
||||
type: 'remove-rewardShare',
|
||||
label: t('group:message.success.rewardshare_remove', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
labelDone: t('group:message.success.rewardshare_remove_label', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
done: false,
|
||||
},
|
||||
@ -477,7 +487,9 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
rej({
|
||||
message:
|
||||
error.message ||
|
||||
t('core:message.error.generic', { postProcess: 'capitalize' }),
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirst',
|
||||
}),
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -609,7 +621,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
>
|
||||
<DialogTitle id="alert-dialog-title">
|
||||
{t('group:message.generic.manage_minting', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</DialogTitle>
|
||||
|
||||
@ -662,28 +674,28 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
>
|
||||
<Typography>
|
||||
{t('auth:account.account_one', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
: {handleNames(accountInfo?.address)}
|
||||
</Typography>
|
||||
|
||||
<Typography>
|
||||
{t('core:level', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
: {accountInfo?.level}
|
||||
</Typography>
|
||||
|
||||
<Typography>
|
||||
{t('group:message.generic.next_level', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}{' '}
|
||||
{_levelUpBlocks()}
|
||||
</Typography>
|
||||
|
||||
<Typography>
|
||||
{t('group:message.generic.node_minting', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}{' '}
|
||||
{nodeInfos?.isMintingPossible?.toString()}
|
||||
</Typography>
|
||||
@ -723,14 +735,14 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:action.start_minting', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
|
||||
{mintingAccounts?.length > 1 && (
|
||||
<Typography>
|
||||
{t('group:message.generic.minting_keys_per_node', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
)}
|
||||
@ -742,7 +754,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
{mintingAccounts?.length > 0 && (
|
||||
<Typography>
|
||||
{t('group:message.generic.node_minting_account', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
)}
|
||||
@ -762,7 +774,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
>
|
||||
<Typography>
|
||||
{t('group:message.generic.node_minting_key', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -781,7 +793,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
>
|
||||
<Typography>
|
||||
{t('group:message.generic.minting_account', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}{' '}
|
||||
{handleNames(acct?.mintingAccount)}
|
||||
</Typography>
|
||||
@ -807,7 +819,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
variant="contained"
|
||||
>
|
||||
{t('group:action.remove_minting_account', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
|
||||
@ -820,7 +832,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
{mintingAccounts?.length > 1 && (
|
||||
<Typography>
|
||||
{t('group:message.generic.minting_keys_per_node_different', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
)}
|
||||
@ -846,13 +858,13 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
>
|
||||
<Typography>
|
||||
{t('group:message.generic.minter_group', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
<Typography>
|
||||
{t('group:message.generic.mintership_app', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
@ -882,7 +894,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
variant="contained"
|
||||
>
|
||||
{t('group:action.visit_q_mintership', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
</Box>
|
||||
@ -903,14 +915,14 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
{!isShowNext && (
|
||||
<Typography>
|
||||
{t('group:message.success.rewardshare_creation', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
)}
|
||||
{isShowNext && (
|
||||
<Typography>
|
||||
{t('group:message.success.rewardshare_confirmed', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
)}
|
||||
@ -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' })}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
@ -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' })}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
|
||||
|
@ -66,7 +66,7 @@ export const QMailStatus = () => {
|
||||
}}
|
||||
>
|
||||
{t('core:q_apps.q_mail', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</span>
|
||||
}
|
||||
|
@ -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 = ({
|
||||
}}
|
||||
>
|
||||
<Label>
|
||||
{t('core:action.choose_name', { postProcess: 'capitalize' })}
|
||||
{t('core:action.choose_name', { postProcess: 'capitalizeFirst' })}
|
||||
</Label>
|
||||
<TextField
|
||||
autoComplete="off"
|
||||
@ -253,7 +255,7 @@ export const RegisterName = ({
|
||||
{t('core:message.generic.name_registration', {
|
||||
balance: balance ?? 0,
|
||||
fee: { nameFee },
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -280,7 +282,7 @@ export const RegisterName = ({
|
||||
<Typography>
|
||||
{t('core:message.generic.name_available', {
|
||||
name: registerNameValue,
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -302,7 +304,7 @@ export const RegisterName = ({
|
||||
<Typography>
|
||||
{t('core:message.generic.name_unavailable', {
|
||||
name: registerNameValue,
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -320,7 +322,7 @@ export const RegisterName = ({
|
||||
|
||||
<Typography>
|
||||
{t('core:message.generic.name_checking', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -334,7 +336,7 @@ export const RegisterName = ({
|
||||
}}
|
||||
>
|
||||
{t('core:message.generic.name_benefits', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
@ -352,7 +354,7 @@ export const RegisterName = ({
|
||||
</ListItemIcon>
|
||||
<ListItemText
|
||||
primary={t('core:message.generic.publish_data', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
/>
|
||||
</ListItem>
|
||||
@ -367,7 +369,7 @@ export const RegisterName = ({
|
||||
</ListItemIcon>
|
||||
<ListItemText
|
||||
primary={t('core:message.generic.secure_ownership', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
/>
|
||||
</ListItem>
|
||||
@ -384,7 +386,7 @@ export const RegisterName = ({
|
||||
setRegisterNameValue('');
|
||||
}}
|
||||
>
|
||||
{t('core:action.close', { postProcess: 'capitalize' })}
|
||||
{t('core:action.close', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
@ -399,7 +401,7 @@ export const RegisterName = ({
|
||||
onClick={registerName}
|
||||
autoFocus
|
||||
>
|
||||
{t('core:action.register_name', { postProcess: 'capitalize' })}
|
||||
{t('core:action.register_name', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
|
@ -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 }) => {
|
||||
<IconWrapper
|
||||
disableWidth={disableWidth}
|
||||
label={t('core:action.save', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
selected={false}
|
||||
color={
|
||||
@ -305,7 +307,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:save_options.settings', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>{' '}
|
||||
<Spacer height="40px" />
|
||||
@ -334,7 +336,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:save_options.qdn', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Button>
|
||||
</Box>
|
||||
@ -365,7 +367,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:save_options.register_name', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -386,7 +388,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:save_options.unsaved_changes', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
@ -410,7 +412,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:action.save_qdn', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
<Spacer height="20px" />
|
||||
@ -423,7 +425,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:save_options.reset_qdn', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
<Spacer height="10px" />
|
||||
@ -445,7 +447,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:save_options.revert_qdn', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
</>
|
||||
@ -460,7 +462,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
>
|
||||
{' '}
|
||||
{t('core:save_options.reset_pinned', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
<Spacer height="10px" />
|
||||
@ -470,7 +472,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
variant="contained"
|
||||
>
|
||||
{t('core:save_options.revert_default', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
</>
|
||||
@ -494,7 +496,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:save_options.overwrite_changes', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
<Spacer height="10px" />
|
||||
@ -516,7 +518,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:save_options.overwrite_qdn', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</LoadingButton>
|
||||
</Box>
|
||||
@ -536,7 +538,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:save_options.no_pinned_changes', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</Typography>
|
||||
</Box>
|
||||
@ -593,7 +595,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:action.import', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</ButtonBase>
|
||||
|
||||
@ -618,7 +620,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
||||
}}
|
||||
>
|
||||
{t('core:action.export', {
|
||||
postProcess: 'capitalize',
|
||||
postProcess: 'capitalizeFirst',
|
||||
})}
|
||||
</ButtonBase>
|
||||
</Box>
|
||||
|
@ -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',
|
||||
})
|
||||
}
|
||||
>
|
||||
|
@ -91,7 +91,7 @@ export const Tutorials = () => {
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<Button variant="contained" onClick={handleClose}>
|
||||
{t('core:action.close', { postProcess: 'capitalize' })}
|
||||
{t('core:action.close', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
@ -138,7 +138,7 @@ export const Tutorials = () => {
|
||||
|
||||
<DialogActions>
|
||||
<Button variant="contained" onClick={handleClose}>
|
||||
{t('core:action.close', { postProcess: 'capitalize' })}
|
||||
{t('core:action.close', { postProcess: 'capitalizeFirst' })}
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user