From 45bee7cc2f39aa6a3f7371ae02d2d0271d3291af Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 3 Dec 2018 20:08:18 +0900 Subject: Resolve #327 --- src/client/app/common/views/components/profile-editor.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/client') diff --git a/src/client/app/common/views/components/profile-editor.vue b/src/client/app/common/views/components/profile-editor.vue index b402f046b1..33c53c7dc8 100644 --- a/src/client/app/common/views/components/profile-editor.vue +++ b/src/client/app/common/views/components/profile-editor.vue @@ -32,6 +32,12 @@ {{ $t('description') }} + + {{ $t('language') }} + + + + {{ $t('avatar') }} @@ -87,12 +93,16 @@ import Vue from 'vue'; import i18n from '../../../i18n'; import { apiUrl, host } from '../../../config'; import { toUnicode } from 'punycode'; +import langmap from 'langmap'; +import { unique } from '../../../../../prelude/array'; export default Vue.extend({ i18n: i18n('common/views/components/profile-editor.vue'), data() { return { + unique, + langmap, host: toUnicode(host), enableEmail: false, email: null, @@ -100,6 +110,7 @@ export default Vue.extend({ username: null, location: null, description: null, + lang: null, birthday: null, avatarId: null, bannerId: null, @@ -137,6 +148,7 @@ export default Vue.extend({ this.username = this.$store.state.i.username; this.location = this.$store.state.i.profile.location; this.description = this.$store.state.i.description; + this.lang = this.$store.state.i.lang; this.birthday = this.$store.state.i.profile.birthday; this.avatarId = this.$store.state.i.avatarId; this.bannerId = this.$store.state.i.bannerId; @@ -198,6 +210,7 @@ export default Vue.extend({ name: this.name || null, location: this.location || null, description: this.description || null, + lang: this.lang, birthday: this.birthday || null, avatarId: this.avatarId || undefined, bannerId: this.bannerId || undefined, -- cgit v1.2.3-freya