add multilanguage support and add russian language

This commit is contained in:
cany748
2022-06-11 15:30:09 +07:00
parent bbd19b7a6f
commit ceacaa9e3c
6 changed files with 134 additions and 38 deletions

60
src/www/js/i18n.js Normal file
View File

@@ -0,0 +1,60 @@
'use strict';
const messages = { // eslint-disable-line no-unused-vars
en: {
name: 'Name',
password: 'Password',
signIn: 'Sign In',
logout: 'Logout',
updateAvailable: 'There is an update available!',
update: 'Update',
clients: 'Clients',
new: 'New',
deleteClient: 'Delete Client',
deleteDialog1: 'Are you sure you want to delete',
deleteDialog2: 'This action cannot be undone.',
cancel: 'Cancel',
create: 'Create',
createdAt: 'Created at ',
lastSeen: 'Last seen at ',
totalDownload: 'Total Download: ',
totalUpload: 'Total Upload: ',
newClient: 'New Client',
disableClient: 'Disable Client',
enableClient: 'Enable Client',
noClients: 'There are no clients yet.',
showQR: 'Show QR Code',
downloadConfig: 'Download Configuration',
madeBy: 'Made by',
donate: 'Donate',
changeLang: 'Change language',
},
ru: {
name: 'Имя',
password: 'Пароль',
signIn: 'Войти',
logout: 'Выйти',
updateAvailable: 'Доступно обновление!',
update: 'Обновить',
clients: 'Клиенты',
new: 'Создать',
deleteClient: 'Удалить клиента',
deleteDialog1: 'Вы уверены, что хотите удалить',
deleteDialog2: 'Это действие невозможно отменить.',
cancel: 'Закрыть',
create: 'Создать',
createdAt: 'Создано в ',
lastSeen: 'Последнее подключение в ',
totalDownload: 'Всего скачано: ',
totalUpload: 'Всего загружено: ',
newClient: 'Создать клиента',
disableClient: 'Выключить клиента',
enableClient: 'Включить клиента',
noClients: 'Пока нету клиентов.',
showQR: 'Показать QR код',
downloadConfig: 'Скачать конфигурацию',
madeBy: 'Сделано',
donate: 'Поблагодарить',
changeLang: 'Выбор языка',
},
};