From 4a299155e717c627f16188d2a6ee9d05afe94aca Mon Sep 17 00:00:00 2001 From: grendervill Date: Tue, 22 Sep 2026 21:52:20 +0300 Subject: [PATCH] =?UTF-8?q?fix(web):=20=D0=BA=D0=BB=D1=8E=D1=87=D0=B8=20se?= =?UTF-8?q?ttings.channel.background.*=20=D0=B2=20ru=20=D0=B8=20en?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Раздел «Фон комнаты» запрашивал вложенные ключи, а строки лежали на уровень выше (settings.channel.title и соседние), поэтому в интерфейсе виднелись сырые ключи i18n. Строки перенесены под settings.channel.background в обеих локалях, паритет ru/en сохранён — web/tests/i18n.test.ts зелёный. --- web/src/i18n/locales/en.json | 16 +++++++++------- web/src/i18n/locales/ru.json | 16 +++++++++------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/web/src/i18n/locales/en.json b/web/src/i18n/locales/en.json index f21dbf1..37fa797 100644 --- a/web/src/i18n/locales/en.json +++ b/web/src/i18n/locales/en.json @@ -1179,13 +1179,15 @@ "deleteConfirm": "Delete the webhook? The link stops working, messages already sent stay.", "stepUpBody": "Creating a webhook requires confirming your identity: enter your password{{totp}}." }, - "title": "Channel background", - "description": "An image behind the message feed. Animated GIF and WebP keep their animation; with the system reduce-motion setting the first frame is shown.", - "empty": "No background set.", - "upload": "Upload background", - "remove": "Remove background", - "notImage": "An image file is required", - "tooLarge": "File is larger than 5 MB", + "background": { + "title": "Channel background", + "description": "An image behind the message feed. Animated GIF and WebP keep their animation; with the system reduce-motion setting the first frame is shown.", + "empty": "No background set.", + "upload": "Upload background", + "remove": "Remove background", + "notImage": "An image file is required", + "tooLarge": "File is larger than 5 MB" + }, "permissions": { "title": "Channel access", "description": "Channel permissions on top of server ones: a private channel is hidden from @everyone, access is granted to roles and individual members.", diff --git a/web/src/i18n/locales/ru.json b/web/src/i18n/locales/ru.json index 8b2804f..77998ef 100644 --- a/web/src/i18n/locales/ru.json +++ b/web/src/i18n/locales/ru.json @@ -1179,13 +1179,15 @@ "deleteConfirm": "Удалить вебхук? Ссылка перестанет работать, уже отправленные сообщения останутся.", "stepUpBody": "Создание вебхука требует подтверждения личности: введите пароль{{totp}}." }, - "title": "Фон комнаты", - "description": "Картинка за лентой сообщений. Анимированные GIF и WebP сохраняют анимацию; при системной настройке «уменьшить движение» показывается первый кадр.", - "empty": "Фон не задан.", - "upload": "Загрузить фон", - "remove": "Убрать фон", - "notImage": "Нужен файл изображения", - "tooLarge": "Файл больше 5 МБ", + "background": { + "title": "Фон комнаты", + "description": "Картинка за лентой сообщений. Анимированные GIF и WebP сохраняют анимацию; при системной настройке «уменьшить движение» показывается первый кадр.", + "empty": "Фон не задан.", + "upload": "Загрузить фон", + "remove": "Убрать фон", + "notImage": "Нужен файл изображения", + "tooLarge": "Файл больше 5 МБ" + }, "permissions": { "title": "Доступ к комнате", "description": "Права комнаты поверх серверных: приватная комната скрыта для @everyone, доступ выдают роли и отдельные участники.",