From d4463c00091523fdaffd47eec2e1f54d27726c97 Mon Sep 17 00:00:00 2001 From: ajnart Date: Mon, 14 Aug 2023 14:34:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20Move=20translations=20to=20`comm?= =?UTF-8?q?on`=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/locales/en/common.json | 3 +++ public/locales/en/manage/users/create.json | 6 +----- src/components/Manage/User/Create/create-account-step.tsx | 2 +- src/components/Manage/User/Create/review-input-step.tsx | 4 ++-- src/components/Manage/User/Create/security-step.tsx | 4 ++-- src/pages/manage/users/create.tsx | 2 +- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 3710f2fd1..a28e7cf51 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -7,6 +7,9 @@ "delete": "Delete", "ok": "OK", "edit": "Edit", + "next": "Next", + "previous": "Previous", + "confirm": "Confirm", "enabled": "Enabled", "disabled": "Disabled", "enableAll": "Enable all", diff --git a/public/locales/en/manage/users/create.json b/public/locales/en/manage/users/create.json index fa065928e..c8c34de42 100644 --- a/public/locales/en/manage/users/create.json +++ b/public/locales/en/manage/users/create.json @@ -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" } } \ No newline at end of file diff --git a/src/components/Manage/User/Create/create-account-step.tsx b/src/components/Manage/User/Create/create-account-step.tsx index de4554856..d6fdcdc1c 100644 --- a/src/components/Manage/User/Create/create-account-step.tsx +++ b/src/components/Manage/User/Create/create-account-step.tsx @@ -60,7 +60,7 @@ export const CreateAccountStep = ({ variant="light" px="xl" > - {t('buttons.next')} + {t('common:next')} diff --git a/src/components/Manage/User/Create/review-input-step.tsx b/src/components/Manage/User/Create/review-input-step.tsx index 779ab1765..e5f38a9a9 100644 --- a/src/components/Manage/User/Create/review-input-step.tsx +++ b/src/components/Manage/User/Create/review-input-step.tsx @@ -89,7 +89,7 @@ export const ReviewInputStep = ({ values, prevStep, nextStep }: ReviewInputStepP diff --git a/src/components/Manage/User/Create/security-step.tsx b/src/components/Manage/User/Create/security-step.tsx index cebae996c..1cbcf573a 100644 --- a/src/components/Manage/User/Create/security-step.tsx +++ b/src/components/Manage/User/Create/security-step.tsx @@ -133,7 +133,7 @@ export const CreateAccountSecurityStep = ({ diff --git a/src/pages/manage/users/create.tsx b/src/pages/manage/users/create.tsx index 5ca9ded6c..3f200e431 100644 --- a/src/pages/manage/users/create.tsx +++ b/src/pages/manage/users/create.tsx @@ -113,7 +113,7 @@ const CreateNewUserPage = () => { variant="default" href="/manage/users" > - {t('buttons.goBack')} + {t('common:back')}