client: Use translations for editor settings

This commit is contained in:
Elian Doran 2024-11-09 21:34:09 +02:00
parent 8c69d47aed
commit 7c342aed9e
No known key found for this signature in database
2 changed files with 15 additions and 4 deletions

View File

@ -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>

View File

@ -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)"
}
} }
} }