mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 17:55:52 +01:00
feat(i18n): add support for Ukrainian
This commit is contained in:
@@ -676,6 +676,8 @@ export async function getFullCalendarLocale(locale: string) {
|
|||||||
return (await import("@fullcalendar/core/locales/ru")).default;
|
return (await import("@fullcalendar/core/locales/ru")).default;
|
||||||
case "ja":
|
case "ja":
|
||||||
return (await import("@fullcalendar/core/locales/ja")).default;
|
return (await import("@fullcalendar/core/locales/ja")).default;
|
||||||
|
case "uk":
|
||||||
|
return (await import("@fullcalendar/core/locales/uk")).default;
|
||||||
case "en":
|
case "en":
|
||||||
default:
|
default:
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|||||||
@@ -16,11 +16,12 @@ const DAYJS_LOADER: Record<LOCALE_IDS, () => Promise<typeof import("dayjs/locale
|
|||||||
"fa": () => import("dayjs/locale/fa.js"),
|
"fa": () => import("dayjs/locale/fa.js"),
|
||||||
"fr": () => import("dayjs/locale/fr.js"),
|
"fr": () => import("dayjs/locale/fr.js"),
|
||||||
"he": () => import("dayjs/locale/he.js"),
|
"he": () => import("dayjs/locale/he.js"),
|
||||||
|
"ja": () => import("dayjs/locale/ja.js"),
|
||||||
"ku": () => import("dayjs/locale/ku.js"),
|
"ku": () => import("dayjs/locale/ku.js"),
|
||||||
"ro": () => import("dayjs/locale/ro.js"),
|
"ro": () => import("dayjs/locale/ro.js"),
|
||||||
"ru": () => import("dayjs/locale/ru.js"),
|
"ru": () => import("dayjs/locale/ru.js"),
|
||||||
"tw": () => import("dayjs/locale/zh-tw.js"),
|
"tw": () => import("dayjs/locale/zh-tw.js"),
|
||||||
"ja": () => import("dayjs/locale/ja.js")
|
"uk": () => import("dayjs/locale/uk.js"),
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function initializeTranslations() {
|
export async function initializeTranslations() {
|
||||||
|
|||||||
@@ -50,6 +50,11 @@ const UNSORTED_LOCALES: Locale[] = [
|
|||||||
name: "Русский",
|
name: "Русский",
|
||||||
electronLocale: "ru"
|
electronLocale: "ru"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "uk",
|
||||||
|
name: "Українська",
|
||||||
|
electronLocale: "uk"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "ja",
|
id: "ja",
|
||||||
name: "日本語",
|
name: "日本語",
|
||||||
|
|||||||
Reference in New Issue
Block a user