update: translate dialogs

This commit is contained in:
Mohammad Foroughi
2022-10-30 14:42:58 +03:30
parent cdd96ee6a8
commit 7c2471d6cf
3 changed files with 35 additions and 16 deletions

View File

@@ -236,8 +236,9 @@
},
openAddInbound() {
inModal.show({
title: '添加入站',
okText: '添加',
title: '{{ i18n "pages.inbounds.addInbound"}}',
okText: '{{ i18n "pages.inbounds.addTo"}}',
cancelText: '{{ i18n "close" }}',
confirm: async (inbound, dbInbound) => {
inModal.loading();
await this.addInbound(inbound, dbInbound);
@@ -248,8 +249,9 @@
openEditInbound(dbInbound) {
const inbound = dbInbound.toInbound();
inModal.show({
title: '修改入站',
okText: '修改',
title: '{{ i18n "pages.inbounds.modifyInbound"}}',
okText: '{{ i18n "pages.inbounds.revise"}}',
cancelText: '{{ i18n "close" }}',
inbound: inbound,
dbInbound: dbInbound,
confirm: async (inbound, dbInbound) => {
@@ -297,10 +299,10 @@
},
resetTraffic(dbInbound) {
this.$confirm({
title: '重置流量',
content: '确定要重置流量吗?',
okText: '重置',
cancelText: '取消',
title: '{{ i18n "pages.inbounds.resetTraffic"}}',
content: '{{ i18n "pages.inbounds.resetTrafficContent"}}',
okText: '{{ i18n "reset"}}',
cancelText: '{{ i18n "cancel"}}',
onOk: () => {
const inbound = dbInbound.toInbound();
dbInbound.up = 0;
@@ -311,16 +313,16 @@
},
delInbound(dbInbound) {
this.$confirm({
title: '删除入站',
content: '确定要删除入站吗?',
okText: '删除',
cancelText: '取消',
title: '{{ i18n "pages.inbounds.deleteInbound"}}',
content: '{{ i18n "pages.inbounds.deleteInboundContent"}}',
okText: '{{ i18n "delete"}}',
cancelText: '{{ i18n "cancel"}}',
onOk: () => this.submit('/xui/inbound/del/' + dbInbound.id),
});
},
showQrcode(dbInbound) {
const link = dbInbound.genLink();
qrModal.show('二维码', link);
qrModal.show('{{ i18n "qrCode"}}', link);
},
showInfo(dbInbound) {
infoModal.show(dbInbound);