SHA256
Полностью поддерживает английский язык
This commit is contained in:
@@ -19,8 +19,8 @@ export const pageMeta = { id: 'add-channel-view', get title() { return t('screen
|
||||
|
||||
const CREATE_CHANNEL_FLASH_KEY = 'shine-channels-create-success';
|
||||
const CHANNEL_TYPE_PUBLIC = 1;
|
||||
const CHANNEL_LOGIN_HINT = 'Латиница, цифры, _ и -, от 4 до 32 символов, не только цифры.';
|
||||
const CHANNEL_LOGIN_DIGITS_ONLY_HINT = 'Имя канала не должно состоять только из цифр.';
|
||||
const CHANNEL_LOGIN_HINT = () => t('remaining.add_channel.channel_login_hint');
|
||||
const CHANNEL_LOGIN_DIGITS_ONLY_HINT = () => t('remaining.add_channel.channel_login_digits_only_hint');
|
||||
|
||||
function persistCreateSuccessFlash(message) {
|
||||
try {
|
||||
@@ -138,7 +138,7 @@ export function render({navigate, chrome}) {
|
||||
<div class="form-field">
|
||||
<label for="channel-name">${th('screens.add_channel_view.text_026')}</label>
|
||||
<input id="channel-name" class="input" maxlength="32" placeholder="my-channel" required autocomplete="off" autocapitalize="off" spellcheck="false" />
|
||||
<div class="form-field__hint channel-create-login-hint">${CHANNEL_LOGIN_HINT} Заполняется из названия, можно поправить.</div>
|
||||
<div class="form-field__hint channel-create-login-hint">${CHANNEL_LOGIN_HINT()}${th('remaining.html_add_channel_view.auto_filled_from_the_title_you_can_edit_it')}</div>
|
||||
<div class="form-field__hint channel-link-preview" id="channel-link-preview" hidden></div>
|
||||
<div id="channel-name-error" class="inline-error"></div>
|
||||
</div>
|
||||
@@ -214,7 +214,7 @@ export function render({navigate, chrome}) {
|
||||
ownerBlockchainName,
|
||||
channelName: normalizedChannelName,
|
||||
});
|
||||
linkPreviewEl.innerHTML = `Прямая ссылка: <a href="${directUrl}" target="_blank" rel="noopener noreferrer">${directUrl}</a>`;
|
||||
linkPreviewEl.innerHTML = `${th('remaining.html_add_channel_view.direct_link')}<a href="${directUrl}" target="_blank" rel="noopener noreferrer">${directUrl}</a>`;
|
||||
};
|
||||
|
||||
const refreshAvatarAvailability = async () => {
|
||||
@@ -328,7 +328,7 @@ export function render({navigate, chrome}) {
|
||||
|
||||
const check = updateValidation();
|
||||
if (check.name && /^[0-9]+$/.test(check.name)) {
|
||||
nameErrorEl.textContent = CHANNEL_LOGIN_DIGITS_ONLY_HINT;
|
||||
nameErrorEl.textContent = CHANNEL_LOGIN_DIGITS_ONLY_HINT();
|
||||
nameEl.focus();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user