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

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 { Box, ButtonBase, Typography, useTheme, Modal } from "@mui/material";
import { useState } from "react"; import { useState } from "react";
import { EmojiPicker } from "./EmojiPicker"; import { EmojiPicker } from "./EmojiPicker";
import { useTranslation } from "react-i18next";
interface Props { interface Props {
emoji: string; emoji: string;
@ -9,6 +10,7 @@ interface Props {
export const OwnEmojiPicker = ({ emoji = "", onEmojiSelect }: Props) => { export const OwnEmojiPicker = ({ emoji = "", onEmojiSelect }: Props) => {
const theme = useTheme(); const theme = useTheme();
const { t } = useTranslation();
const [isPickerOpen, setIsPickerOpen] = useState(false); const [isPickerOpen, setIsPickerOpen] = useState(false);
const handleEmojiSelect = (emojiData: any) => { 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> </ButtonBase>
<Modal <Modal

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

@ -54,5 +54,7 @@
"Get results": "Get results", "Get results": "Get results",
"Data sent successfully": "Data sent successfully", "Data sent successfully": "Data sent successfully",
"Step": "Step", "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": "Получить результаты", "Get results": "Получить результаты",
"Data sent successfully": "Данные успешно отправлены", "Data sent successfully": "Данные успешно отправлены",
"Step": "Шаг", "Step": "Шаг",
"questions are not ready yet": "Вопросы для аудитории ещё не созданы. Пожалуйста, подождите" "questions are not ready yet": "Вопросы для аудитории ещё не созданы. Пожалуйста, подождите",
"Add your image": "Добавьте своё изображение",
"select emoji": "выберите смайлик"
} }

@ -54,5 +54,7 @@
"Get results": "Natijalarni olish", "Get results": "Natijalarni olish",
"Data sent successfully": "Ma'lumotlar muvaffaqiyatli yuborildi", "Data sent successfully": "Ma'lumotlar muvaffaqiyatli yuborildi",
"Step": "Qadam", "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"
} }