Drastically improve loading speed of the settings page (#2452)

This commit is contained in:
absidue 2022-08-05 14:29:31 +02:00 committed by GitHub
parent 1d3f73da75
commit 620e2eaa10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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