Skip to content

Build your personal knowledge base with Trilium Notes

add translation for watched_file_update_status.js

Nriver7c518e951201
diff --git a/src/public/app/widgets/watched_file_update_status.js b/src/public/app/widgets/watched_file_update_status.js
index 05e5567e7b..1747723d53 100644
--- a/src/public/app/widgets/watched_file_update_status.js
+++ b/src/public/app/widgets/watched_file_update_status.js
@@ -1,3 +1,4 @@
+import { t } from "../services/i18n.js";
import NoteContextAwareWidget from "./note_context_aware_widget.js";
import server from "../services/server.js";
import fileWatcher from "../services/file_watcher.js";
@@ -11,12 +12,12 @@ const TPL = `
}
</style>
- <p>File <code class="file-path"></code> has been last modified on <span class="file-last-modified"></span>.</p>
+ <p>${t("watched_file_update_status.file_last_modified", { count: '' })}</p>
<div style="display: flex; flex-direction: row; justify-content: space-evenly;">
- <button class="btn btn-sm file-upload-button">Upload modified file</button>
+ <button class="btn btn-sm file-upload-button">${t("watched_file_update_status.upload_modified_file")}</button>
- <button class="btn btn-sm ignore-this-change-button">Ignore this change</button>
+ <button class="btn btn-sm ignore-this-change-button">${t("watched_file_update_status.ignore_this_change")}</button>
</div>
</div>`;
diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.json
index 3849d58b64..75169ae332 100644
--- a/src/public/translations/cn/translation.json
+++ b/src/public/translations/cn/translation.json
@@ -1414,5 +1414,10 @@
"toc": {
"table_of_contents": "目录",
"options": "选项"
+ },
+ "watched_file_update_status": {
+ "file_last_modified": "文件 <code class=\"file-path\"></code> 最后修改时间为 <span class=\"file-last-modified\"></span>。",
+ "upload_modified_file": "上传修改的文件",
+ "ignore_this_change": "忽略此更改"
}
}
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index 2e742374a7..c72abb34da 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -1414,5 +1414,10 @@
"toc": {
"table_of_contents": "Table of Contents",
"options": "Options"
+ },
+ "watched_file_update_status": {
+ "file_last_modified": "File <code class=\"file-path\"></code> has been last modified on <span class=\"file-last-modified\"></span>.",
+ "upload_modified_file": "Upload modified file",
+ "ignore_this_change": "Ignore this change"
}
}