fix(calendar): missing locale for Russian

This commit is contained in:
Elian Doran
2025-08-12 14:58:39 +03:00
parent b371337ed2
commit 8e4691d4a4
2 changed files with 44 additions and 25 deletions

View File

@@ -1,6 +1,7 @@
import { describe, expect, it } from "vitest";
import { buildNote, buildNotes } from "../../test/easy-froca.js";
import CalendarView from "./calendar_view.js";
import CalendarView, { getFullCalendarLocale } from "./calendar_view.js";
import { LOCALES } from "@triliumnext/commons";
describe("Building events", () => {
it("supports start date", async () => {
@@ -174,3 +175,21 @@ describe("Promoted attributes", () => {
});
});
describe("Building locales", () => {
it("every language has a locale defined", async () => {
for (const { id, contentOnly } of LOCALES) {
if (contentOnly) {
continue;
}
const fullCalendarLocale = await getFullCalendarLocale(id);
if (id !== "en") {
expect(fullCalendarLocale, `For locale ${id}`).toBeDefined();
} else {
expect(fullCalendarLocale).toBeUndefined();
}
}
});
});