Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
server: Set up a locale option
Elian Doran68712166497b
diff --git a/src/services/options_init.ts b/src/services/options_init.tsindex b07300150e..111e78cd49 100644--- a/src/services/options_init.ts+++ b/src/services/options_init.ts@@ -16,6 +16,12 @@ interface NotSyncedOpts {syncProxy?: string;}+interface DefaultOption {+ name: string;+ value: string;+ isSynced: boolean;+}+async function initNotSyncedOptions(initialized: boolean, theme: string, opts: NotSyncedOpts = {}) {optionService.createOption('openNoteContexts', JSON.stringify([{@@ -35,13 +41,13 @@ async function initNotSyncedOptions(initialized: boolean, theme: string, opts: NoptionService.createOption('lastSyncedPush', '0', false);optionService.createOption('theme', theme, false);-+optionService.createOption('syncServerHost', opts.syncServerHost || '', false);optionService.createOption('syncServerTimeout', '120000', false);optionService.createOption('syncProxy', opts.syncProxy || '', false);}-const defaultOptions = [+const defaultOptions: DefaultOption[] = [{ name: 'revisionSnapshotTimeInterval', value: '600', isSynced: true },{ name: 'protectedSessionTimeout', value: '600', isSynced: true },{ name: 'zoomFactor', value: process.platform === "win32" ? '0.9' : '1.0', isSynced: false },@@ -88,7 +94,8 @@ const defaultOptions = [{ name: 'customSearchEngineName', value: 'DuckDuckGo', isSynced: true },{ name: 'customSearchEngineUrl', value: 'https://duckduckgo.com/?q={keyword}', isSynced: true },{ name: 'promotedAttributesOpenInRibbon', value: 'true', isSynced: true },- { name: 'editedNotesOpenInRibbon', value: 'true', isSynced: true }+ { name: 'editedNotesOpenInRibbon', value: 'true', isSynced: true },+ { name: 'locale', value: 'en', isSynced: true }];function initStartupOptions() {