Merge pull request #55 from LisianthusLeaf/master

增加国际化翻译;修改logo
This commit is contained in:
Genius
2024-04-28 16:08:04 +08:00
committed by GitHub
8 changed files with 72 additions and 40 deletions

View File

@@ -31,18 +31,20 @@ const openGithubSite = () => {
height="100"
class="d-flex align-center justify-center"
>
<img
v-if="customizeTheme.darkTheme"
width="200"
src="@/assets/logo_dark.svg"
alt=""
/>
<img
v-else="customizeTheme.darkTheme"
width="200"
src="@/assets/logo_light.svg"
alt=""
/>
<h1 v-if="customizeTheme.darkTheme" style="background-image:-webkit-linear-gradient(left,#4f4f4f,#a1a1a1,#c9c9c9);-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-family: 华文琥珀;font-size: 35px;margin-bottom: 10px">ChopperBot</h1>
<h1 v-else="customizeTheme.darkTheme" style="background-image:-webkit-linear-gradient(left,#4f4f4f,#a1a1a1,#c9c9c9);-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-family: 华文琥珀;font-size: 35px;margin-bottom: 10px">ChopperBot</h1>
<!-- <img-->
<!-- v-if="customizeTheme.darkTheme"-->
<!-- width="200"-->
<!-- src="@/assets/logo_dark.svg"-->
<!-- alt=""-->
<!-- />-->
<!-- <img-->
<!-- v-else="customizeTheme.darkTheme"-->
<!-- width="200"-->
<!-- src="@/assets/logo_light.svg"-->
<!-- alt=""-->
<!-- />-->
</v-card>
</template>
@@ -56,7 +58,7 @@ const openGithubSite = () => {
<!---Bottom Area -->
<!-- ---------------------------------------------- -->
<template v-if="!customizeTheme.miniSidebar" v-slot:append>
<v-card theme="dark" height="225" class="pa-3" variant="text">
<v-card theme="dark" height="225" class="pa-3" style="margin-bottom: 100px" variant="text">
<v-card
class="d-flex flex-column gradient pa-2"
:class="customizeTheme.primaryColor.colorName"
@@ -72,12 +74,12 @@ const openGithubSite = () => {
>
<Icon width="30" icon="line-md:github-loop" />
</v-btn>
TML
<a target="_blank" href="https://github.com/Time-Machine-Lab">TML</a>
</v-card-title>
<v-card-subtitle> </v-card-subtitle>
<v-card-text>
<div><b>Github:</b></div>
<div>github.com/ChopperBot</div>
<div><a target="_blank" href="https://github.com/Geniusay/ChopperBot">github.com/ChopperBot</a></div>
</v-card-text>
<v-card-actions>
<v-btn

View File

@@ -1,7 +1,7 @@
<!--
* @Component: ToolbarNotifications
* @Maintainer: J.K. Yang
* @Description:
* @Description:
-->
<script setup lang="ts">
import StatusMenu from "./StatusMenu.vue";
@@ -108,8 +108,8 @@ const navs = [
<v-list variant="flat" elevation="0" :lines="false" density="compact">
<v-list-item
color="primary"
v-for="(nav, i) in navs"
:key="i"
v-for="nav in navs"
:key="nav.key"
:to="nav.link"
link
density="compact"
@@ -122,7 +122,7 @@ const navs = [
<div>
<v-list-item-subtitle class="text-body-2">{{
nav.title
nav.key ? $t(nav.key) : nav.title
}}</v-list-item-subtitle>
</div>
</v-list-item>

View File

@@ -2,8 +2,8 @@ import enMessages from "../locales/en";
import zhHansMessages from "../locales/zhHans";
import jaMessages from "../locales/ja";
const supported = ["en", "zhHans", "ja"];
let locale = "en";
const supported = ["zhHans", "en", "ja"];
let locale = "zhHans";
try {
// get browser default language
@@ -19,7 +19,7 @@ export default {
locale,
// when translation is not available fallback to that locale
fallbackLocale: "en",
fallbackLocale: "zhHans",
// availabled locales for user selection
availableLocales: [

View File

@@ -43,6 +43,7 @@ export default {
pages: "Pages",
others: "Others",
email: "Email",
tool: "Online clips",
chat: "Chat",
todo: "To Do",
nitori: "Nitori",
@@ -127,7 +128,13 @@ export default {
heat_recommend:"Heat Recommend",
live_follow:"Live Follow",
barrage_curve:"Barrage Curve",
hot_live:"Hot Live"
hot_live:"Hot Live",
profileDetails: "Profile Details",
plansAndBilling: "Plans and bills",
team: "teams",
apiDashboard: "api Dashboard",
integrations: "integrations",
askCommunity: "askCommunity"
},
monitor:{
totalDownload:"Total",

View File

@@ -42,6 +42,7 @@ export default {
pages: "ページ",
others: "その他",
email: "Eメール",
tool: "オンラインクリップ",
chat: "チャット",
todo: "やること",
nitori: "Nitori",
@@ -77,8 +78,8 @@ export default {
support: "サポート",
landingPage: "ダークモード",
pricingPage: "価格ページ",
heroPage: "Hero",
featurePage: "Feature",
heroPage: "ヒーロー",
featurePage: "特徴",
cardPage: "カードページ",
teamPage: "チームページ",
testimonialPage: "テストモニアルページ",
@@ -91,7 +92,7 @@ export default {
footerPage: "フッターページ",
dataTablePage: "データテーブルページ",
colors: "カラー",
gradient: "Gradient",
gradient: "勾配",
card: "カード",
grids: "グリッドレイアウト",
scrollbar: "スクロールバー",
@@ -102,7 +103,7 @@ export default {
charts: "チャート ",
echartLine: "Echart Line ",
echartBar: "Echart Bar ",
echartPie: "Echart Pie ",
echartPie: "Echart Pie",
echartScatter: "Echart Scatter ",
echartOthers: "Echart Others ",
apexChart: "ApexChart ",
@@ -113,8 +114,23 @@ export default {
topicsDataPage: "トピックデータ",
topicPhotosDataPage: "トピック写真データ",
},
chatbot_v1: "Chatbot v1",
chatbot_v2: "Chatbot v2",
chatbot_v1: "AIアシスタント v1",
chatbot_v2: "AIアシスタント v2",
plugin_setting: "プラグイン設定",
creeper_library: "クローラーリポジトリ",
task_center:"ミッションセンター",
hot_guard:"プラットフォーム熱監視",
heat_recommend:"ライブ・ストリーミングのおすすめトップ",
live_follow:"続くアンカー",
barrage_curve:"ポップアップ得点曲線",
hot_live:"人気のライブストリーミング",
label:"タグの管理",
profileDetails: "個人プロフィール",
plansAndBilling: "プランと請求書",
team: "チーム",
apiDashboard: "api こね板",
integrations: "インテグレーテッド",
askCommunity: "コミュニティに聞く"
},
dashboard: {
activity: "アクティビティ",

View File

@@ -36,18 +36,19 @@ export default {
},
menu: {
search: "搜索(按“ Ctrl + /”进行聚焦)",
dashboard: "仪表板",
dashboard: "数据监控",
logout: "登出",
profile: "个人资料",
blank: "空白页",
pages: "页面",
others: "其他",
email: "电子邮件",
tool: "在线剪辑",
chat: "聊天室",
todo: "去做",
nitori: "Nitori",
booking: "Booking",
unsplash: "Unsplash",
booking: "预约",
unsplash: "素材库",
ikea: "宜家",
board: "任务板",
users: "用户数",
@@ -65,8 +66,8 @@ export default {
authForgot: "忘记密码",
authReset: "重设密码",
errorPages: "错误页面",
errorNotFound: "找不到/ 404",
errorUnexpected: "意想不到的/ 500",
errorNotFound: "找不到对象/ 404",
errorUnexpected: "意外故障/ 500",
utilityPages: "实用页面",
utilityMaintenance: "保养",
utilitySoon: "快来了",
@@ -114,8 +115,8 @@ export default {
topicsDataPage: "主题数据",
topicPhotosDataPage: "主题照片数据",
},
chatbot_v1: "Chatbot v1",
chatbot_v2: "Chatbot v2",
chatbot_v1: "AI助手 v1",
chatbot_v2: "AI助手 v2",
plugin_setting: "插件设置",
creeper_library: "爬虫仓库",
task_center:"任务中心",
@@ -124,7 +125,13 @@ export default {
live_follow:"关注主播",
barrage_curve:"弹幕得分曲线",
hot_live:"热门直播",
label:"标签管理"
label:"标签管理",
profileDetails: "个人简介",
plansAndBilling: "计划和账单",
team: "团队",
apiDashboard: "api 面板",
integrations: "集成",
askCommunity: "询问社区"
},
dashboard: {
activity: "活动",

View File

@@ -4,8 +4,8 @@ const messages: any = locales.messages;
const i18n = createI18n({
legacy: false,
locale: "en", // 设置默认语言
fallbackLocale: "en", // 设置回退语言
locale: "zhHans", // 设置默认语言
fallbackLocale: "zhHans", // 设置回退语言
messages,
});

View File

@@ -8,7 +8,7 @@ import { useSnackbarStore } from "@/stores/snackbarStore";
export const usePluginStore = defineStore({
id: "plugin",
state:()=>({
pluginList: ref([]),
pluginList: ref<Plugin[]>([]),
currentLabel: "running",
labels:[
{