mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +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;
|
||||
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;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -50,6 +50,11 @@ const UNSORTED_LOCALES: Locale[] = [
|
||||
name: "Русский",
|
||||
electronLocale: "ru"
|
||||
},
|
||||
{
|
||||
id: "uk",
|
||||
name: "Українська",
|
||||
electronLocale: "uk"
|
||||
},
|
||||
{
|
||||
id: "ja",
|
||||
name: "日本語",
|
||||
|
||||
Reference in New Issue
Block a user