From 9ad7a804960e09f16bb5e00c491f14c61ef7e22a Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 7 Jun 2018 01:17:29 +0900 Subject: [PATCH] i18n --- locales/ja.yml | 12 ++++++++++++ .../app/desktop/views/pages/deck/deck.column.vue | 6 +++--- .../pages/deck/deck.notifications-column.vue | 2 +- .../desktop/views/pages/deck/deck.tl-column.vue | 6 +++--- src/client/app/desktop/views/pages/deck/deck.vue | 16 ++++++++-------- .../views/pages/deck/deck.widgets-column.vue | 4 ++-- 6 files changed, 29 insertions(+), 17 deletions(-) diff --git a/locales/ja.yml b/locales/ja.yml index 026c2308c..8e04d0988 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -76,6 +76,18 @@ common: nav: "ナビゲーション" tips: "ヒント" + deck: + widgets: "ウィジェット" + home: "ホーム" + local: "ローカル" + global: "グローバル" + notifications: "通知" + list: "リスト" + swap-left: "左に移動" + swap-right: "右に移動" + remove: "カラムを削除" + add-column: "カラムを追加" + common/views/components/connect-failed.vue: title: "サーバーに接続できません" description: "インターネット回線に問題があるか、サーバーがダウンまたはメンテナンスしている可能性があります。しばらくしてから{再度お試し}ください。" diff --git a/src/client/app/desktop/views/pages/deck/deck.column.vue b/src/client/app/desktop/views/pages/deck/deck.column.vue index e9f013734..4dee0db91 100644 --- a/src/client/app/desktop/views/pages/deck/deck.column.vue +++ b/src/client/app/desktop/views/pages/deck/deck.column.vue @@ -75,17 +75,17 @@ export default Vue.extend({ showMenu() { const items = [{ - content: '%fa:arrow-left% %i18n:@swap-left%', + content: '%fa:arrow-left% %i18n:common.deck.swap-left%', onClick: () => { this.$store.dispatch('settings/swapLeftDeckColumn', this.id); } }, { - content: '%fa:arrow-right% %i18n:@swap-right%', + content: '%fa:arrow-right% %i18n:common.deck.swap-right%', onClick: () => { this.$store.dispatch('settings/swapRightDeckColumn', this.id); } }, { - content: '%fa:trash-alt R% %i18n:@remove%', + content: '%fa:trash-alt R% %i18n:common.deck.remove%', onClick: () => { this.$store.dispatch('settings/removeDeckColumn', this.id); } diff --git a/src/client/app/desktop/views/pages/deck/deck.notifications-column.vue b/src/client/app/desktop/views/pages/deck/deck.notifications-column.vue index b92614314..f57c52d2e 100644 --- a/src/client/app/desktop/views/pages/deck/deck.notifications-column.vue +++ b/src/client/app/desktop/views/pages/deck/deck.notifications-column.vue @@ -1,7 +1,7 @@ - + @@ -79,7 +79,7 @@ export default Vue.extend({ source: this.$refs.add, compact: true, items: [{ - content: '%i18n:@home%', + content: '%i18n:common.deck.home%', onClick: () => { this.$store.dispatch('settings/addDeckColumn', { id: uuid(), @@ -87,7 +87,7 @@ export default Vue.extend({ }); } }, { - content: '%i18n:@local%', + content: '%i18n:common.deck.local%', onClick: () => { this.$store.dispatch('settings/addDeckColumn', { id: uuid(), @@ -95,7 +95,7 @@ export default Vue.extend({ }); } }, { - content: '%i18n:@global%', + content: '%i18n:common.deck.global%', onClick: () => { this.$store.dispatch('settings/addDeckColumn', { id: uuid(), @@ -103,7 +103,7 @@ export default Vue.extend({ }); } }, { - content: '%i18n:@list%', + content: '%i18n:common.deck.list%', onClick: () => { const w = (this as any).os.new(MkUserListsWindow); w.$once('choosen', list => { @@ -116,7 +116,7 @@ export default Vue.extend({ }); } }, { - content: '%i18n:@notifications%', + content: '%i18n:common.deck.notifications%', onClick: () => { this.$store.dispatch('settings/addDeckColumn', { id: uuid(), @@ -124,7 +124,7 @@ export default Vue.extend({ }); } }, { - content: '%i18n:@widgets%', + content: '%i18n:common.deck.widgets%', onClick: () => { this.$store.dispatch('settings/addDeckColumn', { id: uuid(), @@ -155,7 +155,7 @@ root(isDark) overflow auto > div - margin-right 16px + margin-right 8px &:last-of-type margin-right 0 diff --git a/src/client/app/desktop/views/pages/deck/deck.widgets-column.vue b/src/client/app/desktop/views/pages/deck/deck.widgets-column.vue index 0b2cc305f..34073160c 100644 --- a/src/client/app/desktop/views/pages/deck/deck.widgets-column.vue +++ b/src/client/app/desktop/views/pages/deck/deck.widgets-column.vue @@ -1,7 +1,7 @@