From 46197bc4a34f6b0ad3e78bc1a458315af7c800df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Sat, 7 Jun 2025 12:00:04 +0800 Subject: [PATCH] The translating system works? ig, maybe it is just me being a idiot this entire time. Also you can toggle now (translating system) also maybe the AI summary system works? --- components/app/windows/newsView.vue | 14 ++++++++++++++ pages/desktop.vue | 12 ++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/components/app/windows/newsView.vue b/components/app/windows/newsView.vue index 9067561..6e23c8b 100644 --- a/components/app/windows/newsView.vue +++ b/components/app/windows/newsView.vue @@ -29,6 +29,7 @@ const likeart = ref([]); // Translating logic const translateText = ref(false); const translatedBefore = ref(false); +const traslateFailed = ref(false); watch( () => props.applyForTranslation, (value) => { @@ -63,6 +64,7 @@ const startTranslating = async (text: string) => { console.log(translateItem[text]); } catch (error) { console.error("Translation failed:", error); + traslateFailed.value = true; translateItem[text] = { translateText: text }; // fallback to original text } }; @@ -89,6 +91,18 @@ const aiSummary = async () => { };