From 7ac8c18179e0c380537bf7eec93da56fac58b72e Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 29 May 2018 02:00:45 +0900 Subject: [PATCH] :v: --- locales/ja.yml | 7 ++++--- src/client/app/desktop/views/components/post-form.vue | 8 +++++--- src/client/app/desktop/views/widgets/post-form.vue | 8 +++++--- src/client/app/mobile/views/components/post-form.vue | 8 +++++--- 4 files changed, 19 insertions(+), 12 deletions(-) diff --git a/locales/ja.yml b/locales/ja.yml index c02422e81..677cb1329 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -42,9 +42,10 @@ common: note-placeholders: a: "今どうしてる?" b: "何かありましたか?" - c: "言いたいことは?" - d: "ここに書いてください" - e: "あなたが書くのを待っています..." + c: "何をお考えですか?" + d: "言いたいことは?" + e: "ここに書いてください" + f: "あなたが書くのを待っています..." delete: "削除" loading: "読み込み中" diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index ad829065b..7b2adfe70 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -86,13 +86,15 @@ export default Vue.extend({ }, placeholder(): string { - const x = [ + const xs = [ '%i18n:common.note-placeholders.a%', '%i18n:common.note-placeholders.b%', '%i18n:common.note-placeholders.c%', '%i18n:common.note-placeholders.d%', - '%i18n:common.note-placeholders.e%' - ][Math.floor(Math.random() * 5)]; + '%i18n:common.note-placeholders.e%', + '%i18n:common.note-placeholders.f%' + ]; + const x = xs[Math.floor(Math.random() * xs.length)]; return this.renote ? '%i18n:@quote-placeholder%' diff --git a/src/client/app/desktop/views/widgets/post-form.vue b/src/client/app/desktop/views/widgets/post-form.vue index fb4adf70b..3c4ade0e8 100644 --- a/src/client/app/desktop/views/widgets/post-form.vue +++ b/src/client/app/desktop/views/widgets/post-form.vue @@ -24,13 +24,15 @@ export default define({ }, computed: { placeholder(): string { - return [ + const xs = [ '%i18n:common.note-placeholders.a%', '%i18n:common.note-placeholders.b%', '%i18n:common.note-placeholders.c%', '%i18n:common.note-placeholders.d%', - '%i18n:common.note-placeholders.e%' - ][Math.floor(Math.random() * 5)]; + '%i18n:common.note-placeholders.e%', + '%i18n:common.note-placeholders.f%' + ]; + return xs[Math.floor(Math.random() * xs.length)]; } }, methods: { diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue index 61f046265..beacb1721 100644 --- a/src/client/app/mobile/views/components/post-form.vue +++ b/src/client/app/mobile/views/components/post-form.vue @@ -80,13 +80,15 @@ export default Vue.extend({ }, placeholder(): string { - const x = [ + const xs = [ '%i18n:common.note-placeholders.a%', '%i18n:common.note-placeholders.b%', '%i18n:common.note-placeholders.c%', '%i18n:common.note-placeholders.d%', - '%i18n:common.note-placeholders.e%' - ][Math.floor(Math.random() * 5)]; + '%i18n:common.note-placeholders.e%', + '%i18n:common.note-placeholders.f%' + ]; + const x = xs[Math.floor(Math.random() * xs.length)]; return this.renote ? '%i18n:@quote-placeholder%'