From 6be8785cd1a2373da6e1e4ed7aed3b79a744c830 Mon Sep 17 00:00:00 2001 From: Komek Hayytnazarov Date: Sat, 1 Oct 2022 11:07:42 +0500 Subject: [PATCH] added translations --- src/api/fetch-wrapper.js | 5 - src/i18n/en.js | 15 +++ src/i18n/ru.js | 17 +++- src/i18n/tm.js | 15 +++ src/views/login/Main.vue | 119 +++++++----------------- src/views/profile-forms/BankAccount.vue | 34 +++---- src/views/profile-forms/Business.vue | 22 ++--- src/views/profile-forms/Company.vue | 26 ++---- src/views/profile-forms/Contacts.vue | 8 +- src/views/update-password/Main.vue | 108 ++++++--------------- 10 files changed, 144 insertions(+), 225 deletions(-) diff --git a/src/api/fetch-wrapper.js b/src/api/fetch-wrapper.js index bbd4e7c..91bd73d 100644 --- a/src/api/fetch-wrapper.js +++ b/src/api/fetch-wrapper.js @@ -79,8 +79,3 @@ async function handleResponse(response) { return data; } - -// { - - -// } diff --git a/src/i18n/en.js b/src/i18n/en.js index 8e661cb..be740f4 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -54,6 +54,7 @@ export const locale = { SURNAME: "Surname", NAME: "Name", + COMP_NAME: "Company name", SHORT_NAME: "Short Name", DOB: "Date of Birth", POB: "Place of Birth", @@ -93,4 +94,18 @@ export const locale = { REGISTER: "Register", EDIT: "Edit", + LOGIN: "Login", + + FORGOT_PASSWORD: "Forgot Password ?", + TERMS_AND_CONDITIONS: "Terms and Conditions", + PRIVACY_LEGACY: "Privacy Legacy", + BY_SIGN_UP: "By signing up, you agree to our", + SIGN_IN_MOTIVATION: "A few more clicks to", + SING_IN_MOTIVATION_RIGHT: "sign in to your account.", + SING_IN_MOTIVATION_MOBILE: + " A few more clicks to sign in to your account. Manage all your e-commerce accounts in one place", + MANAGE_DOCS: "Manage all your documents in one place", + + UPDATE: "Update", + UPDATE_PWD: "Update password", }; diff --git a/src/i18n/ru.js b/src/i18n/ru.js index e711aab..8afc004 100644 --- a/src/i18n/ru.js +++ b/src/i18n/ru.js @@ -30,7 +30,7 @@ export const locale = { ENTER_FIRSTNAME: "Enter firstname", LASTNAME: "Last Name", ENTER_LASTNAME: "Enter lastname", - EMAIL: "Email", + EMAIL: "Эл. адрес", ENTER_EMAIL: "Enter Email", PASSWORD: "Password", ENTER_PASSWORD: "Enter password", @@ -54,6 +54,7 @@ export const locale = { SURNAME: "Surname", NAME: "Name", + COMP_NAME: "Company name", SHORT_NAME: "Short Name", DOB: "Date of Birth", POB: "Place of Birth", @@ -93,4 +94,18 @@ export const locale = { REGISTER: "Register", EDIT: "Edit", + LOGIN: "Login", + + FORGOT_PASSWORD: "Forgot Password ?", + TERMS_AND_CONDITIONS: "Terms and Conditions", + PRIVACY_LEGACY: "Privacy Legacy", + BY_SIGN_UP: "By signing up, you agree to our", + SIGN_IN_MOTIVATION: "A few more clicks to", + SING_IN_MOTIVATION_RIGHT: "sign in to your account.", + SING_IN_MOTIVATION_MOBILE: + " A few more clicks to sign in to your account. Manage all your e-commerce accounts in one place", + MANAGE_DOCS: "Manage all your documents in one place", + + UPDATE: "Update", + UPDATE_PWD: "Update password", }; diff --git a/src/i18n/tm.js b/src/i18n/tm.js index 5983ce2..c8923a1 100644 --- a/src/i18n/tm.js +++ b/src/i18n/tm.js @@ -54,6 +54,7 @@ export const locale = { SURNAME: "Surname", NAME: "Name", + COMP_NAME: "Company name", SHORT_NAME: "Short Name", DOB: "Date of Birth", POB: "Place of Birth", @@ -93,4 +94,18 @@ export const locale = { REGISTER: "Register", EDIT: "Edit", + LOGIN: "Login", + + FORGOT_PASSWORD: "Forgot Password ?", + TERMS_AND_CONDITIONS: "Terms and Conditions", + PRIVACY_LEGACY: "Privacy Legacy", + BY_SIGN_UP: "By signing up, you agree to our", + SIGN_IN_MOTIVATION: "A few more clicks to", + SING_IN_MOTIVATION_RIGHT: "sign in to your account.", + SING_IN_MOTIVATION_MOBILE: + " A few more clicks to sign in to your account. Manage all your e-commerce accounts in one place", + MANAGE_DOCS: "Manage all your documents in one place", + + UPDATE: "Update", + UPDATE_PWD: "Update password", }; diff --git a/src/views/login/Main.vue b/src/views/login/Main.vue index e8a43c3..0239fcb 100644 --- a/src/views/login/Main.vue +++ b/src/views/login/Main.vue @@ -7,26 +7,19 @@ - Türkmenistanyň Döwlet haryt-çig mal biržasy + {{$t('APP_TITLE')}}
- Midone Tailwind HTML Admin Template -
- A few more clicks to
- sign in to your account. + Midone Tailwind HTML Admin Template +
+ {{$t('SIGN_IN_MOTIVATION')}}
+ {{$t('SING_IN_MOTIVATION_RIGHT')}}
-
- Manage all your documents in one place +
+ {{$t('MANAGE_DOCS')}}
@@ -38,107 +31,63 @@
- Türkmenistanyň Döwlet haryt-çig mal biržasy + {{$t('APP_TITLE')}}
+ class="my-auto mx-auto xl:ml-20 bg-white dark:bg-darkmode-600 xl:bg-transparent px-5 sm:px-8 py-8 xl:p-0 rounded-md shadow-md xl:shadow-none w-full sm:w-3/4 lg:w-2/4 xl:w-auto">
-

+

{{ $t("SIGN_IN") }}

- A few more clicks to sign in to your account. Manage all your - e-commerce accounts in one place + {{$t('SING_IN_MOTIVATION_MOBILE')}}
- + :class="{ 'border-danger': validate.email.$error }" :placeholder="$t('EMAIL')" /> - + :class="{ 'border-danger': validate.password.$error }" :placeholder="$t('PASSWORD')" + @keyup.enter="onLogin" />
-
- Forgot Password? - +
- -
-
- By signing up, you agree to our - Terms and Conditions +
diff --git a/src/views/profile-forms/BankAccount.vue b/src/views/profile-forms/BankAccount.vue index a80bc25..890035f 100644 --- a/src/views/profile-forms/BankAccount.vue +++ b/src/views/profile-forms/BankAccount.vue @@ -16,13 +16,13 @@
+ :placeholder="$t('ACC_NUMBER')" />