diff --git a/components/app/windows/news.vue b/components/app/windows/news.vue index 855cde2..23fa09f 100644 --- a/components/app/windows/news.vue +++ b/components/app/windows/news.vue @@ -1,10 +1,4 @@ -
@@ -325,11 +375,19 @@ const shouldHideItem = (item) => { - 會打開關於媒體({{ item.publisher }})的視窗 + {{ t("news.articleopenpart1") }}({{ + displayTranslateContent + ? translateItem[item.publisher].translateText + : item.publisher + }}){{ t("news.articleopenpart2") }} @@ -355,18 +413,20 @@ const shouldHideItem = (item) => { @click="openNews(item.url.hash, item.title)" class="flex flex-row p-1 bg-sky-300/50 hover:bg-sky-400/50 shadow-lg backdrop-blur-sm rounded transition-all duration-200" > - 觀看文章 + {{ + t("news.open") + }} - 會打開新的視窗 + {{ t("news.opennewwindow") }}
-

類似文章

+

{{ t("news.similararticles") }}

{ >
{{ similar.title }}
- 相似度: {{ (similar.similarity * 100).toFixed(1) }}% | - {{ similar.item.publisher }} + {{ t("news.similarity") }}: + {{ (similar.similarity * 100).toFixed(1) }}% | + {{ + displayTranslateContent + ? translateItem[similar.item.publisher].translateText + : similar.item.publisher + }}
@@ -385,7 +450,7 @@ const shouldHideItem = (item) => { v-if="checkIfEmpty(item.title)" class="text-gray-500 text-sm" > - 找不到類似文章 + {{ t("news.nosimilararticles") }}
diff --git a/components/app/windows/settings.vue b/components/app/windows/settings.vue index 3cd9a7c..12ccde3 100644 --- a/components/app/windows/settings.vue +++ b/components/app/windows/settings.vue @@ -281,13 +281,13 @@ const submitChangeAction = async (action: string) => { > diff --git a/i18n/locales/zh-tw.json b/i18n/locales/zh-tw.json index e84d345..7ef19d1 100644 --- a/i18n/locales/zh-tw.json +++ b/i18n/locales/zh-tw.json @@ -128,5 +128,14 @@ "contactEmailStarter": "聯絡信箱:" }, "copyrightInfo": "版權資訊" + }, + "news": { + "open": "觀看文章", + "opennewwindow": "會打開新的視窗", + "similararticles": "類似文章", + "similarity": "相似度", + "nosimilararticles": "找不到類似文章", + "articleopenpart1": "會打開關於媒體", + "articleopenpart2": "的視窗" } }