We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c19bb54 + f96076c commit 92ff4bdCopy full SHA for 92ff4bd
1 file changed
src/components/LanguageSection/LanguageSection.vue
@@ -42,6 +42,20 @@ export default {
42
}
43
},
44
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
+
59
computed: {
60
inputId() {
61
return `account-setting-${ACCOUNT_SETTING_PROPERTY_ENUM.LANGUAGE}`
0 commit comments