переводы на другие языки

This commit is contained in:
Nastya 2025-06-22 17:30:13 +03:00
parent 6a1f015ff8
commit 6f1e34a814
5 changed files with 13 additions and 5 deletions

@ -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) => {
},
}}
>
<Typography fontSize="100px">{emoji}</Typography>
<Typography fontSize={emoji ? "100px" : "18px"}>{emoji || t("select emoji")}</Typography>
</ButtonBase>
<Modal

@ -176,7 +176,7 @@ export const OwnImage = ({ imageUrl, questionId, variantId, onValidationError }:
color="text.secondary"
sx={{ p: 2, textAlign: "center" }}
>
добавьте свою картинку
{t("Add your image")}
</Typography>
</Box>
)}

@ -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"
}

@ -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": "выберите смайлик"
}

@ -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"
}