mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +01:00
🌐 Move translations to common file
This commit is contained in:
@@ -7,6 +7,9 @@
|
|||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"ok": "OK",
|
"ok": "OK",
|
||||||
"edit": "Edit",
|
"edit": "Edit",
|
||||||
|
"next": "Next",
|
||||||
|
"previous": "Previous",
|
||||||
|
"confirm": "Confirm",
|
||||||
"enabled": "Enabled",
|
"enabled": "Enabled",
|
||||||
"disabled": "Disabled",
|
"disabled": "Disabled",
|
||||||
"enableAll": "Enable all",
|
"enableAll": "Enable all",
|
||||||
|
|||||||
@@ -52,11 +52,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"next": "Next",
|
|
||||||
"previous": "Previous",
|
|
||||||
"confirm": "Confirm",
|
|
||||||
"generateRandomPassword": "Generate random",
|
"generateRandomPassword": "Generate random",
|
||||||
"createAnother": "Create another",
|
"createAnother": "Create another"
|
||||||
"goBack": "Go back to users"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -60,7 +60,7 @@ export const CreateAccountStep = ({
|
|||||||
variant="light"
|
variant="light"
|
||||||
px="xl"
|
px="xl"
|
||||||
>
|
>
|
||||||
{t('buttons.next')}
|
{t('common:next')}
|
||||||
</Button>
|
</Button>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ export const ReviewInputStep = ({ values, prevStep, nextStep }: ReviewInputStepP
|
|||||||
|
|
||||||
<Group position="apart" noWrap>
|
<Group position="apart" noWrap>
|
||||||
<Button leftIcon={<IconArrowLeft size="1rem" />} onClick={prevStep} variant="light" px="xl">
|
<Button leftIcon={<IconArrowLeft size="1rem" />} onClick={prevStep} variant="light" px="xl">
|
||||||
{t('buttons.previous')}
|
{t('common:previous')}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
@@ -104,7 +104,7 @@ export const ReviewInputStep = ({ values, prevStep, nextStep }: ReviewInputStepP
|
|||||||
variant="light"
|
variant="light"
|
||||||
px="xl"
|
px="xl"
|
||||||
>
|
>
|
||||||
{t('buttons.confirm')}
|
{t('common:confirm')}
|
||||||
</Button>
|
</Button>
|
||||||
</Group>
|
</Group>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ export const CreateAccountSecurityStep = ({
|
|||||||
|
|
||||||
<Group position="apart" noWrap>
|
<Group position="apart" noWrap>
|
||||||
<Button leftIcon={<IconArrowLeft size="1rem" />} onClick={prevStep} variant="light" px="xl">
|
<Button leftIcon={<IconArrowLeft size="1rem" />} onClick={prevStep} variant="light" px="xl">
|
||||||
{t('buttons.previous')}
|
{t('common:previous')}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
rightIcon={<IconArrowRight size="1rem" />}
|
rightIcon={<IconArrowRight size="1rem" />}
|
||||||
@@ -146,7 +146,7 @@ export const CreateAccountSecurityStep = ({
|
|||||||
px="xl"
|
px="xl"
|
||||||
disabled={!form.isValid()}
|
disabled={!form.isValid()}
|
||||||
>
|
>
|
||||||
{t('buttons.next')}
|
{t('common:next')}
|
||||||
</Button>
|
</Button>
|
||||||
</Group>
|
</Group>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ const CreateNewUserPage = () => {
|
|||||||
variant="default"
|
variant="default"
|
||||||
href="/manage/users"
|
href="/manage/users"
|
||||||
>
|
>
|
||||||
{t('buttons.goBack')}
|
{t('common:back')}
|
||||||
</Button>
|
</Button>
|
||||||
</Group>
|
</Group>
|
||||||
</Stepper.Completed>
|
</Stepper.Completed>
|
||||||
|
|||||||
Reference in New Issue
Block a user