add translation for watched_file_update_status.js

This commit is contained in:
Nriver 2024-10-15 15:19:09 +08:00
parent 5e2d1bc124
commit 7c518e9512
3 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,4 @@
import { t } from "../services/i18n.js";
import NoteContextAwareWidget from "./note_context_aware_widget.js"; import NoteContextAwareWidget from "./note_context_aware_widget.js";
import server from "../services/server.js"; import server from "../services/server.js";
import fileWatcher from "../services/file_watcher.js"; import fileWatcher from "../services/file_watcher.js";
@ -11,12 +12,12 @@ const TPL = `
} }
</style> </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;"> <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>
</div>`; </div>`;

View File

@ -1414,5 +1414,10 @@
"toc": { "toc": {
"table_of_contents": "目录", "table_of_contents": "目录",
"options": "选项" "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": "忽略此更改"
} }
} }

View File

@ -1414,5 +1414,10 @@
"toc": { "toc": {
"table_of_contents": "Table of Contents", "table_of_contents": "Table of Contents",
"options": "Options" "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"
} }
} }