From 7c518e9512016581cd63707918ebf318babdaea2 Mon Sep 17 00:00:00 2001 From: Nriver <6752679+Nriver@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:19:09 +0800 Subject: [PATCH] add translation for watched_file_update_status.js --- src/public/app/widgets/watched_file_update_status.js | 7 ++++--- src/public/translations/cn/translation.json | 5 +++++ src/public/translations/en/translation.json | 5 +++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/public/app/widgets/watched_file_update_status.js b/src/public/app/widgets/watched_file_update_status.js index 05e5567e7..1747723d5 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 = ` } -

File has been last modified on .

+

${t("watched_file_update_status.file_last_modified", { count: '' })}

- + - +
`; diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.json index 3849d58b6..75169ae33 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": "文件 最后修改时间为 。", + "upload_modified_file": "上传修改的文件", + "ignore_this_change": "忽略此更改" } } diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json index 2e742374a..c72abb34d 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 has been last modified on .", + "upload_modified_file": "Upload modified file", + "ignore_this_change": "Ignore this change" } }