89 lines
5.5 KiB
TypeScript
89 lines
5.5 KiB
TypeScript
// English fallback. Mirror the RU key set; `Record<StringKey, string>` enforces
|
||
// that every RU key has an EN counterpart at compile time.
|
||
|
||
import type { StringKey } from './ru';
|
||
|
||
export const EN: Record<StringKey, string> = {
|
||
'status.unknown': 'Checking status…',
|
||
'status.disconnected': 'Discord not linked',
|
||
'status.connected': 'Discord linked',
|
||
'status.connected-as': 'Discord linked as {handle}',
|
||
'status.connection-dead': 'Discord connection lost',
|
||
'status.token-stored': 'Discord session is not active',
|
||
'status.qr-verifying': 'Verifying sign-in…',
|
||
'status.logging-out': 'Signing out…',
|
||
'status.reconnecting': 'Reconnecting to Discord…',
|
||
'card.login-qr.name': 'Sign in with QR code',
|
||
'card.login-qr.desc': 'Scan a QR code from the Discord mobile app',
|
||
'card.refresh.aria': 'Refresh status',
|
||
'card.refresh.label': 'Refresh status',
|
||
'card.refresh.name': 'Refresh status',
|
||
'card.refresh.desc': 'Re-check whether Discord is linked',
|
||
'card.refresh.in-flight': 'Checking…',
|
||
'card.about.name': 'How the Discord bot works',
|
||
'card.about.desc': 'Sign-in, safety, and source code',
|
||
'about.title': 'About the Discord bot',
|
||
'about.body-1':
|
||
'This bot connects Discord to Vojo. After sign-in, your DMs and servers from Discord will appear in Vojo’s chat list, and replies from the Vojo app will be sent to your contacts as normal Discord messages.',
|
||
'about.body-2':
|
||
'Sign-in requires the Discord mobile app — scan the QR code via Settings → Scan QR Code. Desktop Discord and the browser cannot be used: the bridge uses Discord’s “remoteauth” mechanism, available only in the mobile app.',
|
||
'about.body-3':
|
||
'The connection runs through the open-source mautrix-discord bridge. It creates a Discord session on the Vojo server and uses it to connect Discord with your Vojo account: receive messages from Discord and send your replies back.',
|
||
'about.github-label': 'The bridge source code is public on GitHub:',
|
||
'about.github-url': 'https://github.com/mautrix/discord',
|
||
'about.body-4':
|
||
'You can revoke access at any time — either with the “Sign out of Discord” button here, or inside Discord itself under Settings → Devices → Log out of Vojo.',
|
||
'about.close': 'Close',
|
||
'about.aria-close': 'Close “About this bot”',
|
||
'auth-card.qr.title': 'QR code sign-in',
|
||
'auth-card.qr.hint': 'Open the Discord mobile app and scan this QR code.',
|
||
'auth-card.qr.preparing': 'Preparing QR code…',
|
||
'auth-card.qr.aria': 'QR code for Discord sign-in. Scan it with your phone.',
|
||
'auth-card.qr.countdown': 'Time left to scan: {minutes}:{seconds}',
|
||
'auth-card.qr.expired': 'Sign-in window expired. Tap Cancel and try again.',
|
||
'auth-card.qr.step-1': 'Open the Discord mobile app.',
|
||
'auth-card.qr.step-2': 'Open Settings → Scan QR Code.',
|
||
'auth-card.qr.step-3': 'Scan the QR and confirm sign-in on your phone.',
|
||
'auth-card.captcha.title': 'Confirm you’re not a robot',
|
||
'auth-card.captcha.hint':
|
||
'Discord asked for a CAPTCHA. Solve it below — sign-in will continue automatically once you’re done.',
|
||
'auth-card.captcha.load-error':
|
||
'Could not load the CAPTCHA. Check your network, tap Cancel and try signing in again.',
|
||
'auth-card.cancel': 'Cancel',
|
||
'auth-card.waiting-hint': 'The bot is still thinking… replies may take up to 30 seconds.',
|
||
'auth-error.captcha-required':
|
||
'Discord requested a CAPTCHA — QR sign-in is temporarily unavailable. Try again later, or sign in with a token via the bot’s chat.',
|
||
'auth-error.captcha-send-failed':
|
||
'Could not deliver your CAPTCHA solution. Check your network and try signing in again.',
|
||
'auth-error.captcha-expired': 'CAPTCHA expired — tap «Sign in with QR code» and solve it again.',
|
||
'auth-error.login-failed': 'Sign-in failed: {reason}',
|
||
'auth-error.prepare-failed': 'Failed to prepare sign-in: {reason}',
|
||
'auth-error.websocket-failed': 'Could not connect to the sign-in server: {reason}',
|
||
'auth-error.connect-after-login-failed': 'Signed in, but could not connect to Discord: {reason}',
|
||
'auth-error.already-logged-in': 'You are already signed in to Discord — refresh status.',
|
||
'auth-error.unknown-command':
|
||
'The bot does not recognise this command — check the prefix in config.json.',
|
||
'auth-error.disconnect-failed': 'Disconnect failed: {reason}',
|
||
'card.reconnect.name': 'Reconnect',
|
||
'card.reconnect.desc': 'Restore the Discord connection without signing in again',
|
||
'card.logout.name': 'Sign out of Discord',
|
||
'card.logout.desc': 'End the session for this account',
|
||
'card.logout.confirm-prompt': 'Sign out for real?',
|
||
'card.logout.confirm-yes': 'Sign out',
|
||
'card.logout.confirm-no': 'Cancel',
|
||
'card.open-space.name': 'Open in Channels',
|
||
'card.open-space.desc': 'Jump to your Discord space with all chats and servers',
|
||
'diag.space-ready': 'Discord space ready to open.',
|
||
'diag.connecting': 'Connecting to Vojo… awaiting capability handshake.',
|
||
'diag.ready': 'Ready to send commands.',
|
||
'diag.checking-status': 'Checking connection status…',
|
||
'diag.send-failed': 'send failed: {message}',
|
||
'diag.history-marker': '─── history ───',
|
||
'diag.history-unavailable': 'Could not read history — re-checking status.',
|
||
'diag.qr-issued': 'QR code issued.',
|
||
'diag.qr-consumed': 'QR code consumed — bridge confirmed the scan.',
|
||
'diag.captcha-issued': 'Discord requested a CAPTCHA — solve it in the form above.',
|
||
'bootstrap.failed': 'Widget failed to start',
|
||
'bootstrap.missing-params': 'Missing required URL params: {names}.',
|
||
'bootstrap.embedded-only': 'This page is meant to be embedded by Vojo at {route}.',
|
||
};
|