SHA256
Полностью поддерживает английский язык
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { t, th } from '../i18n/index.js';
|
||||
import { navigate } from '../router.js';
|
||||
|
||||
function escapeHtml(text) {
|
||||
@@ -10,8 +11,8 @@ function escapeHtml(text) {
|
||||
}
|
||||
|
||||
export function openAuthRequiredModal({
|
||||
title = 'Нужен вход',
|
||||
text = 'Эта часть доступна после входа.',
|
||||
title = t('remaining.auth_required.sign_in_required'),
|
||||
text = t('remaining.auth_required.this_section_is_available_after_you_sign_in'),
|
||||
} = {}) {
|
||||
const root = document.getElementById('modal-root');
|
||||
if (!(root instanceof HTMLElement)) {
|
||||
@@ -24,8 +25,8 @@ export function openAuthRequiredModal({
|
||||
<h3 class="modal-title">${escapeHtml(title)}</h3>
|
||||
<p class="meta-muted" style="white-space: pre-wrap; line-height: 1.45;">${escapeHtml(text)}</p>
|
||||
<div class="form-actions-grid">
|
||||
<button class="secondary-btn" type="button" id="auth-required-login">Войти</button>
|
||||
<button class="primary-btn" type="button" id="auth-required-register">Зарегистрироваться</button>
|
||||
<button class="secondary-btn" type="button" id="auth-required-login">${th('remaining.auth_required.sign_in')}</button>
|
||||
<button class="primary-btn" type="button" id="auth-required-register">${th('remaining.auth_required.register')}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user