🌐 Move translations to common file

This commit is contained in:
ajnart
2023-08-14 14:34:56 +02:00
parent 07f8ce3de5
commit d4463c0009
6 changed files with 10 additions and 11 deletions

View File

@@ -7,6 +7,9 @@
"delete": "Delete",
"ok": "OK",
"edit": "Edit",
"next": "Next",
"previous": "Previous",
"confirm": "Confirm",
"enabled": "Enabled",
"disabled": "Disabled",
"enableAll": "Enable all",

View File

@@ -52,11 +52,7 @@
}
},
"buttons": {
"next": "Next",
"previous": "Previous",
"confirm": "Confirm",
"generateRandomPassword": "Generate random",
"createAnother": "Create another",
"goBack": "Go back to users"
"createAnother": "Create another"
}
}

View File

@@ -60,7 +60,7 @@ export const CreateAccountStep = ({
variant="light"
px="xl"
>
{t('buttons.next')}
{t('common:next')}
</Button>
</Flex>
</Card>

View File

@@ -89,7 +89,7 @@ export const ReviewInputStep = ({ values, prevStep, nextStep }: ReviewInputStepP
<Group position="apart" noWrap>
<Button leftIcon={<IconArrowLeft size="1rem" />} onClick={prevStep} variant="light" px="xl">
{t('buttons.previous')}
{t('common:previous')}
</Button>
<Button
onClick={async () => {
@@ -104,7 +104,7 @@ export const ReviewInputStep = ({ values, prevStep, nextStep }: ReviewInputStepP
variant="light"
px="xl"
>
{t('buttons.confirm')}
{t('common:confirm')}
</Button>
</Group>
</Card>

View File

@@ -133,7 +133,7 @@ export const CreateAccountSecurityStep = ({
<Group position="apart" noWrap>
<Button leftIcon={<IconArrowLeft size="1rem" />} onClick={prevStep} variant="light" px="xl">
{t('buttons.previous')}
{t('common:previous')}
</Button>
<Button
rightIcon={<IconArrowRight size="1rem" />}
@@ -146,7 +146,7 @@ export const CreateAccountSecurityStep = ({
px="xl"
disabled={!form.isValid()}
>
{t('buttons.next')}
{t('common:next')}
</Button>
</Group>
</Card>

View File

@@ -113,7 +113,7 @@ const CreateNewUserPage = () => {
variant="default"
href="/manage/users"
>
{t('buttons.goBack')}
{t('common:back')}
</Button>
</Group>
</Stepper.Completed>