2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

feat: 调整部分翻译

This commit is contained in:
2025-04-13 03:23:01 +08:00
parent 053d7d3ca5
commit 90e66175ef
17 changed files with 24 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
import type { GlobalThemeOverrides, NDateLocale, NLocale } from 'naive-ui'
import { darkTheme, dateEnUS, dateZhCN, enUS, zhCN } from 'naive-ui'
import { darkTheme, dateEnUS, dateJaJP, dateZhCN, dateZhTW, enUS, jaJP, zhCN, zhTW } from 'naive-ui'
import type { BuiltInGlobalTheme } from 'naive-ui/es/themes/interface'
import { defaultSettings, getNaiveThemeOverrides } from './helpers'
@@ -7,8 +7,10 @@ import { defaultSettings, getNaiveThemeOverrides } from './helpers'
type ThemeState = Theme.Setting
const locales: Record<string, { locale: NLocale; dateLocale: NDateLocale }> = {
en: { locale: enUS, dateLocale: dateEnUS },
zh_CN: { locale: zhCN, dateLocale: dateZhCN },
en: { locale: enUS, dateLocale: dateEnUS }
zh_TW: { locale: zhTW, dateLocale: dateZhTW },
ja_JP: { locale: jaJP, dateLocale: dateJaJP }
}
export const useThemeStore = defineStore('theme', {

View File

@@ -22,7 +22,7 @@ const { data: config } = useRequest(docker.getConfig, {
})
const statusStr = computed(() => {
return status.value ? $gettext('Running normally') : $gettext('Stopped')
return status.value ? $gettext('Running') : $gettext('Stopped')
})
const getStatus = async () => {

View File

@@ -39,7 +39,7 @@ const statusType = computed(() => {
return status.value ? 'success' : 'error'
})
const statusStr = computed(() => {
return status.value ? $gettext('Running normally') : $gettext('Stopped')
return status.value ? $gettext('Running') : $gettext('Stopped')
})
const jailsColumns: any = [

View File

@@ -27,8 +27,8 @@ const config = ref({
const statusStr = computed(() => {
return {
frpc: status.value.frpc ? $gettext('Running normally') : $gettext('Stopped'),
frps: status.value.frps ? $gettext('Running normally') : $gettext('Stopped')
frpc: status.value.frpc ? $gettext('Running') : $gettext('Stopped'),
frps: status.value.frps ? $gettext('Running') : $gettext('Stopped')
}
})

View File

@@ -17,7 +17,7 @@ const isEnabled = ref(false)
const config = ref('')
const statusStr = computed(() => {
return status.value ? $gettext('Running normally') : $gettext('Stopped')
return status.value ? $gettext('Running') : $gettext('Stopped')
})
const getStatus = async () => {

View File

@@ -19,7 +19,7 @@ const statusType = computed(() => {
return status.value ? 'success' : 'error'
})
const statusStr = computed(() => {
return status.value ? $gettext('Running normally') : $gettext('Stopped')
return status.value ? $gettext('Running') : $gettext('Stopped')
})
const loadColumns: any = [

View File

@@ -17,7 +17,7 @@ const isEnabled = ref(false)
const env = ref('')
const statusStr = computed(() => {
return status.value ? $gettext('Running normally') : $gettext('Stopped')
return status.value ? $gettext('Running') : $gettext('Stopped')
})
const getStatus = async () => {

View File

@@ -32,7 +32,7 @@ const statusType = computed(() => {
return status.value ? 'success' : 'error'
})
const statusStr = computed(() => {
return status.value ? $gettext('Running normally') : $gettext('Stopped')
return status.value ? $gettext('Running') : $gettext('Stopped')
})
const loadColumns: any = [

View File

@@ -30,7 +30,7 @@ const statusType = computed(() => {
})
const statusStr = computed(() => {
return status.value ? $gettext('Running normally') : $gettext('Stopped')
return status.value ? $gettext('Running') : $gettext('Stopped')
})
const columns: any = [

View File

@@ -44,7 +44,7 @@ const statusType = computed(() => {
return status.value ? 'success' : 'error'
})
const statusStr = computed(() => {
return status.value ? $gettext('Running normally') : $gettext('Stopped')
return status.value ? $gettext('Running') : $gettext('Stopped')
})
const extensionColumns: any = [

View File

@@ -18,7 +18,7 @@ const registryConfig = ref('')
const storageConfig = ref('')
const statusStr = computed(() => {
return status.value ? $gettext('Running normally') : $gettext('Stopped')
return status.value ? $gettext('Running') : $gettext('Stopped')
})
const getStatus = async () => {

View File

@@ -32,7 +32,7 @@ const statusType = computed(() => {
return status.value ? 'success' : 'error'
})
const statusStr = computed(() => {
return status.value ? $gettext('Running normally') : $gettext('Stopped')
return status.value ? $gettext('Running') : $gettext('Stopped')
})
const loadColumns: any = [

View File

@@ -22,7 +22,7 @@ const statusType = computed(() => {
return status.value ? 'success' : 'error'
})
const statusStr = computed(() => {
return status.value ? $gettext('Running normally') : $gettext('Stopped')
return status.value ? $gettext('Running') : $gettext('Stopped')
})
const addUserModel = ref({

View File

@@ -26,7 +26,7 @@ const statusType = computed(() => {
return status.value ? 'success' : 'error'
})
const statusStr = computed(() => {
return status.value ? $gettext('Running normally') : $gettext('Stopped')
return status.value ? $gettext('Running') : $gettext('Stopped')
})
const loadColumns: any = [

View File

@@ -51,7 +51,7 @@ const statusType = computed(() => {
return status.value ? 'success' : 'error'
})
const statusStr = computed(() => {
return status.value ? $gettext('Running normally') : $gettext('Stopped')
return status.value ? $gettext('Running') : $gettext('Stopped')
})
const processColumns: any = [

View File

@@ -166,7 +166,7 @@ const columns: any = [
{
title: $gettext('Auto Renew'),
key: 'auto_renew',
width: 100,
width: 120,
align: 'center',
resizable: true,
render(row: any) {

View File

@@ -159,7 +159,10 @@ const chartOptions = computed(() => {
},
legend: {
align: 'left',
data: chartType.value == 'net' ? [$gettext('Send'), $gettext('Receive')] : [$gettext('Read'), $gettext('Write')]
data:
chartType.value == 'net'
? [$gettext('Send'), $gettext('Receive')]
: [$gettext('Read'), $gettext('Write')]
},
xAxis: {
type: 'category',