update: translate buttons and title of details dialog

This commit is contained in:
Mohammad Foroughi
2022-10-30 14:52:31 +03:30
parent 7c2471d6cf
commit b7233a990d
3 changed files with 8 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
{{define "inboundInfoModal"}}
{{template "component/inboundInfo"}}
<a-modal id="inbound-info-modal" v-model="infoModal.visible" title="详细信息" @ok="infoModal.ok"
<a-modal id="inbound-info-modal" v-model="infoModal.visible" title='{{ i18n "pages.inbounds.details"}}' @ok="infoModal.ok"
:closable="true" :mask-closable="true"
ok-text="复制链接" cancel-text='{{ i18n "close" }}' :ok-button-props="infoModal.okBtnPros">
ok-text='{{ i18n "pages.inbounds.copyLink"}}' cancel-text='{{ i18n "close" }}' :ok-button-props="infoModal.okBtnPros">
<inbound-info :db-inbound="dbInbound" :inbound="inbound"></inbound-info>
</a-modal>
<script>
@@ -34,7 +34,7 @@
this.clipboard = new ClipboardJS(`#${this.okBtnPros.attrs.id}`, {
text: () => this.dbInbound.genLink(),
});
this.clipboard.on('success', () => app.$message.success('复制成功'));
this.clipboard.on('success', () => app.$message.success('{{ i18n "copySuccess" }}'));
});
}
},

View File

@@ -24,6 +24,8 @@
"edit" = "edit"
"delete" = "delete"
"reset" = "reset"
"copySuccess" = "Copy successfully"
[menu]
"dashboard" = "System Status"
@@ -87,6 +89,7 @@
"deleteInbound" = "Delete Inbound"
"deleteInboundContent" = "Are you sure you want to delete inbound?"
"resetTrafficContent" = "Are you sure you want to reset traffic?"
"copyLink" = "Copy Link"
[pages.setting]
"title" = "Setting"

View File

@@ -24,6 +24,7 @@
"edit" = "编辑"
"delete" = "删除"
"reset" = "重置"
"copySuccess" = "复制成功"
[menu]
"dashboard" = "系统状态"
@@ -86,6 +87,7 @@
"deleteInbound" = "删除入站"
"deleteInboundContent" = "确定要删除入站吗?"
"resetTrafficContent" = "确定要重置流量吗?"
"copyLink" = "复制链接"