Skip to content

Commit 92ff4bd

Browse files
authored
Merge pull request #118 from nextmcloud/nmc/5441-settings-language-inactive-language-is-displayed-incorrectly
fixed language translation name
2 parents c19bb54 + f96076c commit 92ff4bd

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/components/LanguageSection/LanguageSection.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@ export default {
4242
}
4343
},
4444
45+
created() {
46+
const localizeLanguage = (l) => {
47+
if (l.code === 'de_DE') {
48+
return { ...l, name: t('nmcsettings', 'Deutsch') }
49+
}
50+
if (l.code === 'en_GB') {
51+
return { ...l, name: t('nmcsettings', 'English') }
52+
}
53+
return l
54+
}
55+
this.commonLanguages = this.commonLanguages.map(localizeLanguage)
56+
this.otherLanguages = this.otherLanguages.map(localizeLanguage)
57+
},
58+
4559
computed: {
4660
inputId() {
4761
return `account-setting-${ACCOUNT_SETTING_PROPERTY_ENUM.LANGUAGE}`

0 commit comments

Comments
 (0)