feat(i18n/rtl): add an English with RTL enabled for testing

This commit is contained in:
Elian Doran 2025-10-08 11:51:14 +03:00
parent 3e30870c87
commit 034ac59c9a
No known key found for this signature in database
3 changed files with 10 additions and 1 deletions

View File

@ -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>) {

View File

@ -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"),

View File

@ -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
*