mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
feat(i18n/rtl): add an English with RTL enabled for testing
This commit is contained in:
parent
3e30870c87
commit
034ac59c9a
@ -74,7 +74,8 @@ export const LOCALE_MAPPINGS: Record<LOCALE_IDS, (() => Promise<{ default: Local
|
|||||||
pt: () => import("@fullcalendar/core/locales/pt"),
|
pt: () => import("@fullcalendar/core/locales/pt"),
|
||||||
"pt_br": () => import("@fullcalendar/core/locales/pt-br"),
|
"pt_br": () => import("@fullcalendar/core/locales/pt-br"),
|
||||||
uk: () => import("@fullcalendar/core/locales/uk"),
|
uk: () => import("@fullcalendar/core/locales/uk"),
|
||||||
en: null
|
en: null,
|
||||||
|
"en_rtl": null,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function CalendarView({ note, noteIds }: ViewModeProps<CalendarViewData>) {
|
export default function CalendarView({ note, noteIds }: ViewModeProps<CalendarViewData>) {
|
||||||
|
@ -12,6 +12,7 @@ export const DAYJS_LOADER: Record<LOCALE_IDS, () => Promise<typeof import("dayjs
|
|||||||
"cn": () => import("dayjs/locale/zh-cn.js"),
|
"cn": () => import("dayjs/locale/zh-cn.js"),
|
||||||
"de": () => import("dayjs/locale/de.js"),
|
"de": () => import("dayjs/locale/de.js"),
|
||||||
"en": () => import("dayjs/locale/en.js"),
|
"en": () => import("dayjs/locale/en.js"),
|
||||||
|
"en_rtl": () => import("dayjs/locale/en.js"),
|
||||||
"es": () => import("dayjs/locale/es.js"),
|
"es": () => import("dayjs/locale/es.js"),
|
||||||
"fa": () => import("dayjs/locale/fa.js"),
|
"fa": () => import("dayjs/locale/fa.js"),
|
||||||
"fr": () => import("dayjs/locale/fr.js"),
|
"fr": () => import("dayjs/locale/fr.js"),
|
||||||
|
@ -23,6 +23,13 @@ const UNSORTED_LOCALES: Locale[] = [
|
|||||||
{ id: "tw", name: "繁體中文", electronLocale: "zh_TW" },
|
{ id: "tw", name: "繁體中文", electronLocale: "zh_TW" },
|
||||||
{ id: "uk", name: "Українська", electronLocale: "uk" },
|
{ id: "uk", name: "Українська", electronLocale: "uk" },
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Development-only languages.
|
||||||
|
*
|
||||||
|
* These are only displayed while in dev mode, to test some language particularities (such as RTL) more easily.
|
||||||
|
*/
|
||||||
|
{ id: "en_rtl", name: "English (right-to-left) [dev]", electronLocale: "en", rtl: true },
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Right to left languages
|
* Right to left languages
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user