feat(client): add new translation

This commit is contained in:
2025-07-10 18:52:44 +05:00
parent 51171377e2
commit 51344ef218

View File

@@ -1,99 +1,101 @@
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import LanguageDetector from "i18next-browser-languagedetector";
i18n
.use(LanguageDetector)
.use(initReactI18next)
.init({
fallbackLng: 'en',
supportedLngs: ['en', 'ru'],
fallbackLng: "en",
supportedLngs: ["en", "ru"],
interpolation: { escapeValue: false },
resources: {
en: {
translation: {
accounts: 'Accounts',
processDiagrams: 'Process diagrams',
runningProcesses: 'Running processes',
settings: 'Settings',
eventsList: 'Events list',
configuration: 'Configuration',
selectPhoto: 'Select photo',
name: 'Name',
login: 'Login',
password: 'Password',
email: 'Email',
tenant: 'Tenant',
role: 'Role',
status: 'Status',
nameMessage: 'Enter name',
loginMessage: 'Enter login',
passwordMessage: 'Enter password',
emailMessage: 'Enter email',
emailErrorMessage: 'Incorrect email',
tenantMessage: 'Enter tenant',
roleMessage: 'Choose role',
statusMessage: 'Choose status',
addAccount: 'Add account',
save: 'Save changes',
newAccount: 'New account',
ACTIVE: 'Active',
DISABLED: 'Disabled',
BLOCKED: 'Blocked',
DELETED: 'Deleted',
OWNER: 'Owner',
ADMIN: 'Admin',
EDITOR: 'Editor',
VIEWER: 'Viewer',
nameLogin: 'Name, login',
createdAt: 'Created',
saving: 'Saving...',
createdAccountMessage: 'User successfully created!',
editAccountMessage: 'User successfully updated!',
you: '(You)',
accounts: "Accounts",
processDiagrams: "Process diagrams",
runningProcesses: "Running processes",
settings: "Settings",
eventsList: "Events list",
configuration: "Configuration",
selectPhoto: "Select photo",
name: "Name",
login: "Login",
password: "Password",
email: "Email",
tenant: "Tenant",
role: "Role",
status: "Status",
nameMessage: "Enter name",
loginMessage: "Enter login",
passwordMessage: "Enter password",
emailMessage: "Enter email",
emailErrorMessage: "Incorrect email",
tenantMessage: "Enter tenant",
roleMessage: "Choose role",
statusMessage: "Choose status",
addAccount: "Add account",
save: "Save changes",
newAccount: "New account",
ACTIVE: "Active",
DISABLED: "Disabled",
BLOCKED: "Blocked",
DELETED: "Deleted",
OWNER: "Owner",
ADMIN: "Admin",
EDITOR: "Editor",
VIEWER: "Viewer",
nameLogin: "Name, login",
createdAt: "Created",
saving: "Saving...",
createdAccountMessage: "User successfully created!",
editAccountMessage: "User successfully updated!",
you: "(You)",
editNode: "Editing a block",
},
},
ru: {
translation: {
accounts: 'Учетные записи',
processDiagrams: 'Схемы процессов',
runningProcesses: 'Запущенные процессы',
settings: 'Настройки',
eventsList: 'Справочкин событий',
configuration: 'Конфигурация',
selectPhoto: 'Выбрать фото',
name: 'Имя',
login: 'Логин',
password: 'Пароль',
email: 'Имейл',
tenant: 'Привязка',
role: 'Роль',
status: 'Статус',
nameMessage: 'Введите имя',
loginMessage: 'Введите логин',
passwordMessage: 'Введите пароль',
emailMessage: 'Введите имейл',
emailErrorMessage: 'Некорректный имейл',
tenantMessage: 'Введите привязку',
roleMessage: 'Выберите роль',
statusMessage: 'Выберите статус',
addAccount: 'Добавить аккаунт',
save: 'Сохранить изменения',
newAccount: 'Новая учетная запись',
ACTIVE: 'Активен',
DISABLED: 'Выключен',
BLOCKED: 'Заблокирован',
DELETED: 'Удален',
OWNER: 'Владелец',
ADMIN: 'Админ',
EDITOR: 'Редактор',
VIEWER: 'Наблюдатель',
nameLogin: 'Имя, Логин',
createdAt: 'Создано',
saving: 'Сохранение...',
createdAccountMessage: 'Пользователь успешно создан!',
editAccountMessage: 'Пользователь успешно обновлен!',
you: '(Вы)',
accounts: "Учетные записи",
processDiagrams: "Схемы процессов",
runningProcesses: "Запущенные процессы",
settings: "Настройки",
eventsList: "Справочкин событий",
configuration: "Конфигурация",
selectPhoto: "Выбрать фото",
name: "Имя",
login: "Логин",
password: "Пароль",
email: "Имейл",
tenant: "Привязка",
role: "Роль",
status: "Статус",
nameMessage: "Введите имя",
loginMessage: "Введите логин",
passwordMessage: "Введите пароль",
emailMessage: "Введите имейл",
emailErrorMessage: "Некорректный имейл",
tenantMessage: "Введите привязку",
roleMessage: "Выберите роль",
statusMessage: "Выберите статус",
addAccount: "Добавить аккаунт",
save: "Сохранить изменения",
newAccount: "Новая учетная запись",
ACTIVE: "Активен",
DISABLED: "Выключен",
BLOCKED: "Заблокирован",
DELETED: "Удален",
OWNER: "Владелец",
ADMIN: "Админ",
EDITOR: "Редактор",
VIEWER: "Наблюдатель",
nameLogin: "Имя, Логин",
createdAt: "Создано",
saving: "Сохранение...",
createdAccountMessage: "Пользователь успешно создан!",
editAccountMessage: "Пользователь успешно обновлен!",
you: "(Вы)",
editNode: "Редактирование блока",
},
},
},