mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-11-11 04:38:21 +08:00
add translation for app_context.js
This commit is contained in:
parent
529502524d
commit
4186f3d136
@ -13,7 +13,7 @@ import MobileScreenSwitcherExecutor from "./mobile_screen_switcher.js";
|
|||||||
import MainTreeExecutors from "./main_tree_executors.js";
|
import MainTreeExecutors from "./main_tree_executors.js";
|
||||||
import toast from "../services/toast.js";
|
import toast from "../services/toast.js";
|
||||||
import ShortcutComponent from "./shortcut_component.js";
|
import ShortcutComponent from "./shortcut_component.js";
|
||||||
import { initLocale } from "../services/i18n.js";
|
import { t, initLocale } from "../services/i18n.js";
|
||||||
|
|
||||||
class AppContext extends Component {
|
class AppContext extends Component {
|
||||||
constructor(isMainWindow) {
|
constructor(isMainWindow) {
|
||||||
@ -151,7 +151,7 @@ $(window).on('beforeunload', () => {
|
|||||||
if (!component.beforeUnloadEvent()) {
|
if (!component.beforeUnloadEvent()) {
|
||||||
console.log(`Component ${component.componentId} is not finished saving its state.`);
|
console.log(`Component ${component.componentId} is not finished saving its state.`);
|
||||||
|
|
||||||
toast.showMessage("Please wait for a couple of seconds for the save to finish, then you can try again.", 10000);
|
toast.showMessage(t("app_context.please_wait_for_save"), 10000);
|
||||||
|
|
||||||
allSaved = false;
|
allSaved = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1421,5 +1421,8 @@
|
|||||||
"file_last_modified": "文件 <code class=\"file-path\"></code> 最后修改时间为 <span class=\"file-last-modified\"></span>。",
|
"file_last_modified": "文件 <code class=\"file-path\"></code> 最后修改时间为 <span class=\"file-last-modified\"></span>。",
|
||||||
"upload_modified_file": "上传修改的文件",
|
"upload_modified_file": "上传修改的文件",
|
||||||
"ignore_this_change": "忽略此更改"
|
"ignore_this_change": "忽略此更改"
|
||||||
|
},
|
||||||
|
"app_context": {
|
||||||
|
"please_wait_for_save": "请等待几秒钟以完成保存,然后您可以尝试再操作一次。"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1421,5 +1421,8 @@
|
|||||||
"file_last_modified": "File <code class=\"file-path\"></code> has been last modified on <span class=\"file-last-modified\"></span>.",
|
"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",
|
"upload_modified_file": "Upload modified file",
|
||||||
"ignore_this_change": "Ignore this change"
|
"ignore_this_change": "Ignore this change"
|
||||||
|
},
|
||||||
|
"app_context": {
|
||||||
|
"please_wait_for_save": "Please wait for a couple of seconds for the save to finish, then you can try again."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user