mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-02 21:42:15 +08:00
client: Use translations for editor settings
This commit is contained in:
parent
8c69d47aed
commit
7c342aed9e
@ -1,16 +1,17 @@
|
|||||||
|
import { t } from "../../../../services/i18n.js";
|
||||||
import utils from "../../../../services/utils.js";
|
import utils from "../../../../services/utils.js";
|
||||||
import OptionsWidget from "../options_widget.js";
|
import OptionsWidget from "../options_widget.js";
|
||||||
|
|
||||||
const TPL = `
|
const TPL = `
|
||||||
<div class="options-section">
|
<div class="options-section">
|
||||||
<h4>Editor</h4>
|
<h4>${t("editor.title")}</h4>
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<label>Editor type</label>
|
<label>${t("editing.editor_type.label")}</label>
|
||||||
<select class="editor-type-select form-select">
|
<select class="editor-type-select form-select">
|
||||||
<option value="ckeditor-balloon">CKEditor with floating toolbar (default)</option>
|
<option value="ckeditor-balloon">${t("editing.editor_type.floating")}</option>
|
||||||
<option value="ckeditor-classic">CKEditor with fixed toolbar</option>
|
<option value="ckeditor-classic">${t("editing.editor_type.fixed")}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1511,5 +1511,15 @@
|
|||||||
},
|
},
|
||||||
"classic_editor_toolbar": {
|
"classic_editor_toolbar": {
|
||||||
"title": "Formatting"
|
"title": "Formatting"
|
||||||
|
},
|
||||||
|
"editor": {
|
||||||
|
"title": "Editor"
|
||||||
|
},
|
||||||
|
"editing": {
|
||||||
|
"editor_type": {
|
||||||
|
"label": "Formatting toolbar",
|
||||||
|
"floating": "Floating (appears near the cursor)",
|
||||||
|
"fixed": "Fixed (appear in the \"Formatting\" ribbon tab)"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user