mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
fix(calendar): missing locale for Russian
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user