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
fix(electron): wrong value for --lang
Elian Doran90794fed887a
diff --git a/src/public/app/widgets/type_widgets/options/i18n/i18n.ts b/src/public/app/widgets/type_widgets/options/i18n/i18n.tsindex d9a0378640..cab1bb0eb9 100644--- a/src/public/app/widgets/type_widgets/options/i18n/i18n.ts+++ b/src/public/app/widgets/type_widgets/options/i18n/i18n.ts@@ -71,23 +71,23 @@ export default class LocalizationOptions extends OptionsWidget {async optionsLoaded(options: OptionMap) {const allLocales = getAvailableLocales();- function buildLocaleItem(locale: Locale) {+ function buildLocaleItem(locale: Locale, value: string) {return $("<option>")- .attr("value", locale.id)+ .attr("value", value).text(locale.name)}// Build list of UI locales.this.$localeSelect.empty();for (const locale of allLocales.filter(l => !l.contentOnly)) {- this.$localeSelect.append(buildLocaleItem(locale));+ this.$localeSelect.append(buildLocaleItem(locale, locale.id));}this.$localeSelect.val(options.locale);// Build list of Electron locales.this.$formattingLocaleSelect.empty();for (const locale of allLocales.filter(l => l.electronLocale)) {- this.$formattingLocaleSelect.append(buildLocaleItem(locale));+ this.$formattingLocaleSelect.append(buildLocaleItem(locale, locale.electronLocale as string));}this.$formattingLocaleSelect.val(options.formattingLocale);