From 21af965e6506288f52c52e7c3db5bdbf82821a3f Mon Sep 17 00:00:00 2001 From: Komek Hayytnazarov Date: Fri, 30 Sep 2022 18:07:40 +0500 Subject: [PATCH] added localizations --- src/api/fetch-wrapper.js | 5 + src/assets/css/components/_global.css | 32 ++-- src/i18n/en.js | 49 ++++- src/i18n/ru.js | 49 ++++- src/i18n/tm.js | 49 ++++- src/views/profile-forms/BankAccount.vue | 213 ++++++-------------- src/views/profile-forms/Business.vue | 245 ++++++++---------------- src/views/profile-forms/Company.vue | 46 +++-- src/views/profile-forms/Contacts.vue | 138 ++++--------- src/views/profile/Main.vue | 152 +++++++-------- 10 files changed, 445 insertions(+), 533 deletions(-) diff --git a/src/api/fetch-wrapper.js b/src/api/fetch-wrapper.js index 91bd73d..bbd4e7c 100644 --- a/src/api/fetch-wrapper.js +++ b/src/api/fetch-wrapper.js @@ -79,3 +79,8 @@ async function handleResponse(response) { return data; } + +// { + + +// } diff --git a/src/assets/css/components/_global.css b/src/assets/css/components/_global.css index 2e63ef3..269598e 100755 --- a/src/assets/css/components/_global.css +++ b/src/assets/css/components/_global.css @@ -1,20 +1,20 @@ html { - @apply bg-primary; - &.dark { - @apply bg-darkmode-800; - body { - @apply text-slate-300; - *, - ::before, - ::after { - @apply border-white/5; - } - } - } + @apply bg-primary; + &.dark { + @apply bg-darkmode-800; body { - @apply antialiased overflow-x-hidden pt-3 px-8 font-roboto text-sm text-slate-800; - @include media-breakpoint-down(sm) { - @apply px-3; - } + @apply text-slate-300; + *, + ::before, + ::after { + @apply border-white/5; + } } + } + body { + @apply antialiased overflow-x-hidden pt-3 px-8 font-roboto text-sm text-black; + @include media-breakpoint-down(sm) { + @apply px-3; + } + } } diff --git a/src/i18n/en.js b/src/i18n/en.js index c7c2524..8e661cb 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -9,8 +9,9 @@ export const locale = { SUPPORT: "Support", FILE_MAX_SIZE: "File max size is {size} Kb.", FILE_ALLOWED_TYPES: "File type must be {file_types}.", - APPLICATION_PROCESS_DESCRIPTION: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever. When an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. To download the questionnaire, please {0}.", - QUESTIONNAIRE_LINK: 'download this file', + APPLICATION_PROCESS_DESCRIPTION: + "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever. When an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. To download the questionnaire, please {0}.", + QUESTIONNAIRE_LINK: "download this file", STATUS: "Status", TICKET_LIST: "Ticket list", NEW_TICKET_FORM: "New Ticket Form", @@ -48,4 +49,48 @@ export const locale = { ACCOUNT_TYPE: "Account type", ACCOUNT_TYPE_BUSINESS: "Business", ACCOUNT_TYPE_COMPANY: "Company", + + PROFILE: "Profile", + + SURNAME: "Surname", + NAME: "Name", + SHORT_NAME: "Short Name", + DOB: "Date of Birth", + POB: "Place of Birth", + PNAME: "Patronymic name", + CITIZENSHIP: "Citizenship", + REG_ADDR: "Registration address", + REG_NUMBER: "Registration number", + REG_DATE: "Registration date", + REG_AGENCY: "State registration agency", + REG_PLACE: "Registration place", + ENT_FORM: "Entrepreneur Form", + COMP_FORM: "Company Form", + SELECT_CITIZENSHIP: "Select citizenship", + + BANK: "Bank", + BANK_FORM: "Bank Form", + BANK_NAME: "Bank Name", + COUNTRY: "Country", + ACC_NUMBER: "Account number", + ACC_DATE: "Account date", + CURRENCY: "Currency", + IBAN: "IBAN", + + CONTACTS: "Contacts", + CONTACTS_FORM: "Contacts Form", + ADDRESS: "Address", + PHONE: "Phone", + FAX: "Fax", + + LEGALIZATION: "Legalization", + LEG_NUM: "Legalization number", + EXP_DATE: "Expiration date", + LEG_BTN_NULL: "Create New Application", + LEG_BTN_NEW: "Apply Form", + LEG_BTN_APPLIED: "Approve Form", + LEG_BTN_APPROVED: "Approved", + + REGISTER: "Register", + EDIT: "Edit", }; diff --git a/src/i18n/ru.js b/src/i18n/ru.js index eb83305..e711aab 100644 --- a/src/i18n/ru.js +++ b/src/i18n/ru.js @@ -9,8 +9,9 @@ export const locale = { SUPPORT: "Поддержка", FILE_MAX_SIZE: "Максимальный размер файла {size} Kb.", FILE_ALLOWED_TYPES: "Тип файла должен быть {file_types}.", - APPLICATION_PROCESS_DESCRIPTION: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever. When an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. To download the questionnaire, please {0}.", - QUESTIONNAIRE_LINK: 'download this file', + APPLICATION_PROCESS_DESCRIPTION: + "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever. When an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. To download the questionnaire, please {0}.", + QUESTIONNAIRE_LINK: "download this file", STATUS: "Статус", TICKET_LIST: "Ticket list", NEW_TICKET_FORM: "New Ticket Form", @@ -48,4 +49,48 @@ export const locale = { ACCOUNT_TYPE: "Account type", ACCOUNT_TYPE_BUSINESS: "Business", ACCOUNT_TYPE_COMPANY: "Company", + + PROFILE: "Profile", + + SURNAME: "Surname", + NAME: "Name", + SHORT_NAME: "Short Name", + DOB: "Date of Birth", + POB: "Place of Birth", + PNAME: "Patronymic name", + CITIZENSHIP: "Citizenship", + REG_ADDR: "Registration address", + REG_NUMBER: "Registration number", + REG_DATE: "Registration date", + REG_AGENCY: "State registration agency", + REG_PLACE: "Registration place", + ENT_FORM: "Entrepreneur Form", + COMP_FORM: "Company Form", + SELECT_CITIZENSHIP: "Select citizenship", + + BANK: "Bank", + BANK_FORM: "Bank Form", + BANK_NAME: "Bank Name", + COUNTRY: "Country", + ACC_NUMBER: "Account number", + ACC_DATE: "Account date", + CURRENCY: "Currency", + IBAN: "IBAN", + + CONTACTS: "Contacts", + CONTACTS_FORM: "Contacts Form", + ADDRESS: "Address", + PHONE: "Phone", + FAX: "Fax", + + LEGALIZATION: "Legalization", + LEG_NUM: "Legalization number", + EXP_DATE: "Expiration date", + LEG_BTN_NULL: "Create New Application", + LEG_BTN_NEW: "Apply Form", + LEG_BTN_APPLIED: "Approve Form", + LEG_BTN_APPROVED: "Approved", + + REGISTER: "Register", + EDIT: "Edit", }; diff --git a/src/i18n/tm.js b/src/i18n/tm.js index bd9a3cd..5983ce2 100644 --- a/src/i18n/tm.js +++ b/src/i18n/tm.js @@ -9,8 +9,9 @@ export const locale = { SUPPORT: "Goldaw", FILE_MAX_SIZE: "Faýl {size} Kb-dan uly bolmaly däl.", FILE_ALLOWED_TYPES: "Faýlyň görnüşi {file_types} bolmaly.", - APPLICATION_PROCESS_DESCRIPTION: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever. When an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. To download the questionnaire, please {0}.", - QUESTIONNAIRE_LINK: 'download this file', + APPLICATION_PROCESS_DESCRIPTION: + "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever. When an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. To download the questionnaire, please {0}.", + QUESTIONNAIRE_LINK: "download this file", STATUS: "Status", TICKET_LIST: "Ticket list", NEW_TICKET_FORM: "New Ticket Form", @@ -48,4 +49,48 @@ export const locale = { ACCOUNT_TYPE: "Account type", ACCOUNT_TYPE_BUSINESS: "Business", ACCOUNT_TYPE_COMPANY: "Company", + + PROFILE: "Profile", + + SURNAME: "Surname", + NAME: "Name", + SHORT_NAME: "Short Name", + DOB: "Date of Birth", + POB: "Place of Birth", + PNAME: "Patronymic name", + CITIZENSHIP: "Citizenship", + REG_ADDR: "Registration address", + REG_NUMBER: "Registration number", + REG_DATE: "Registration date", + REG_AGENCY: "State registration agency", + REG_PLACE: "Registration place", + ENT_FORM: "Entrepreneur Form", + COMP_FORM: "Company Form", + SELECT_CITIZENSHIP: "Select citizenship", + + BANK: "Bank", + BANK_FORM: "Bank Form", + BANK_NAME: "Bank Name", + COUNTRY: "Country", + ACC_NUMBER: "Account number", + ACC_DATE: "Account date", + CURRENCY: "Currency", + IBAN: "IBAN", + + CONTACTS: "Contacts", + CONTACTS_FORM: "Contacts Form", + ADDRESS: "Address", + PHONE: "Phone", + FAX: "Fax", + + LEGALIZATION: "Legalization", + LEG_NUM: "Legalization number", + EXP_DATE: "Expiration date", + LEG_BTN_NULL: "Create New Application", + LEG_BTN_NEW: "Apply Form", + LEG_BTN_APPLIED: "Approve Form", + LEG_BTN_APPROVED: "Approved", + + REGISTER: "Register", + EDIT: "Edit", }; diff --git a/src/views/profile-forms/BankAccount.vue b/src/views/profile-forms/BankAccount.vue index 1cd499a..a80bc25 100644 --- a/src/views/profile-forms/BankAccount.vue +++ b/src/views/profile-forms/BankAccount.vue @@ -1,45 +1,30 @@