Refactor structure of translation core file

This commit is contained in:
Nicola Benaglia 2025-04-24 09:26:31 +02:00
parent 501f35fa70
commit 7d45d54216
5 changed files with 17 additions and 12 deletions

View File

@ -1557,7 +1557,7 @@ function App() {
textTransform: 'uppercase', textTransform: 'uppercase',
}} }}
> >
{t('core:logout')} {t('core:action.logout')}
</span> </span>
} }
placement="left" placement="left"
@ -3585,7 +3585,7 @@ function App() {
I have read this request I have read this request
</Typography> </Typography>
<PriorityHighIcon color="warning" /> <PriorityHighIcon color="warning" />
</Box> </Box> // TODO translate
} }
/> />
)} )}

View File

@ -817,7 +817,7 @@ export const NotAuthenticated = ({
}} }}
variant="contained" variant="contained"
> >
{t('core:choose', { postProcess: 'capitalize' })} {t('core:action.choose', { postProcess: 'capitalize' })}
</Button> </Button>
</Box> </Box>
</Box> </Box>
@ -876,7 +876,9 @@ export const NotAuthenticated = ({
}} }}
variant="contained" variant="contained"
> >
{t('core:choose', { postProcess: 'capitalize' })} {t('core:action.choose', {
postProcess: 'capitalize',
})}
</Button> </Button>
<Button <Button
@ -889,7 +891,9 @@ export const NotAuthenticated = ({
}} }}
variant="contained" variant="contained"
> >
{t('core:edit', { postProcess: 'capitalize' })} {t('core:action.edit', {
postProcess: 'capitalize',
})}
</Button> </Button>
<Button <Button
@ -941,7 +945,7 @@ export const NotAuthenticated = ({
<DialogActions> <DialogActions>
{mode === 'list' && ( {mode === 'list' && (
<Button variant="contained" onClick={addCustomNode}> <Button variant="contained" onClick={addCustomNode}>
{t('core:add', { postProcess: 'capitalize' })} {t('core:action.add', { postProcess: 'capitalize' })}
</Button> </Button>
)} )}
@ -954,7 +958,7 @@ export const NotAuthenticated = ({
}} }}
autoFocus autoFocus
> >
{t('core:close', { postProcess: 'capitalize' })} {t('core:action.close', { postProcess: 'capitalize' })}
</Button> </Button>
</> </>
)} )}
@ -1076,7 +1080,7 @@ export const NotAuthenticated = ({
setShowSelectApiKey(false); setShowSelectApiKey(false);
}} }}
> >
{t('core:close', { postProcess: 'capitalize' })} {t('core:action.close', { postProcess: 'capitalize' })}
</Button> </Button>
</DialogActions> </DialogActions>
</Dialog> </Dialog>

View File

@ -62,6 +62,7 @@ export const QMailStatus = () => {
color: theme.palette.text.primary, color: theme.palette.text.primary,
fontSize: '14px', fontSize: '14px',
fontWeight: 700, fontWeight: 700,
textTransform: 'uppercase',
}} }}
> >
{t('core:q_mail', { {t('core:q_mail', {

View File

@ -569,7 +569,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
} }
}} }}
> >
{t('core:import', { {t('core:action.import', {
postProcess: 'capitalize', postProcess: 'capitalize',
})} })}
</ButtonBase> </ButtonBase>
@ -594,7 +594,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
} }
}} }}
> >
{t('core:export', { {t('core:action.export', {
postProcess: 'capitalize', postProcess: 'capitalize',
})} })}
</ButtonBase> </ButtonBase>

View File

@ -91,7 +91,7 @@ export const Tutorials = () => {
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>
<Button variant="contained" onClick={handleClose}> <Button variant="contained" onClick={handleClose}>
{t('core:close', { postProcess: 'capitalize' })} {t('core:action.close', { postProcess: 'capitalize' })}
</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:close', { postProcess: 'capitalize' })} {t('core:action.close', { postProcess: 'capitalize' })}
</Button> </Button>
</DialogActions> </DialogActions>
</Dialog> </Dialog>