feat(settings): create a language settings section

This commit is contained in:
Elian Doran 2025-03-02 21:24:31 +02:00
parent 43d8affcc8
commit 73daec6644
No known key found for this signature in database
2 changed files with 19 additions and 0 deletions

View File

@ -40,6 +40,7 @@ import ShareSettingsOptions from "./options/other/share_settings.js";
import type FNote from "../../entities/fnote.js";
import type NoteContextAwareWidget from "../note_context_aware_widget.js";
import { t } from "i18next";
import LanguageOptions from "./options/i18n/language.js";
const TPL = `<div class="note-detail-content-widget note-detail-printable">
<style>
@ -82,6 +83,7 @@ const CONTENT_WIDGETS: Record<string, (typeof NoteContextAwareWidget)[]> = {
HtmlImportTagsOptions,
ShareSettingsOptions
],
_optionsLocalization: [ LanguageOptions ],
_optionsAdvanced: [DatabaseIntegrityCheckOptions, DatabaseAnonymizationOptions, AdvancedSyncOptions, VacuumDatabaseOptions],
_backendLog: [BackendLogWidget]
};

View File

@ -0,0 +1,17 @@
import OptionsWidget from "../options_widget.js";
const TPL = `
<div class="options-section">
<h4>Languages</h4>
The list of languages should go here.
</div>
`;
export default class LanguageOptions extends OptionsWidget {
doRender() {
this.$widget = $(TPL);
}
}