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