Drastically improve loading speed of the settings page (#2452)
This commit is contained in:
parent
1d3f73da75
commit
620e2eaa10
|
@ -122,8 +122,8 @@ export default Vue.extend({
|
||||||
this.$t('Settings.General Settings.System Default')
|
this.$t('Settings.General Settings.System Default')
|
||||||
]
|
]
|
||||||
|
|
||||||
Object.keys(this.$i18n.messages).forEach((locale) => {
|
Object.entries(this.$i18n.messages).forEach(([locale, localeData]) => {
|
||||||
const localeName = this.$i18n.messages[locale]['Locale Name']
|
const localeName = localeData['Locale Name']
|
||||||
if (typeof localeName !== 'undefined') {
|
if (typeof localeName !== 'undefined') {
|
||||||
names.push(localeName)
|
names.push(localeName)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue