diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 134ec33831..5257d616c4 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -118,6 +118,7 @@ common: disable-animated-mfm: "投稿内の動きのあるテキストを無効にする" always-show-nsfw: "常に閲覧注意のメディアを表示する" always-mark-nsfw: "常にメディアを閲覧注意として投稿" + show-full-acct: "ユーザー名のホストを省略しない" this-setting-is-this-device-only: "このデバイスのみ" do-not-use-in-production: 'これは開発ビルドです。本番環境で使用しないでください。' diff --git a/src/client/app/common/views/components/acct.vue b/src/client/app/common/views/components/acct.vue index bd7833f1a9..542fbb4296 100644 --- a/src/client/app/common/views/components/acct.vue +++ b/src/client/app/common/views/components/acct.vue @@ -1,7 +1,7 @@ diff --git a/src/client/app/desktop/views/components/settings.vue b/src/client/app/desktop/views/components/settings.vue index 8e2905e73b..1973acc839 100644 --- a/src/client/app/desktop/views/components/settings.vue +++ b/src/client/app/desktop/views/components/settings.vue @@ -61,6 +61,7 @@ + @@ -366,6 +367,11 @@ export default Vue.extend({ set(value) { this.$store.dispatch('settings/set', { key: 'contrastedAcct', value }); } }, + showFullAcct: { + get() { return this.$store.state.settings.showFullAcct; }, + set(value) { this.$store.dispatch('settings/set', { key: 'showFullAcct', value }); } + }, + iLikeSushi: { get() { return this.$store.state.settings.iLikeSushi; }, set(value) { this.$store.dispatch('settings/set', { key: 'iLikeSushi', value }); } diff --git a/src/client/app/mobile/views/pages/settings.vue b/src/client/app/mobile/views/pages/settings.vue index c93b3a50f1..9b0e521a4f 100644 --- a/src/client/app/mobile/views/pages/settings.vue +++ b/src/client/app/mobile/views/pages/settings.vue @@ -14,6 +14,7 @@ %i18n:@dark-mode% %i18n:@circle-icons% %i18n:@contrasted-acct% + %i18n:common.show-full-acct% %i18n:common.i-like-sushi% %i18n:common.disable-animated-mfm% %i18n:common.always-show-nsfw% (%i18n:common.this-setting-is-this-device-only%) @@ -232,6 +233,11 @@ export default Vue.extend({ set(value) { this.$store.dispatch('settings/set', { key: 'contrastedAcct', value }); } }, + showFullAcct: { + get() { return this.$store.state.settings.showFullAcct; }, + set(value) { this.$store.dispatch('settings/set', { key: 'showFullAcct', value }); } + }, + iLikeSushi: { get() { return this.$store.state.settings.iLikeSushi; }, set(value) { this.$store.dispatch('settings/set', { key: 'iLikeSushi', value }); } diff --git a/src/client/app/store.ts b/src/client/app/store.ts index 7a5b3e986b..997bddc5cc 100644 --- a/src/client/app/store.ts +++ b/src/client/app/store.ts @@ -17,6 +17,7 @@ const defaultSettings = { showClockOnHeader: true, circleIcons: true, contrastedAcct: true, + showFullAcct: false, gradientWindowHeader: false, showReplyTarget: true, showMyRenotes: true,