2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00

feat: 统一翻译

This commit is contained in:
2025-04-13 04:22:05 +08:00
parent a3b0bf10e9
commit 0a2d9262c9

View File

@@ -145,10 +145,10 @@ const handleStart = async () => {
const handleIsEnabled = async () => {
if (isEnabled.value) {
await systemctl.enable('pure-ftpd')
window.$message.success($gettext('Auto-start enabled successfully'))
window.$message.success($gettext('Autostart enabled successfully'))
} else {
await systemctl.disable('pure-ftpd')
window.$message.success($gettext('Auto-start disabled successfully'))
window.$message.success($gettext('Autostart disabled successfully'))
}
await getIsEnabled()
}
@@ -226,8 +226,8 @@ onMounted(() => {
<n-card :title="$gettext('Running Status')">
<template #header-extra>
<n-switch v-model:value="isEnabled" @update:value="handleIsEnabled">
<template #checked> {{ $gettext('Auto-start On') }} </template>
<template #unchecked> {{ $gettext('Auto-start Off') }} </template>
<template #checked> {{ $gettext('Autostart On') }} </template>
<template #unchecked> {{ $gettext('Autostart Off') }} </template>
</n-switch>
</template>
<n-space vertical>