Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Clarify localized database date format option https://github.com/siyuan-note/siyuan/issues/10610

Daniel474412c069f2
diff --git a/app/appearance/langs/ar.json b/app/appearance/langs/ar.json
index b123e0d7d9..e9c8f8d2c5 100644
--- a/app/appearance/langs/ar.json
+++ b/app/appearance/langs/ar.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "تنسيق التاريخ",
- "fullDate": "التاريخ الكامل",
+ "fullDate": "تاريخ محلي",
"dateMonths": "يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر",
"dateFormatFullTemplate": "${day} ${month} ${year}",
"empty": "فارغ",
diff --git a/app/appearance/langs/de.json b/app/appearance/langs/de.json
index 3dd05a3ee0..1f0cd4865b 100644
--- a/app/appearance/langs/de.json
+++ b/app/appearance/langs/de.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "Datumsformat",
- "fullDate": "Vollständiges Datum",
+ "fullDate": "Lokalisiertes Datum",
"dateMonths": "Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember",
"dateFormatFullTemplate": "${day}. ${month} ${year}",
"empty": "Leer",
diff --git a/app/appearance/langs/en.json b/app/appearance/langs/en.json
index 883b98a670..1cde69f7aa 100644
--- a/app/appearance/langs/en.json
+++ b/app/appearance/langs/en.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "Date format",
- "fullDate": "Full date",
+ "fullDate": "Localized date",
"dateMonths": "January|February|March|April|May|June|July|August|September|October|November|December",
"dateFormatFullTemplate": "${month} ${day}, ${year}",
"empty": "Empty",
diff --git a/app/appearance/langs/es.json b/app/appearance/langs/es.json
index c88ac9c594..769603e392 100644
--- a/app/appearance/langs/es.json
+++ b/app/appearance/langs/es.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "Formato de fecha",
- "fullDate": "Fecha completa",
+ "fullDate": "Fecha localizada",
"dateMonths": "enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre",
"dateFormatFullTemplate": "${day} de ${month} de ${year}",
"empty": "Vacío",
diff --git a/app/appearance/langs/fr.json b/app/appearance/langs/fr.json
index 5b9827e870..7cf9a87829 100644
--- a/app/appearance/langs/fr.json
+++ b/app/appearance/langs/fr.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "Format de date",
- "fullDate": "Date complète",
+ "fullDate": "Date localisée",
"dateMonths": "janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre",
"dateFormatFullTemplate": "${day} ${month} ${year}",
"empty": "Vide",
diff --git a/app/appearance/langs/he.json b/app/appearance/langs/he.json
index 60ccbe833a..433510ff4c 100644
--- a/app/appearance/langs/he.json
+++ b/app/appearance/langs/he.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "תבנית תאריך",
- "fullDate": "תאריך מלא",
+ "fullDate": "תאריך מקומי",
"dateMonths": "ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר",
"dateFormatFullTemplate": "${day} ${month} ${year}",
"empty": "ריק",
diff --git a/app/appearance/langs/hi.json b/app/appearance/langs/hi.json
index 7c20789241..21c656b75a 100644
--- a/app/appearance/langs/hi.json
+++ b/app/appearance/langs/hi.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "दिनांक प्रारूप",
- "fullDate": "पूर्ण दिनांक",
+ "fullDate": "स्थानीयकृत दिनांक",
"dateMonths": "जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्टूबर|नवंबर|दिसंबर",
"dateFormatFullTemplate": "${day} ${month} ${year}",
"empty": "खाली",
diff --git a/app/appearance/langs/id.json b/app/appearance/langs/id.json
index 623420a40d..63c92d66d1 100644
--- a/app/appearance/langs/id.json
+++ b/app/appearance/langs/id.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "Format tanggal",
- "fullDate": "Tanggal lengkap",
+ "fullDate": "Tanggal lokal",
"dateMonths": "Januari|Februari|Maret|April|Mei|Juni|Juli|Agustus|September|Oktober|November|Desember",
"dateFormatFullTemplate": "${day} ${month} ${year}",
"empty": "Kosong",
diff --git a/app/appearance/langs/it.json b/app/appearance/langs/it.json
index 62bf58636b..55dbc39624 100644
--- a/app/appearance/langs/it.json
+++ b/app/appearance/langs/it.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "Formato data",
- "fullDate": "Data completa",
+ "fullDate": "Data localizzata",
"dateMonths": "gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre",
"dateFormatFullTemplate": "${day} ${month} ${year}",
"empty": "Vuoto",
diff --git a/app/appearance/langs/ja.json b/app/appearance/langs/ja.json
index 54c66c9826..70880efbc3 100644
--- a/app/appearance/langs/ja.json
+++ b/app/appearance/langs/ja.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "日付形式",
- "fullDate": "完全な日付",
+ "fullDate": "ローカル形式の日付",
"dateMonths": "1月|2月|3月|4月|5月|6月|7月|8月|9月|10月|11月|12月",
"dateFormatFullTemplate": "${year}年${month}${day}日",
"empty": "空白",
diff --git a/app/appearance/langs/ko.json b/app/appearance/langs/ko.json
index 7b576f50c6..4ddbd189b6 100644
--- a/app/appearance/langs/ko.json
+++ b/app/appearance/langs/ko.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "날짜 형식",
- "fullDate": "전체 날짜",
+ "fullDate": "현지화된 날짜",
"dateMonths": "1월|2월|3월|4월|5월|6월|7월|8월|9월|10월|11월|12월",
"dateFormatFullTemplate": "${year}년 ${month} ${day}일",
"empty": "비어 있음",
diff --git a/app/appearance/langs/nl.json b/app/appearance/langs/nl.json
index 08d16f1b6c..71abdca1d6 100644
--- a/app/appearance/langs/nl.json
+++ b/app/appearance/langs/nl.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "Datumnotatie",
- "fullDate": "Volledige datum",
+ "fullDate": "Gelokaliseerde datum",
"dateMonths": "januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december",
"dateFormatFullTemplate": "${day} ${month} ${year}",
"empty": "Leeg",
diff --git a/app/appearance/langs/pl.json b/app/appearance/langs/pl.json
index d689e31e59..5fa019ecf0 100644
--- a/app/appearance/langs/pl.json
+++ b/app/appearance/langs/pl.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "Format daty",
- "fullDate": "Pełna data",
+ "fullDate": "Data w formacie lokalnym",
"dateMonths": "stycznia|lutego|marca|kwietnia|maja|czerwca|lipca|sierpnia|września|października|listopada|grudnia",
"dateFormatFullTemplate": "${day} ${month} ${year}",
"empty": "Pusty",
diff --git a/app/appearance/langs/pt-BR.json b/app/appearance/langs/pt-BR.json
index e32c1cd7b4..8639802a20 100644
--- a/app/appearance/langs/pt-BR.json
+++ b/app/appearance/langs/pt-BR.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "Formato de data",
- "fullDate": "Data completa",
+ "fullDate": "Data localizada",
"dateMonths": "janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro",
"dateFormatFullTemplate": "${day} de ${month} de ${year}",
"empty": "Vazio",
diff --git a/app/appearance/langs/ru.json b/app/appearance/langs/ru.json
index f804f30fed..c4c238ac86 100644
--- a/app/appearance/langs/ru.json
+++ b/app/appearance/langs/ru.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "Формат даты",
- "fullDate": "Полная дата",
+ "fullDate": "Локализованная дата",
"dateMonths": "января|февраля|марта|апреля|мая|июня|июля|августа|сентября|октября|ноября|декабря",
"dateFormatFullTemplate": "${day} ${month} ${year} г.",
"empty": "Пусто",
diff --git a/app/appearance/langs/sk.json b/app/appearance/langs/sk.json
index 45ccbc8ca3..4abcd28b43 100644
--- a/app/appearance/langs/sk.json
+++ b/app/appearance/langs/sk.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "Formát dátumu",
- "fullDate": "Úplný dátum",
+ "fullDate": "Lokalizovaný dátum",
"dateMonths": "januára|februára|marca|apríla|mája|júna|júla|augusta|septembra|októbra|novembra|decembra",
"dateFormatFullTemplate": "${day}. ${month} ${year}",
"empty": "Prázdne",
diff --git a/app/appearance/langs/th.json b/app/appearance/langs/th.json
index 6578c71d96..0e896083d7 100644
--- a/app/appearance/langs/th.json
+++ b/app/appearance/langs/th.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "รูปแบบวันที่",
- "fullDate": "วันที่แบบเต็ม",
+ "fullDate": "วันที่ตามภาษาท้องถิ่น",
"dateMonths": "มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม",
"dateFormatFullTemplate": "${day} ${month} ${year}",
"empty": "ว่างเปล่า",
diff --git a/app/appearance/langs/tr.json b/app/appearance/langs/tr.json
index 168e2d3d0c..6eb29e5a7d 100644
--- a/app/appearance/langs/tr.json
+++ b/app/appearance/langs/tr.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "Tarih biçimi",
- "fullDate": "Tam tarih",
+ "fullDate": "Yerelleştirilmiş tarih",
"dateMonths": "Ocak|Şubat|Mart|Nisan|Mayıs|Haziran|Temmuz|Ağustos|Eylül|Ekim|Kasım|Aralık",
"dateFormatFullTemplate": "${day} ${month} ${year}",
"empty": "Boş",
diff --git a/app/appearance/langs/uk.json b/app/appearance/langs/uk.json
index dec28e075c..92841bde96 100644
--- a/app/appearance/langs/uk.json
+++ b/app/appearance/langs/uk.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "Формат дати",
- "fullDate": "Повна дата",
+ "fullDate": "Локалізована дата",
"dateMonths": "січня|лютого|березня|квітня|травня|червня|липня|серпня|вересня|жовтня|листопада|грудня",
"dateFormatFullTemplate": "${day} ${month} ${year} р.",
"empty": "Порожньо",
diff --git a/app/appearance/langs/zh-CN.json b/app/appearance/langs/zh-CN.json
index 6f1311e35e..7fa79c4d23 100644
--- a/app/appearance/langs/zh-CN.json
+++ b/app/appearance/langs/zh-CN.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "日期格式",
- "fullDate": "完整日期",
+ "fullDate": "本地化日期",
"dateMonths": "一月|二月|三月|四月|五月|六月|七月|八月|九月|十月|十一月|十二月",
"dateFormatFullTemplate": "${year}年${month}${day}日",
"empty": "空白",
diff --git a/app/appearance/langs/zh-TW.json b/app/appearance/langs/zh-TW.json
index 4218c2632e..379614fc47 100644
--- a/app/appearance/langs/zh-TW.json
+++ b/app/appearance/langs/zh-TW.json
@@ -1929,7 +1929,7 @@
},
"_attrView": {
"dateFormat": "日期格式",
- "fullDate": "完整日期",
+ "fullDate": "本地化日期",
"dateMonths": "一月|二月|三月|四月|五月|六月|七月|八月|九月|十月|十一月|十二月",
"dateFormatFullTemplate": "${year}年${month}${day}日",
"empty": "空白",
diff --git a/app/src/protyle/render/av/dateFormatMenu.ts b/app/src/protyle/render/av/dateFormatMenu.ts
index be1ef88d17..1c72c7c774 100644
--- a/app/src/protyle/render/av/dateFormatMenu.ts
+++ b/app/src/protyle/render/av/dateFormatMenu.ts
@@ -2,7 +2,7 @@ import {Menu} from "../../../plugin/Menu";
import {transaction} from "../../wysiwyg/transaction";
import {Constants} from "../../../constants";
import {getAllEditor, getAllModels} from "../../../layout/getAll";
-import {getLabelByDateFormat} from "./dateFormat";
+import {formatDateDisplay, getLabelByDateFormat} from "./dateFormat";
const refreshDatabaseAttributePanels = (protyle: IProtyle, avID: string) => {
protyle.databaseAttributePanel?.refresh();
@@ -35,6 +35,7 @@ export const formatDate = (options: {
checked: format === options.oldFormat,
iconHTML: "",
label: getLabelByDateFormat(format),
+ accelerator: format === "full" ? formatDateDisplay(Date.now(), format) : undefined,
click() {
transaction(options.protyle, [{
action: "setAttrViewColDateFormat",