mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	feat(i18n/rtl): add an English with RTL enabled for testing
This commit is contained in:
		| @@ -74,7 +74,8 @@ export const LOCALE_MAPPINGS: Record<LOCALE_IDS, (() => Promise<{ default: Local | ||||
|     pt: () => import("@fullcalendar/core/locales/pt"), | ||||
|     "pt_br": () => import("@fullcalendar/core/locales/pt-br"), | ||||
|     uk: () => import("@fullcalendar/core/locales/uk"), | ||||
|     en: null | ||||
|     en: null, | ||||
|     "en_rtl": null, | ||||
| }; | ||||
|  | ||||
| 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"), | ||||
|     "de": () => import("dayjs/locale/de.js"), | ||||
|     "en": () => import("dayjs/locale/en.js"), | ||||
|     "en_rtl": () => import("dayjs/locale/en.js"), | ||||
|     "es": () => import("dayjs/locale/es.js"), | ||||
|     "fa": () => import("dayjs/locale/fa.js"), | ||||
|     "fr": () => import("dayjs/locale/fr.js"), | ||||
|   | ||||
| @@ -23,6 +23,13 @@ const UNSORTED_LOCALES: Locale[] = [ | ||||
|     { id: "tw", name: "繁體中文", electronLocale: "zh_TW" }, | ||||
|     { 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 | ||||
|      * | ||||
|   | ||||
		Reference in New Issue
	
	Block a user