From e127341228ebc8817f5a7a3458bc600c64224811 Mon Sep 17 00:00:00 2001 From: syuilo <syuilotan@yahoo.co.jp> Date: Wed, 16 May 2018 08:22:07 +0900 Subject: [PATCH] i18n --- locales/en.yml | 5 +++++ locales/ja.yml | 6 ++++++ src/client/app/desktop/views/components/timeline.vue | 8 ++++---- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index b664b2a9a9..9ffd232cb6 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -320,6 +320,11 @@ desktop/views/components/settings.profile.vue: description: "Description" birthday: "Birthday" save: "Update profile" +desktop/views/components/timeline.vue: + home: "Home" + local: "Local" + global: "Global" + list: "List" desktop/views/components/ui.header.account.vue: profile: "Your profile" drive: "Drive" diff --git a/locales/ja.yml b/locales/ja.yml index e13348c407..85826110f0 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -366,6 +366,12 @@ desktop/views/components/settings.profile.vue: birthday: "誕生日" save: "保存" +desktop/views/components/timeline.vue: + home: "ホーム" + local: "ローカル" + global: "グローバル" + list: "リスト" + desktop/views/components/ui.header.account.vue: profile: "プロフィール" drive: "ドライブ" diff --git a/src/client/app/desktop/views/components/timeline.vue b/src/client/app/desktop/views/components/timeline.vue index 855d032586..a776e40a24 100644 --- a/src/client/app/desktop/views/components/timeline.vue +++ b/src/client/app/desktop/views/components/timeline.vue @@ -1,11 +1,11 @@ <template> <div class="mk-timeline"> <header> - <span :data-active="src == 'home'" @click="src = 'home'">%fa:home% ホーム</span> - <span :data-active="src == 'local'" @click="src = 'local'">%fa:R comments% ローカル</span> - <span :data-active="src == 'global'" @click="src = 'global'">%fa:globe% グローバル</span> + <span :data-active="src == 'home'" @click="src = 'home'">%fa:home% %i18n:@home%</span> + <span :data-active="src == 'local'" @click="src = 'local'">%fa:R comments% %i18n:@local%</span> + <span :data-active="src == 'global'" @click="src = 'global'">%fa:globe% %i18n:@global%</span> <span :data-active="src == 'list'" @click="src = 'list'" v-if="list">%fa:list% {{ list.title }}</span> - <button @click="chooseList" title="リスト">%fa:list%</button> + <button @click="chooseList" title="%i18n:@list%">%fa:list%</button> </header> <x-core v-if="src == 'home'" ref="tl" key="home" src="home"/> <x-core v-if="src == 'local'" ref="tl" key="local" src="local"/>