SHA256
Локализовать интерфейс SHiNE на русский и английский
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user