Start workin on i18n

This commit is contained in:
MassiveBox 2025-04-20 22:16:48 +02:00
parent 3a05d36f8c
commit f35342a791
Signed by: massivebox
GPG key ID: 9B74D3A59181947D
4 changed files with 35 additions and 18 deletions

View file

@ -144,7 +144,7 @@ export class EditorManager {
init() {
const fileID = this.data.fileID;
if (fileID == null) {
alert("File ID missing - couldn't open file.")
alert(p.i18n.errNoFileID);
return;
}
const editor = new PluginEditor(fileID, p.config.getDefaultEditorOptions());
@ -157,7 +157,7 @@ export class EditorManager {
openTab({
app: p.app,
custom: {
title: 'Drawing',
title: p.i18n.drawing,
icon: 'iconDraw',
id: "siyuan-jsdraw-pluginwhiteboard",
data: {