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