Finish translations for the news.vue & update en.json for the news

stuff.
This commit is contained in:
吳元皓 2025-06-09 00:40:30 +08:00
parent 76f2d79904
commit 8c69fd2c35
2 changed files with 17 additions and 1 deletions

View File

@ -1,4 +1,7 @@
<script setup lang="ts">
// forgot to import t 💀
const { t } = useI18n();
// Vars for translating stuff
interface translateInterfaceText {
translateText: string;
@ -366,7 +369,11 @@ const translateFunction = () => {
class="text-2xl text-bold"
:class="getCheckResult(item.title) ? 'text-red-600' : ''"
>
{{ item.title }}
{{
displayTranslateContent
? translateItem[item.title].translateText
: item.title
}}
</h1>
<p class="m-0 text-gray-600">
<TooltipProvider>

View File

@ -130,5 +130,14 @@
"contactEmailStarter": "Contact Email"
},
"copyrightInfo": "Copyright Info"
},
"news": {
"open": "View Article",
"opennewwindow": "This will open a new window",
"similararticles": "Similar Articles",
"similarity": "Similarity",
"nosimilararticles": "There isn't any similar articles.",
"articleopenpart1": "This will open a open a new window about this new org",
"articleopenpart2": ""
}
}