updata:智控台页面添加语言切换,支持中英繁

This commit is contained in:
rainv123
2025-09-12 15:11:56 +08:00
parent 5b4381c257
commit f788e45bc1
4 changed files with 8 additions and 7 deletions
@@ -10,7 +10,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="handleClose">{{ $t('button.cancel') }}</el-button>
<el-button type="primary" @click="handleSave">{{ $t('button.confirm') }}</el-button>
<el-button type="primary" @click="handleSave">{{ $t('button.save') }}</el-button>
</div>
</el-dialog>
</template>
@@ -31,7 +31,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="handleCancel">{{ $t('button.cancel') }}</el-button>
<el-button type="primary" @click="handleSubmit">{{ $t('button.confirm') }}</el-button>
<el-button type="primary" @click="handleSubmit">{{ $t('button.save') }}</el-button>
</div>
</el-dialog>
</template>
+2 -1
View File
@@ -532,9 +532,10 @@ export default {
'paramManagement.addSuccess': 'Add successful',
'paramManagement.updateFailed': 'Update failed',
'paramManagement.addFailed': 'Add failed',
'home.noConversation': 'No conversation',
'home.justNow': 'Just now',
'home.minutesAgo': '{minutes} minutes ago',
'home.hoursAgo': '{hours} hours{minutes, plural, one { minute } other { minutes }} ago',
'home.hoursAgo': '{hours} hours {minutes} minutes ago',
'home.confirmDeleteAgent': 'Are you sure you want to delete this agent?',
'home.deleteSuccess': 'Delete successful',
'home.deleteFailed': 'Delete failed',
@@ -280,12 +280,12 @@ export default {
});
return;
}
this.$confirm(this.$t('paramManagement.confirmBatchDelete', { paramCount }), 'Warning', {
confirmButtonText: 'OK',
cancelButtonText: 'Cancel',
this.$confirm(this.$t('paramManagement.confirmBatchDelete', { paramCount }), this.$t('message.warning'), {
confirmButtonText: this.$t('button.ok'),
cancelButtonText: this.$t('button.cancel'),
type: 'warning'
}).then(() => {
Api.admin.deleteParams(paramIds, ({ data }) => {
Api.admin.deleteParam(paramIds, ({ data }) => {
if (data.code === 0) {
this.fetchParams();
this.$message.success({