mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-12-15 07:40:01 +08:00
Feat: i18n
This commit is contained in:
parent
96b54d71be
commit
b662a82923
@ -35,6 +35,11 @@ export default class GeneralUpdateCommand extends InstanceCommand {
|
||||
logger.info($t("TXT_CODE_general_update.updateCmd", { instanceUuid: instance.instanceUuid }));
|
||||
logger.info(updateCommand);
|
||||
|
||||
instance.println(
|
||||
$t("TXT_CODE_general_update.update"),
|
||||
$t("TXT_CODE_general_update.readyUpdate", { instanceUuid: instance.instanceUuid })
|
||||
);
|
||||
|
||||
// command parsing
|
||||
const commandList = commandStringToArray(updateCommand);
|
||||
const commandExeFile = commandList[0];
|
||||
|
@ -24,7 +24,7 @@ export enum INSTANCE_STATUS_CODE {
|
||||
|
||||
export const INSTANCE_STATUS: Record<INSTANCE_STATUS_CODE, string> = {
|
||||
[INSTANCE_STATUS_CODE.UNKNOWN]: t("TXT_CODE_342a04a9"),
|
||||
[INSTANCE_STATUS_CODE.STOPPED]: t("未运行"),
|
||||
[INSTANCE_STATUS_CODE.STOPPED]: t("TXT_CODE_15f2e564"),
|
||||
[INSTANCE_STATUS_CODE.STOPPING]: t("TXT_CODE_a409b8a9"),
|
||||
[INSTANCE_STATUS_CODE.STARTING]: t("TXT_CODE_175b570d"),
|
||||
[INSTANCE_STATUS_CODE.RUNNING]: t("TXT_CODE_bdb620b9")
|
||||
|
@ -319,7 +319,7 @@ onMounted(async () => {
|
||||
<a-popconfirm
|
||||
v-for="item in [...quickOperations, ...instanceOperations]"
|
||||
:key="item.title"
|
||||
:title="t('你确定要执行此操作吗?')"
|
||||
:title="t('TXT_CODE_276756b2')"
|
||||
@confirm="item.click"
|
||||
>
|
||||
<a-button class="ml-8" :danger="item.type === 'danger'">
|
||||
|
@ -166,12 +166,6 @@ onMounted(async () => {
|
||||
</a-row>
|
||||
<a-row v-else :gutter="[24, 24]" style="height: 100%">
|
||||
<a-col :span="24" :md="24">
|
||||
<!-- <CardPanel style="height: 100%">
|
||||
<template #title>{{ t("筛选") }}</template>
|
||||
<template #body>
|
||||
|
||||
</template>
|
||||
</CardPanel> -->
|
||||
<a-form layout="horizontal" :model="searchForm">
|
||||
<a-form-item class="mb-0">
|
||||
<a-radio-group v-model:value="searchForm.language">
|
||||
@ -199,9 +193,9 @@ onMounted(async () => {
|
||||
</a-typography-paragraph>
|
||||
<a-typography-paragraph>
|
||||
<a-typography-text class="color-info">
|
||||
<div>{{ t("环境要求") }}: {{ item.runtime }}</div>
|
||||
<div>{{ t("硬件要求") }}: {{ item.hardware }}</div>
|
||||
<div>{{ t("大小") }}: {{ item.size }}</div>
|
||||
<div>{{ t("TXT_CODE_18b94497") }}: {{ item.runtime }}</div>
|
||||
<div>{{ t("TXT_CODE_683e3033") }}: {{ item.hardware }}</div>
|
||||
<div>{{ t("TXT_CODE_94bb113a") }}: {{ item.size }}</div>
|
||||
</a-typography-text>
|
||||
<br />
|
||||
<a-typography-text class="color-info"> </a-typography-text>
|
||||
|
@ -1820,5 +1820,9 @@
|
||||
"TXT_CODE_2082f653": "Default: /workspace/",
|
||||
"TXT_CODE_26495d02": "You can enter a startup command, such as java -jar demo.jar. If no startup command is entered, the command defined inside the image will be used.",
|
||||
"TXT_CODE_a85091a4": "Automatically assigned by default",
|
||||
"TXT_CODE_7da6e84": "Complete all required fields to create. For more options, please go to instance settings after creation."
|
||||
"TXT_CODE_7da6e84": "Complete all required fields to create. For more options, please go to instance settings after creation.",
|
||||
"TXT_CODE_276756b2": "Are you sure?",
|
||||
"TXT_CODE_51a1fffb": "Filter",
|
||||
"TXT_CODE_18b94497": "System Requirements",
|
||||
"TXT_CODE_683e3033": "Hardware Requirements"
|
||||
}
|
||||
|
@ -1820,5 +1820,9 @@
|
||||
"TXT_CODE_2082f653": "默认:/workspace/",
|
||||
"TXT_CODE_26495d02": "可以填写启动命令,如 java -jar demo.jar,不填写启动命令将以镜像内部定义的命令为准",
|
||||
"TXT_CODE_a85091a4": "默认自动分配",
|
||||
"TXT_CODE_7da6e84": "完善所有必填项后即可创建,更多其他设置请创建完成后,在应用实例设置中可以编辑!"
|
||||
"TXT_CODE_7da6e84": "完善所有必填项后即可创建,更多其他设置请创建完成后,在应用实例设置中可以编辑!",
|
||||
"TXT_CODE_276756b2": "你确定要执行此操作吗?",
|
||||
"TXT_CODE_51a1fffb": "筛选",
|
||||
"TXT_CODE_18b94497": "环境要求",
|
||||
"TXT_CODE_683e3033": "硬件要求"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user