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

View File

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

View File

@ -62,6 +62,7 @@ export const QMailStatus = () => {
color: theme.palette.text.primary,
fontSize: '14px',
fontWeight: 700,
textTransform: 'uppercase',
}}
>
{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',
})}
</ButtonBase>
@ -594,7 +594,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
}
}}
>
{t('core:export', {
{t('core:action.export', {
postProcess: 'capitalize',
})}
</ButtonBase>

View File

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