Finish translations for the news.vue & update en.json for the news
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run

stuff.
This commit is contained in:
yuanhau 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>