Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/components/LanguageSection/LanguageSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,21 @@
}
},

created() {
const localizeLanguage = (l) => {
if (l.code === 'de_DE') {
return { ...l, name: t('nmcsettings', 'Deutsch') }
}
if (l.code === 'en_GB') {
return { ...l, name: t('nmcsettings', 'English') }
}
return l
}
this.commonLanguages = this.commonLanguages.map(localizeLanguage)
this.otherLanguages = this.otherLanguages.map(localizeLanguage)
},

computed: {

Check warning on line 59 in src/components/LanguageSection/LanguageSection.vue

View workflow job for this annotation

GitHub Actions / eslint

The "computed" property should be above the "created" property on line 45
inputId() {
return `account-setting-${ACCOUNT_SETTING_PROPERTY_ENUM.LANGUAGE}`
},
Expand Down
Loading