Локализовать интерфейс SHiNE на русский и английский

This commit is contained in:
AidarKC
2026-11-09 16:45:21 +03:00
parent 526941eb33
commit 405b9a91a7
133 changed files with 12464 additions and 3296 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
import { t } from '../i18n/index.js';
import { openChannelAttachmentManager } from './channel-attachment-manager.js';
import { saveProfileAvatar } from '../services/user-profile-params.js';
@@ -13,7 +14,7 @@ export async function openAvatarWizard({
const cleanStoragePwd = String(storagePwd || '').trim();
const cleanGateway = String(gateway || '').trim();
if (!cleanLogin || !cleanStoragePwd) {
throw new Error('Нет активной сессии.');
throw new Error(t('screens.avatar_wizard.text_001'));
}
const item = await openChannelAttachmentManager({
@@ -26,7 +27,7 @@ export async function openAvatarWizard({
if (!item?.sha256 || !item?.size) return false;
if (typeof onStatus === 'function') {
onStatus('Сохраняем аватар в профиль...');
onStatus(t('screens.avatar_wizard.text_002'));
}
await saveProfileAvatar(cleanLogin, item);