feat: enhance localization by adding new app strings and descriptions; implement sources window for news sources display

This commit is contained in:
yuanhau 2025-05-12 13:53:11 +08:00
parent 3f60015b82
commit 26d3998a70
6 changed files with 86 additions and 9 deletions

View file

@ -0,0 +1,22 @@
<script setup lang="ts">
const { t, locale } = useI18n();
const { data: source, pending, error } = await useFetch("/api/getData/fetchSources", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: {
lang: locale,
},
});
</script>
<template>
<div >
<div v-for="item in source.data" :key="item.id">
<h1>{{ item.title }}</h1>
<span>{{ item.description }}</span>
<a :href="item.url">{{ item.url }}</a>
</div>
</div>
</template>