feat(i18n): add support for Ukrainian

This commit is contained in:
Elian Doran
2025-08-24 10:53:21 +03:00
parent dff525edc6
commit 9f93d30b99
3 changed files with 9 additions and 1 deletions

View File

@@ -676,6 +676,8 @@ export async function getFullCalendarLocale(locale: string) {
return (await import("@fullcalendar/core/locales/ru")).default;
case "ja":
return (await import("@fullcalendar/core/locales/ja")).default;
case "uk":
return (await import("@fullcalendar/core/locales/uk")).default;
case "en":
default:
return undefined;

View File

@@ -16,11 +16,12 @@ const DAYJS_LOADER: Record<LOCALE_IDS, () => Promise<typeof import("dayjs/locale
"fa": () => import("dayjs/locale/fa.js"),
"fr": () => import("dayjs/locale/fr.js"),
"he": () => import("dayjs/locale/he.js"),
"ja": () => import("dayjs/locale/ja.js"),
"ku": () => import("dayjs/locale/ku.js"),
"ro": () => import("dayjs/locale/ro.js"),
"ru": () => import("dayjs/locale/ru.js"),
"tw": () => import("dayjs/locale/zh-tw.js"),
"ja": () => import("dayjs/locale/ja.js")
"uk": () => import("dayjs/locale/uk.js"),
}
export async function initializeTranslations() {

View File

@@ -50,6 +50,11 @@ const UNSORTED_LOCALES: Locale[] = [
name: "Русский",
electronLocale: "ru"
},
{
id: "uk",
name: "Українська",
electronLocale: "uk"
},
{
id: "ja",
name: "日本語",