Skip to content

Build your personal knowledge base with Trilium Notes

chore: 🤖 add week number explanation

Jina80932d3f9ac
diff --git a/src/public/app/widgets/type_widgets/options/i18n/i18n.ts b/src/public/app/widgets/type_widgets/options/i18n/i18n.ts
index e0c7662f23..d55971903e 100644
--- a/src/public/app/widgets/type_widgets/options/i18n/i18n.ts
+++ b/src/public/app/widgets/type_widgets/options/i18n/i18n.ts
@@ -64,6 +64,12 @@ const TPL = `
</select>
</div>
+ <p class="form-text">${t("i18n.first-week-info")}</p>
+
+ <div class="admonition warning" role="alert">
+ ${t("i18n.first-week-warning")}
+ </div>
+
<div class="option-row centered">
<button class="btn btn-secondary btn-micro restart-app-button">${t("electron_integration.restart-app-button")}</button>
</div>
diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.json
index 7a582447b8..f928eaa3ff 100644
--- a/src/public/translations/cn/translation.json
+++ b/src/public/translations/cn/translation.json
@@ -1238,6 +1238,8 @@
"first-week-contains-first-thursday": "第一周包含一年的第一个周四",
"first-week-has-minimum-days": "第一周有最小天数",
"min-days-in-first-week": "第一周的最小天数",
+ "first-week-info": "第一周包含一年的第一个周四,基于 <a href=\"https://en.wikipedia.org/wiki/ISO_week_date#First_week\">ISO 8601</a> 标准。",
+ "first-week-warning": "更改第一周选项可能会导致与现有周笔记重复,已创建的周笔记将不会相应更新。",
"formatting-locale": "日期和数字格式"
},
"backup": {
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index b440d316d2..97b699a740 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -1248,6 +1248,8 @@
"first-week-contains-first-thursday": "First week contains first Thursday of the year",
"first-week-has-minimum-days": "First week has minimum days",
"min-days-in-first-week": "Minimum days in first week",
+ "first-week-info": "First week contains first Thursday of the year is based on <a href=\"https://en.wikipedia.org/wiki/ISO_week_date#First_week\">ISO 8601</a> standard.",
+ "first-week-warning": "Changing first week options may cause duplicate with existing Week Notes and the existing Week Notes will not be updated accordingly.",
"formatting-locale": "Date & number format"
},
"backup": {