* added missing import for date field translations * added missing keys in russian locale * added missing keys in vietnamese file * added missing locales import for calendar localisation Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
@@ -42,6 +42,16 @@ import { User } from "../Attendees/PeopleSearch";
|
|||||||
import { useTheme } from "@mui/material/styles";
|
import { useTheme } from "@mui/material/styles";
|
||||||
import { updateDarkColor } from "./utils/calendarColorsUtils";
|
import { updateDarkColor } from "./utils/calendarColorsUtils";
|
||||||
import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
|
import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
|
||||||
|
import frLocale from "@fullcalendar/core/locales/fr";
|
||||||
|
import ruLocale from "@fullcalendar/core/locales/ru";
|
||||||
|
import viLocale from "@fullcalendar/core/locales/vi";
|
||||||
|
|
||||||
|
const localeMap: Record<string, any> = {
|
||||||
|
fr: frLocale,
|
||||||
|
ru: ruLocale,
|
||||||
|
vi: viLocale,
|
||||||
|
en: undefined,
|
||||||
|
};
|
||||||
|
|
||||||
interface CalendarAppProps {
|
interface CalendarAppProps {
|
||||||
calendarRef: MutableRefObject<CalendarApi | null>;
|
calendarRef: MutableRefObject<CalendarApi | null>;
|
||||||
@@ -577,7 +587,7 @@ export default function CalendarApp({
|
|||||||
initialView="timeGridWeek"
|
initialView="timeGridWeek"
|
||||||
firstDay={1}
|
firstDay={1}
|
||||||
editable={true}
|
editable={true}
|
||||||
locale={lang}
|
locale={localeMap[lang]}
|
||||||
selectable={true}
|
selectable={true}
|
||||||
timeZone={timezone}
|
timeZone={timezone}
|
||||||
height={"100%"}
|
height={"100%"}
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
|
|||||||
import { LONG_DATE_FORMAT } from "../utils/dateTimeFormatters";
|
import { LONG_DATE_FORMAT } from "../utils/dateTimeFormatters";
|
||||||
import "dayjs/locale/fr";
|
import "dayjs/locale/fr";
|
||||||
import "dayjs/locale/en";
|
import "dayjs/locale/en";
|
||||||
|
import "dayjs/locale/ru";
|
||||||
|
import "dayjs/locale/vi";
|
||||||
|
|
||||||
dayjs.extend(customParseFormat);
|
dayjs.extend(customParseFormat);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+4
-1
@@ -153,7 +153,10 @@
|
|||||||
"peopleSearch": {
|
"peopleSearch": {
|
||||||
"label": "Поиск по имени или email",
|
"label": "Поиск по имени или email",
|
||||||
"placeholder": "Введите имя или email",
|
"placeholder": "Введите имя или email",
|
||||||
"invalidEmail": "%{email} — некорректный адрес"
|
"invalidEmail": "%{email} — некорректный адрес",
|
||||||
|
"searchError": "Не удалось загрузить контакты. Попробуйте ещё раз.",
|
||||||
|
"noResults": "Нет результатов",
|
||||||
|
"loading": "Загрузка..."
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"title": "Что-то пошло не так",
|
"title": "Что-то пошло не так",
|
||||||
|
|||||||
+4
-1
@@ -153,7 +153,10 @@
|
|||||||
"peopleSearch": {
|
"peopleSearch": {
|
||||||
"label": "Nhập tên hoặc email",
|
"label": "Nhập tên hoặc email",
|
||||||
"placeholder": "Nhập tên hoặc email",
|
"placeholder": "Nhập tên hoặc email",
|
||||||
"invalidEmail": "%{email} không phải địa chỉ email hợp lệ"
|
"invalidEmail": "%{email} không phải địa chỉ email hợp lệ",
|
||||||
|
"searchError": "Không thể lấy danh bạ. Vui lòng thử lại.",
|
||||||
|
"noResults": "Không có kết quả",
|
||||||
|
"loading": "Đang tải..."
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"title": "Đã xảy ra lỗi",
|
"title": "Đã xảy ra lỗi",
|
||||||
|
|||||||
Reference in New Issue
Block a user