From 620e2eaa1024ce8b3b3fbad9557dba9306ca777d Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Fri, 5 Aug 2022 14:29:31 +0200 Subject: [PATCH] Drastically improve loading speed of the settings page (#2452) --- src/renderer/components/general-settings/general-settings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/general-settings/general-settings.js b/src/renderer/components/general-settings/general-settings.js index 368c321d..509328b6 100644 --- a/src/renderer/components/general-settings/general-settings.js +++ b/src/renderer/components/general-settings/general-settings.js @@ -122,8 +122,8 @@ export default Vue.extend({ this.$t('Settings.General Settings.System Default') ] - Object.keys(this.$i18n.messages).forEach((locale) => { - const localeName = this.$i18n.messages[locale]['Locale Name'] + Object.entries(this.$i18n.messages).forEach(([locale, localeData]) => { + const localeName = localeData['Locale Name'] if (typeof localeName !== 'undefined') { names.push(localeName) } else {