From 6f1e34a8142689f179594a10e60c0a6042e45ec0 Mon Sep 17 00:00:00 2001 From: Nastya Date: Sun, 22 Jun 2025 17:30:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B2=D0=BE=D0=B4?= =?UTF-8?q?=D1=8B=20=D0=BD=D0=B0=20=D0=B4=D1=80=D1=83=D0=B3=D0=B8=D0=B5=20?= =?UTF-8?q?=D1=8F=D0=B7=D1=8B=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewPublicationPage/questions/Emoji/OwnEmojiPicker.tsx | 4 +++- .../ViewPublicationPage/questions/Images/OwnImage.tsx | 2 +- public/locales/en.json | 4 +++- public/locales/ru.json | 4 +++- public/locales/uz.json | 4 +++- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/components/ViewPublicationPage/questions/Emoji/OwnEmojiPicker.tsx b/lib/components/ViewPublicationPage/questions/Emoji/OwnEmojiPicker.tsx index 00b3ab8..abc9811 100644 --- a/lib/components/ViewPublicationPage/questions/Emoji/OwnEmojiPicker.tsx +++ b/lib/components/ViewPublicationPage/questions/Emoji/OwnEmojiPicker.tsx @@ -1,6 +1,7 @@ import { Box, ButtonBase, Typography, useTheme, Modal } from "@mui/material"; import { useState } from "react"; import { EmojiPicker } from "./EmojiPicker"; +import { useTranslation } from "react-i18next"; interface Props { emoji: string; @@ -9,6 +10,7 @@ interface Props { export const OwnEmojiPicker = ({ emoji = "", onEmojiSelect }: Props) => { const theme = useTheme(); + const { t } = useTranslation(); const [isPickerOpen, setIsPickerOpen] = useState(false); const handleEmojiSelect = (emojiData: any) => { @@ -41,7 +43,7 @@ export const OwnEmojiPicker = ({ emoji = "", onEmojiSelect }: Props) => { }, }} > - {emoji} + {emoji || t("select emoji")} - добавьте свою картинку + {t("Add your image")} )} diff --git a/public/locales/en.json b/public/locales/en.json index 8390ebc..b6d0001 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -54,5 +54,7 @@ "Get results": "Get results", "Data sent successfully": "Data sent successfully", "Step": "Step", - "questions are not ready yet": "There are no questions for the audience yet. Please wait" + "questions are not ready yet": "There are no questions for the audience yet. Please wait", + "Add your image": "Add your image", + "select emoji": "select emoji" } diff --git a/public/locales/ru.json b/public/locales/ru.json index b8511ff..4994e78 100644 --- a/public/locales/ru.json +++ b/public/locales/ru.json @@ -54,5 +54,7 @@ "Get results": "Получить результаты", "Data sent successfully": "Данные успешно отправлены", "Step": "Шаг", - "questions are not ready yet": "Вопросы для аудитории ещё не созданы. Пожалуйста, подождите" + "questions are not ready yet": "Вопросы для аудитории ещё не созданы. Пожалуйста, подождите", + "Add your image": "Добавьте своё изображение", + "select emoji": "выберите смайлик" } diff --git a/public/locales/uz.json b/public/locales/uz.json index c7d79a5..a272df0 100644 --- a/public/locales/uz.json +++ b/public/locales/uz.json @@ -54,5 +54,7 @@ "Get results": "Natijalarni olish", "Data sent successfully": "Ma'lumotlar muvaffaqiyatli yuborildi", "Step": "Qadam", - "questions are not ready yet": "Tomoshabinlar uchun hozircha savollar yo'q. Iltimos kuting" + "questions are not ready yet": "Tomoshabinlar uchun hozircha savollar yo'q. Iltimos kuting", + "Add your image": "Rasmingizni qo'shing", + "select emoji": "emoji tanlang" }