From f8fab4a4c2399594bc65c3b5971ba8e6a2561389 Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Tue, 23 Jun 2026 21:51:52 +0200 Subject: [PATCH] fix(ui): rename Friends "Share via Telegram" to "Share" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The share button uses the OS Web Share sheet outside Telegram (the TG share picker only inside it), so "via Telegram" was misleading. Rename to a neutral "Share"/"Поделиться" and drop the now-unused tgshare class. --- ui/src/lib/i18n/en.ts | 2 +- ui/src/lib/i18n/ru.ts | 2 +- ui/src/screens/Friends.svelte | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/lib/i18n/en.ts b/ui/src/lib/i18n/en.ts index 2b83d99..07544c3 100644 --- a/ui/src/lib/i18n/en.ts +++ b/ui/src/lib/i18n/en.ts @@ -247,7 +247,7 @@ export const en = { 'friends.redeem': 'Add', 'friends.copy': 'Copy', 'friends.codeCopied': 'Code copied.', - 'friends.shareTelegram': 'Share via Telegram', + 'friends.shareTelegram': 'Share', 'friends.inviteText': "Let's play Scrabble!", 'friends.linkCopied': 'Link copied.', 'friends.selfInvite': "Hopefully you've been friends with yourself for a while ☺️", diff --git a/ui/src/lib/i18n/ru.ts b/ui/src/lib/i18n/ru.ts index 31a8c05..bbfe5bf 100644 --- a/ui/src/lib/i18n/ru.ts +++ b/ui/src/lib/i18n/ru.ts @@ -248,7 +248,7 @@ export const ru: Record = { 'friends.redeem': 'Добавить', 'friends.copy': 'Копировать', 'friends.codeCopied': 'Код скопирован.', - 'friends.shareTelegram': 'Поделиться через Telegram', + 'friends.shareTelegram': 'Поделиться', 'friends.inviteText': 'Давай играть в Эрудит!', 'friends.linkCopied': 'Ссылка скопирована.', 'friends.selfInvite': 'Надеюсь, что с собой Вы уже давно дружите ☺️', diff --git a/ui/src/screens/Friends.svelte b/ui/src/screens/Friends.svelte index b4cb81d..66f8a11 100644 --- a/ui/src/screens/Friends.svelte +++ b/ui/src/screens/Friends.svelte @@ -182,7 +182,7 @@ {t('friends.codeHint')} · {t('friends.codeExpires', { time: codeTime(code.expiresAtUnix) })} {#if tg} - + {/if} {:else}