добавлен объект локализаци

This commit is contained in:
DmitriyB
2022-07-26 17:58:30 +05:00
parent 2cb028ae16
commit 0a550593e5
6 changed files with 128 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="ru">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
+122
View File
@@ -0,0 +1,122 @@
export const LangDict = {
mainTitle: {
ru: 'Удаленная демонстрация жилого комплекса' ,
en: 'Remote demonstration of residential complex'
},
mainDescription: {
ru: 'Основанная на стриминге технология удаленной демонстрации позволяет познакомиться с жилым комплексом, не посещая офис продаж.',
en: 'Technology of remote demonstration makes it possible to show residential complex without visiting the sales office.'
},
startDemoButton: {
ru: 'Начать демонстрацию',
en: 'Start the demonstration'
},
startDemoTitle: {
ru: 'Запустите демонстрацию',
en: 'Start the demonstration'
},
startDemoDescriptionStart: {
ru: 'Начните новую демонстрацию жилого комплекса',
en: 'Start a new demonstration of an apartment complex'
},
startNewDemoButton: {
ru: 'Начать новую демонстрацию',
en: 'Start new demonstration'
},
startDemoDescriptionEnroll: {
ru: 'Запланируйте демонстрацию с сотрудником отдела продаж',
en: 'schedule a demonstration with manager'
},
enrollNewDemoButton: {
ru: 'Запланировать демонстрацию',
en: 'Schedule the demonstration'
},
demoStartedTitle: {
ru: 'Демонстрация запущена',
en: 'Demonstration launched'
},
demoStartedDescription: {
ru: 'Код для подключения к демонстрации:',
en: 'Code to connect to the demonstration:'
},
connectToDemoButton: {
ru: 'Подключиться',
en: 'Connect'
},
footNoteTextFirst: {
ru: 'Данная технология находится на стадии разработки.',
en: 'This technology is still under development.'
},
footNoteTextSecond: {
ru: 'Если подключиться к демонстрации не удалось, свяжитесь с нами.',
en: 'If you are unable to connect to the demonstration, please contact us.'
},
footNoteNumber: {
ru: '+7 800 770 00 67 (Россия) / +971 50 983 8902 (ОАЭ)',
en: '+7 800 770 00 67 (Russia) / +971 50 983 8902 (UAE)'
},
selectDate: {
ru: 'Выбор даты',
en: 'Select date'
},
legendActive: {
ru: 'Запись есть',
en: 'Available'
},
legendDisabled: {
ru: 'Записи нет',
en:'Unavailable'
},
selectTime: {
ru: 'Выбор времени',
en: 'Select time'
},
checkout: {
ru: 'Оформление',
en: 'Checkout'
},
checkoutButton: {
ru: 'Запланировать',
en: 'Schedule'
},
checkouted: {
ru: 'Просмотр запланирован',
en: 'View scheduled'
},
checkoutedDescription: {
ru: 'Дополнительная информация будет отправлена на указанный почтовый адрес или номер телефона.',
en: 'Additional information will be sent to the specified mailing address or phone number.'
},
toHomeButton: {
ru: 'На главную',
en: 'Home'
},
contactTitle: {
ru: 'Контакты',
en: 'Contacts'
},
contactRus: {
ru: 'Россия',
en: 'Russia'
},
contactUat: {
ru: 'ОАЭ',
en: 'UAE'
},
socials: {
ru: 'Соцсети',
en: 'Socials'
},
address: {
ru: 'Адрес',
en: 'Address'
},
streetName: {
ru: 'ул. Московская, 47,',
en: 'Moskovskaya st., 47, '
},
townName: {
ru: 'Екатеринбург, Россия',
en: 'Ekaterinburg, Russia'
}
};
@@ -20,8 +20,9 @@ export const CalendarComponent:React.FC<TProps> = React.memo((props) => {
9: 'Октября',
10: 'Ноября',
11: 'Декабря'
}
return <Calendar
}
return <Calendar
// locale="en"
showDoubleView={false}
next2Label={null}
prev2Label={null}
+1 -1
View File
@@ -1,5 +1,5 @@
import React from "react";
import { PinkButton } from "./button";
import { PinkButton } from "./pinkButton";
type TProps = {
textButton: string
+1 -1
View File
@@ -2,7 +2,7 @@ import React, { useState } from "react";
import './form.css';
import { useForm, Controller } from 'react-hook-form';
import { InputProps, styled, TextField, TextFieldProps } from "@mui/material";
import { PinkButton } from "../button";
import { PinkButton } from "../pinkButton";
import { StyledOptions } from "@emotion/styled";
import { MUIStyledCommonProps } from "@mui/system";