import { getText } from "../../../../locales/index.js";
//#region src/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.ts
/** 日历视图文案：占位符 `{name}`、`{date}` 等由调用方替换 */
function tCal(id, vars) {
	const raw = getText(id);
	if (typeof raw === "function") return id;
	let s = String(raw !== null && raw !== void 0 ? raw : "");
	if (vars) for (const [k, v] of Object.entries(vars)) s = s.split(`{${k}}`).join(String(v));
	return s;
}
/** 月/周表头：周一为 0（与 rangeDays / startOfWeek 一致） */
const CALENDAR_WEEKDAY_IDS = [
	"pisell2.recordBoard.calendar.weekday.mon",
	"pisell2.recordBoard.calendar.weekday.tue",
	"pisell2.recordBoard.calendar.weekday.wed",
	"pisell2.recordBoard.calendar.weekday.thu",
	"pisell2.recordBoard.calendar.weekday.fri",
	"pisell2.recordBoard.calendar.weekday.sat",
	"pisell2.recordBoard.calendar.weekday.sun"
];
//#endregion
export { CALENDAR_WEEKDAY_IDS, tCal };
