Apply russian translations
This commit is contained in:
@@ -15,7 +15,13 @@ class SetLocale
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
app()->setLocale(session('locale') ?: 'tk');
|
||||
if (auth()->check()) {
|
||||
$user = $request->user();
|
||||
|
||||
if (array_key_exists($user?->locale, config('app.locales'))) {
|
||||
app()->setLocale($user->locale);
|
||||
}
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ class NovaRepo
|
||||
*/
|
||||
public static function serving(ServingNova $event): void
|
||||
{
|
||||
static::setLocale($event);
|
||||
// static::setLocale($event);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Middleware\CheckPhoneVerification;
|
||||
use App\Http\Middleware\SetLocale;
|
||||
use Laravel\Nova\Actions\ActionResource;
|
||||
use Laravel\Nova\Http\Middleware\Authenticate;
|
||||
use Laravel\Nova\Http\Middleware\Authorize;
|
||||
@@ -101,6 +102,7 @@ return [
|
||||
|
||||
'middleware' => [
|
||||
'web',
|
||||
SetLocale::class,
|
||||
HandleInertiaRequests::class,
|
||||
DispatchServingNovaEvent::class,
|
||||
BootTools::class,
|
||||
@@ -108,6 +110,7 @@ return [
|
||||
],
|
||||
|
||||
'api_middleware' => [
|
||||
// SetLocale::class,
|
||||
'nova',
|
||||
Authenticate::class,
|
||||
Authorize::class,
|
||||
|
||||
40
lang/ru.json
40
lang/ru.json
@@ -29,6 +29,7 @@
|
||||
"Go to page :page": "Перейти к :page-й странице",
|
||||
"Gone": "Удалено",
|
||||
"Hello!": "Здравствуйте!",
|
||||
"Help": "Помощь",
|
||||
"HTTP Version Not Supported": "Версия HTTP не поддерживается",
|
||||
"I'm a teapot": "Я - чайник",
|
||||
"If you did not create an account, no further action is required.": "Если Вы не создавали учетную запись, никаких дополнительных действий не требуется.",
|
||||
@@ -76,7 +77,6 @@
|
||||
"Please confirm your password before continuing.": "Пожалуйста, подтвердите свой пароль, прежде чем продолжить.",
|
||||
"Precondition Failed": "Условие ложно",
|
||||
"Precondition Required": "Требуется предусловие",
|
||||
"Processing": "Идет обработка",
|
||||
"Proxy Authentication Required": "Требуется аутентификация прокси",
|
||||
"Railgun Error": "Ошибка соединения с Railgun",
|
||||
"Range Not Satisfiable": "Диапазон недостижим",
|
||||
@@ -122,13 +122,45 @@
|
||||
"Whoops!": "Упс!",
|
||||
"You are logged in!": "Вы вошли в систему.",
|
||||
"You are receiving this email because we received a password reset request for your account.": "Вы получили это письмо, потому что мы получили запрос на сброс пароля для Вашей учётной записи.",
|
||||
"Card pin": "Заявки на ПИН конверт",
|
||||
"Card pin": "Заявка на ПИН конверт",
|
||||
"Order new card": "Заявки на карты",
|
||||
"Card requisite": "Заявки на реквизиты",
|
||||
"Card department": "Карточный отдел",
|
||||
"Loan department": "Кредиты",
|
||||
"Phone": "Мобильный телефон",
|
||||
"Patronic name": "Отчество",
|
||||
"Orders": "Заявки",
|
||||
"Date of birth": "Дата рождения"
|
||||
"Date of birth": "Дата рождения",
|
||||
"Username": "Логин",
|
||||
"Successfully logged in": "Успешно авторизован",
|
||||
"Press continue": "Нажмите продолжить",
|
||||
"Forgot your password?": "Забыли пароль?",
|
||||
"Verification code": "Проверочный код",
|
||||
"Enter your username to continue": "Введите свое имя пользователя, чтобы продолжить",
|
||||
"Submit": "Отправить",
|
||||
"Go to login page": "Перейти на страницу входа",
|
||||
"Pending": "В ожидании",
|
||||
"Registered": "Зарегистрировано",
|
||||
"Processing": "В процессе",
|
||||
"Completed": "Завершенный",
|
||||
"Cancelled": "Отменено",
|
||||
"Certificates of loan repayment": "Свидетельства о погашении кредита",
|
||||
"Reason for issuing the card": "Причина выдачи карты",
|
||||
"Card type": "Тип карты",
|
||||
"Card": "Карта",
|
||||
"Card number": "Номер карты",
|
||||
"Surname": "Фамилия",
|
||||
"Old surname (if changed)": "Старая фамилия (если менялась)",
|
||||
"Citizenship": "Гражданство",
|
||||
"Work location and your position": "Место работы и ваша должность",
|
||||
"Passport serie": "Паспортная серия",
|
||||
"Passport id": "Номер паспорта",
|
||||
"Passport date of issue": "Дата выдачи паспорта",
|
||||
"Passport files": "Паспортные файлы",
|
||||
"I have read the contract": "Я прочитал договор",
|
||||
"I accept terms of contract": "Я принимаю условия договора",
|
||||
"Click to read": "Нажмите, чтобы прочитать",
|
||||
"Card requisites": "Реквизиты карты",
|
||||
"Card requisite": "Реквизит карты",
|
||||
"Ready files": "Готовые файлы",
|
||||
"Card pins": "Заявки на ПИН конверт"
|
||||
}
|
||||
|
||||
@@ -274,5 +274,6 @@
|
||||
"Card pin": "Kart pin bukja",
|
||||
"Card pins": "Kart pin bukjalar",
|
||||
"Certificate of loan repayment": "Karzyň ýapylandygy barada güwanama almak",
|
||||
"Certificates of loan repayment": "Karzyň ýapylandygy barada güwanamalar"
|
||||
"Certificates of loan repayment": "Karzyň ýapylandygy barada güwanamalar",
|
||||
"Ready files": "Taýýar faýllar"
|
||||
}
|
||||
|
||||
41
lang/vendor/nova/ru.json
vendored
41
lang/vendor/nova/ru.json
vendored
@@ -470,5 +470,42 @@
|
||||
"You are receiving this email because we received a password reset request for your account.": "Вы получили это письмо, потому что мы получили запрос на сброс пароля для Вашей учётной записи.",
|
||||
"Zambia": "Замбия",
|
||||
"Zimbabwe": "Зимбабве",
|
||||
"—": "—"
|
||||
}
|
||||
"—": "—",
|
||||
"Dashboards": "Главная страница",
|
||||
"Loan": "Кредит",
|
||||
"Loan order": "Заказ кредита",
|
||||
"Loan orders": "Кредитные заказы",
|
||||
"Loan type": "Тип кредита",
|
||||
"Loan types": "Виды кредитов",
|
||||
"Status": "Статус",
|
||||
"Created by": "Создан",
|
||||
"Note": "Примечание",
|
||||
"Region": "Регион",
|
||||
"Branch": "Филиал",
|
||||
"Full Name": "Полное имя",
|
||||
"Education": "Образование",
|
||||
"Marriage status": "Состояния в браке",
|
||||
"Residence (passport)": "Место жительства (паспорт)",
|
||||
"Current Residence": "Текущее место жительства",
|
||||
"Email": "Эл. адрес",
|
||||
"Phone Additional": "Дополнительный телефон",
|
||||
"Home phone": "Домашний телефон",
|
||||
"Work company name": "Название рабочей компании",
|
||||
"HR department work number": "Рабочий номер отдела кадров",
|
||||
"Work region": "Рабочая область",
|
||||
"Work province": "Рабочая провинция",
|
||||
"Position": "Позиция",
|
||||
"Salary": "Зарплата",
|
||||
"Work started at": "Дата приема на работу",
|
||||
"Passport": "Паспорт",
|
||||
"Job": "Работа",
|
||||
"Contact data": "Контактные данные",
|
||||
"Personal data": "Личные данные",
|
||||
"Location": "Расположение",
|
||||
"Passport given by": "Паспорт выдан",
|
||||
"Born place (passport)": "Место рождения (паспорт)",
|
||||
"Passport (page 1)": "Паспорт (стр. 1)",
|
||||
"Passport (page 2-3)": "Паспорт (стр. 2-3)",
|
||||
"Passport (page 8-9)": "Паспорт (стр. 8-9)",
|
||||
"Passport (page 32)": "Паспорт (стр. 32)"
|
||||
}
|
||||
|
||||
1
resources/css/vendor/nova/css/additional.css
vendored
1
resources/css/vendor/nova/css/additional.css
vendored
@@ -5,6 +5,7 @@
|
||||
border-left-color: rgba(0, 0, 0, 0) !important;
|
||||
|
||||
/* border-bottom: 1px solid rgb(51,65,85) !important;*/
|
||||
/* border: none !important;*/
|
||||
}
|
||||
|
||||
input {
|
||||
|
||||
@@ -45,73 +45,60 @@ if (response.errors) {
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="login-section d-center items-center h-screen">
|
||||
<div class="d-none h-full max-w-4xl">
|
||||
<img src="/assets/images/bank-img.png" class="h-full object-cover">
|
||||
<form
|
||||
method="POST"
|
||||
action="{{ route('reset-password') }}"
|
||||
onsubmit="event.preventDefault();resetPassword(event)"
|
||||
class="bg-white dark:bg-gray-800 rounded-lg p-8 w-[25rem] mx-auto"
|
||||
>
|
||||
@csrf
|
||||
|
||||
<h2 class="text-2xl text-center font-normal mb-6">{{ __('Enter your username to continue') }}</h2>
|
||||
<svg class="block mx-auto mb-6" xmlns="http://www.w3.org/2000/svg" width="100" height="2" viewBox="0 0 100 2">
|
||||
<path fill="#D8E3EC" d="M0 0h100v2H0z"></path>
|
||||
</svg>
|
||||
|
||||
<div id="username-box" class="mb-6">
|
||||
<label class="block mb-2" for="username">
|
||||
{{ __('Username') }}
|
||||
</label>
|
||||
<input
|
||||
id="username"
|
||||
type="text"
|
||||
name="username"
|
||||
class="form-control form-input form-input-bordered w-full"
|
||||
autofocus=""
|
||||
>
|
||||
<input type="hidden" name="step-sms" value="1">
|
||||
|
||||
<span id="username-error-box" class="text-red-500 text-italic error-box"></span>
|
||||
</div>
|
||||
|
||||
<div class="mb-6 hidden" id="verification-code-box">
|
||||
<label class="block mb-2" for="verification">
|
||||
{{ __('Verification code') }}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="hidden" id="reset-password-container">
|
||||
<div class="mb-6" id="password-box">
|
||||
<label class="block mb-2" for="password">
|
||||
{{ __('Password') }}
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<div class="logo">
|
||||
{{-- <div class="mx-auto py-2 max-w-md flex justify-center">
|
||||
<span class="text-3xl text-center">{{ __('Forgot your password?') }}</span>
|
||||
</div> --}}
|
||||
{{-- <img src="assets/images/logo-login.png" width="100px"> --}}
|
||||
</div>
|
||||
<form
|
||||
method="POST"
|
||||
action="{{ route('reset-password') }}"
|
||||
onsubmit="event.preventDefault();resetPassword(event)"
|
||||
class="bg-white dark:bg-gray-800 rounded-lg p-8 w-[25rem] mx-auto"
|
||||
>
|
||||
@csrf
|
||||
|
||||
<h2 class="text-2xl text-center font-normal mb-6">{{ __('Enter your username to continue') }}</h2>
|
||||
<svg class="block mx-auto mb-6" xmlns="http://www.w3.org/2000/svg" width="100" height="2" viewBox="0 0 100 2">
|
||||
<path fill="#D8E3EC" d="M0 0h100v2H0z"></path>
|
||||
</svg>
|
||||
|
||||
<div id="username-box" class="mb-6">
|
||||
<label class="block mb-2" for="username">
|
||||
{{ __('Username') }}
|
||||
</label>
|
||||
<input
|
||||
id="username"
|
||||
type="text"
|
||||
name="username"
|
||||
class="form-control form-input form-input-bordered w-full"
|
||||
autofocus=""
|
||||
>
|
||||
<input type="hidden" name="step-sms" value="1">
|
||||
|
||||
<span id="username-error-box" class="text-red-500 text-italic error-box"></span>
|
||||
</div>
|
||||
|
||||
<div class="mb-6 hidden" id="verification-code-box">
|
||||
<label class="block mb-2" for="verification">
|
||||
{{ __('Verification code') }}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="hidden" id="reset-password-container">
|
||||
<div class="mb-6" id="password-box">
|
||||
<label class="block mb-2" for="password">
|
||||
{{ __('Password') }}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="mb-6" id="password-confirm-box">
|
||||
<label class="block mb-2" for="password_confirmation">
|
||||
{{ __('Confirm Password') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 inline-flex items-center justify-center h-9 px-3 mb-3 w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center" type="submit">
|
||||
<span class=""><span>{{ __('Submit') }}</span></span>
|
||||
</button>
|
||||
<a href="{{ route('register') }}" class="w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 inline-flex items-center justify-center h-9 px-3 mb-3 w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center">
|
||||
<span class=""><span>{{ __('Go to login page') }}</span></span>
|
||||
</a>
|
||||
</form>
|
||||
<div class="mb-6" id="password-confirm-box">
|
||||
<label class="block mb-2" for="password_confirmation">
|
||||
{{ __('Confirm Password') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 inline-flex items-center justify-center h-9 px-3 mb-3 w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center" type="submit">
|
||||
<span class=""><span>{{ __('Submit') }}</span></span>
|
||||
</button>
|
||||
<a href="{{ route('register') }}" class="w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 inline-flex items-center justify-center h-9 px-3 mb-3 w-full flex justify-center shadow relative bg-primary-500 hover:bg-primary-400 text-white dark:text-gray-900 w-full flex justify-center">
|
||||
<span class=""><span>{{ __('Go to login page') }}</span></span>
|
||||
</a>
|
||||
</form>
|
||||
@stop
|
||||
|
||||
Reference in New Issue
Block a user