mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 09:45:52 +01:00
feat(First-day-of-the-week and date-notes)!: make any day configurable to become first day of the week and make date-notes ISO 8601-compliant
Section 4.1.4.1 ISO 8601-1 https://www.loc.gov/standards/datetime/iso-tc154-wg5_n0038_iso_wd_8601-1_2016-02-16.pdf
This commit is contained in:
committed by
Jakob Schlanstedt
parent
e1a0452448
commit
89879a6851
@@ -73,13 +73,21 @@ function DateSettings() {
|
||||
return (
|
||||
<>
|
||||
<OptionsRow name="first-day-of-week" label={t("i18n.first-day-of-the-week")}>
|
||||
<FormInlineRadioGroup
|
||||
<FormSelect
|
||||
name="first-day-of-week"
|
||||
currentValue={firstDayOfWeek}
|
||||
onChange={setFirstDayOfWeek}
|
||||
keyProperty="value"
|
||||
titleProperty="label"
|
||||
values={[
|
||||
{ value: "0", label: t("i18n.sunday") },
|
||||
{ value: "1", label: t("i18n.monday") }
|
||||
{ value: "1", label: t("i18n.monday") },
|
||||
{ value: "2", label: t("i18n.tuesday") },
|
||||
{ value: "3", label: t("i18n.wednesday") },
|
||||
{ value: "4", label: t("i18n.thursday") },
|
||||
{ value: "5", label: t("i18n.friday") },
|
||||
{ value: "6", label: t("i18n.saturday") },
|
||||
{ value: "7", label: t("i18n.sunday") },
|
||||
]}
|
||||
currentValue={firstDayOfWeek} onChange={setFirstDayOfWeek}
|
||||
/>
|
||||
</OptionsRow>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user