mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 07:57:21 +08:00
feat: 调整部分翻译
This commit is contained in:
@@ -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', {
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user