Skip to content

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

:art: Add created and updated type column to database https://github.com/siyuan-note/siyuan/issues/9371

Danielf0e1dcc6a7c3
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json
index 930fbaaa68..5c8d308a21 100644
--- a/app/appearance/langs/en_US.json
+++ b/app/appearance/langs/en_US.json
@@ -1,4 +1,6 @@
{
+ "createdTime": "Created time",
+ "updatedTime": "Updated time",
"removeBookmark": "Remove bookmark from ${x}?",
"defaultMargin": "Default",
"noneMargin": "None",
diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.json
index fbbedc9c35..e7cb6bb63d 100644
--- a/app/appearance/langs/es_ES.json
+++ b/app/appearance/langs/es_ES.json
@@ -1,4 +1,6 @@
{
+ "createdTime": "Hora de creación",
+ "updatedTime": "Hora actualizada",
"removeBookmark": "¿Eliminar marcador de ${x}?",
"lockEdit": "Hacer que el documento sea de sólo lectura",
"unlockEdit": "Hacer que el documento sea escribible",
diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.json
index 99b1e538fe..f090018655 100644
--- a/app/appearance/langs/fr_FR.json
+++ b/app/appearance/langs/fr_FR.json
@@ -1,4 +1,6 @@
{
+ "createdTime": "Heure de création",
+ "updatedTime": "Heure mise à jour",
"removeBookmark": "Supprimer le signet de ${x} ?",
"lockEdit": "Rendre le document en lecture seule",
"unlockEdit": "Rendre le document accessible en écriture",
diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json
index d3fd0a0d4e..0221972de6 100644
--- a/app/appearance/langs/zh_CHT.json
+++ b/app/appearance/langs/zh_CHT.json
@@ -1,4 +1,6 @@
{
+ "createdTime": "建立時間",
+ "updatedTime": "更新時間",
"removeBookmark": "移除 ${x} 中的書籤?",
"lockEdit": "鎖定編輯",
"unlockEdit": "解除鎖定",
diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json
index a30d8b6af1..e03987f0e5 100644
--- a/app/appearance/langs/zh_CN.json
+++ b/app/appearance/langs/zh_CN.json
@@ -1,4 +1,6 @@
{
+ "createdTime": "创建时间",
+ "updatedTime": "更新时间",
"removeBookmark": "移除 ${x} 中的书签?",
"lockEdit": "锁定编辑",
"unlockEdit": "解除锁定",
diff --git a/app/src/protyle/render/av/addCol.ts b/app/src/protyle/render/av/addCol.ts
index 43c2ed0836..9a9d7de649 100644
--- a/app/src/protyle/render/av/addCol.ts
+++ b/app/src/protyle/render/av/addCol.ts
@@ -257,12 +257,12 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
});
menu.addItem({
icon: "iconClock",
- label: window.siyuan.languages.creationDate,
+ label: window.siyuan.languages.createdTime,
click() {
const id = Lute.NewNodeID();
transaction(protyle, [{
action: "addAttrViewCol",
- name: window.siyuan.languages.creationDate,
+ name: window.siyuan.languages.createdTime,
avID,
type: "created",
id
@@ -275,19 +275,19 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
blockElement: blockElement,
protyle: protyle,
type: "created",
- name: window.siyuan.languages.creationDate,
+ name: window.siyuan.languages.createdTime,
id
});
}
});
menu.addItem({
icon: "iconClock",
- label: window.siyuan.languages.modificationDate,
+ label: window.siyuan.languages.updatedTime,
click() {
const id = Lute.NewNodeID();
transaction(protyle, [{
action: "addAttrViewCol",
- name: window.siyuan.languages.modificationDate,
+ name: window.siyuan.languages.updatedTime,
avID,
type: "updated",
id
@@ -300,7 +300,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
blockElement: blockElement,
protyle: protyle,
type: "updated",
- name: window.siyuan.languages.modificationDate,
+ name: window.siyuan.languages.updatedTime,
id
});
}