diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-05-10 17:47:59 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-10 17:47:59 +0300 |
| commit | 23293813bb02ff03e336dde4ce3b628db5123950 (patch) | |
| tree | 4ecd4c20a37754e9622f46d529c6635af35ce785 /web | |
| parent | c15ec5315a48eb40c822b4b8a18693a666e2be23 (diff) | |
chore: add translations for `a-table`
Diffstat (limited to 'web')
| -rw-r--r-- | web/html/component/aTableSortable.html | 5 | ||||
| -rw-r--r-- | web/html/inbounds.html | 3 | ||||
| -rw-r--r-- | web/html/settings/xray/balancers.html | 2 | ||||
| -rw-r--r-- | web/html/settings/xray/dns.html | 6 | ||||
| -rw-r--r-- | web/html/settings/xray/outbounds.html | 10 | ||||
| -rw-r--r-- | web/html/settings/xray/reverse.html | 5 | ||||
| -rw-r--r-- | web/translation/translate.ar_EG.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.en_US.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.es_ES.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.fa_IR.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.id_ID.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.ja_JP.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.pt_BR.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.ru_RU.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.tr_TR.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.uk_UA.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.vi_VN.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.zh_CN.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.zh_TW.toml | 1 |
19 files changed, 34 insertions, 10 deletions
diff --git a/web/html/component/aTableSortable.html b/web/html/component/aTableSortable.html index 443ac50c..4abad8ef 100644 --- a/web/html/component/aTableSortable.html +++ b/web/html/component/aTableSortable.html @@ -64,6 +64,11 @@ drop: (e) => this.dropHandler(e), }, scopedSlots: this.$scopedSlots, + locale: { + filterConfirm: `{{ i18n "confirm" }}`, + filterReset: `{{ i18n "reset" }}`, + emptyText: `{{ i18n "noData" }}` + } }, this.$slots.default,) }, created() { diff --git a/web/html/inbounds.html b/web/html/inbounds.html index f632a5cc..29e6b00f 100644 --- a/web/html/inbounds.html +++ b/web/html/inbounds.html @@ -301,7 +301,8 @@ :expand-icon-column-index="0" :indent-size="0" :row-class-name="dbInbound => (dbInbound.isMultiUser() ? '' : 'hideExpandIcon')" - :style="{ marginTop: '10px' }"> + :style="{ marginTop: '10px' }" + :locale='{ filterConfirm: `{{ i18n "confirm" }}`, filterReset: `{{ i18n "reset" }}`, emptyText: `{{ i18n "noData" }}` }'> <template slot="action" slot-scope="text, dbInbound"> <a-dropdown :trigger="['click']"> <a-icon @click="e => e.preventDefault()" type="more" :style="{ fontSize: '20px', textDecoration: 'solid' }"></a-icon> diff --git a/web/html/settings/xray/balancers.html b/web/html/settings/xray/balancers.html index 19c4c99a..af7def75 100644 --- a/web/html/settings/xray/balancers.html +++ b/web/html/settings/xray/balancers.html @@ -5,7 +5,7 @@ <span>{{ i18n "pages.xray.balancer.addBalancer"}}</span> </a-button> <a-table :columns="balancerColumns" bordered :row-key="r => r.key" :data-source="balancersData" - :scroll="isMobile ? {} : { x: 200 }" :pagination="false" :indent-size="0"> + :scroll="isMobile ? {} : { x: 200 }" :pagination="false" :indent-size="0" :locale='{ filterConfirm: `{{ i18n "confirm" }}`, filterReset: `{{ i18n "reset" }}` }'> <template slot="action" slot-scope="text, balancer, index"> <span>[[ index+1 ]]</span> <a-dropdown :trigger="['click']"> diff --git a/web/html/settings/xray/dns.html b/web/html/settings/xray/dns.html index d2cb7082..11558536 100644 --- a/web/html/settings/xray/dns.html +++ b/web/html/settings/xray/dns.html @@ -66,7 +66,8 @@ <span>{{ i18n "pages.xray.dns.add" }}</span> </a-button> <a-table :columns="dnsColumns" bordered :row-key="r => r.key" :data-source="dnsServers" - :scroll="isMobile ? {} : { x: 200 }" :pagination="false" :indent-size="0"> + :scroll="isMobile ? {} : { x: 200 }" :pagination="false" :indent-size="0" + :locale='{ filterConfirm: `{{ i18n "confirm" }}`, filterReset: `{{ i18n "reset" }}` }'> <template slot="action" slot-scope="text,dns,index"> <span>[[ index+1 ]]</span> <a-dropdown :trigger="['click']"> @@ -113,7 +114,8 @@ <a-button type="primary" icon="plus" @click="addFakedns()">{{ i18n "pages.xray.fakedns.add" }}</a-button> <a-table :columns="fakednsColumns" bordered :row-key="r => r.key" :data-source="fakeDns" - :scroll="isMobile ? {} : { x: 200 }" :pagination="false" :indent-size="0"> + :scroll="isMobile ? {} : { x: 200 }" :pagination="false" :indent-size="0" + :locale='{ filterConfirm: `{{ i18n "confirm" }}`, filterReset: `{{ i18n "reset" }}` }'> <template slot="action" slot-scope="text,fakedns,index"> <span>[[ index+1 ]]</span> <a-dropdown :trigger="['click']"> diff --git a/web/html/settings/xray/outbounds.html b/web/html/settings/xray/outbounds.html index 0837a223..a5211fca 100644 --- a/web/html/settings/xray/outbounds.html +++ b/web/html/settings/xray/outbounds.html @@ -13,8 +13,9 @@ <a-button-group> <a-button icon="sync" @click="refreshOutboundTraffic()" :loading="refreshing"></a-button> <a-popconfirm placement="topRight" @confirm="resetOutboundTraffic(-1)" - title='{{ i18n "pages.inbounds.resetTrafficContent"}}' :overlay-class-name="themeSwitcher.currentTheme" - ok-text='{{ i18n "reset"}}' cancel-text='{{ i18n "cancel"}}'> + title='{{ i18n "pages.inbounds.resetTrafficContent"}}' + :overlay-class-name="themeSwitcher.currentTheme" ok-text='{{ i18n "reset"}}' + cancel-text='{{ i18n "cancel"}}'> <a-icon slot="icon" type="question-circle-o" :style="{ color: themeSwitcher.isDarkTheme ? '#008771' : '#008771' }"></a-icon> <a-button icon="retweet"></a-button> @@ -23,7 +24,8 @@ </a-col> </a-row> <a-table :columns="outboundColumns" bordered :row-key="r => r.key" :data-source="outboundData" - :scroll="isMobile ? {} : { x: 800 }" :pagination="false" :indent-size="0"> + :scroll="isMobile ? {} : { x: 800 }" :pagination="false" :indent-size="0" + :locale='{ filterConfirm: `{{ i18n "confirm" }}`, filterReset: `{{ i18n "reset" }}` }'> <template slot="action" slot-scope="text, outbound, index"> <span>[[ index+1 ]]</span> <a-dropdown :trigger="['click']"> @@ -46,7 +48,7 @@ </a-menu-item> <a-menu-item @click="deleteOutbound(index)"> <span :style="{ color: '#FF4D4F' }"> - <a-icon type="delete"></a-icon> + <a-icon type="delete"></a-icon> <span>{{ i18n "delete"}}</span> </span> </a-menu-item> diff --git a/web/html/settings/xray/reverse.html b/web/html/settings/xray/reverse.html index cdb4738d..c15b4a8c 100644 --- a/web/html/settings/xray/reverse.html +++ b/web/html/settings/xray/reverse.html @@ -5,7 +5,8 @@ <span>{{ i18n "pages.xray.outbound.addReverse" }}</span> </a-button> <a-table :columns="reverseColumns" bordered :row-key="r => r.key" :data-source="reverseData" - :scroll="isMobile ? {} : { x: 200 }" :pagination="false" :indent-size="0"> + :scroll="isMobile ? {} : { x: 200 }" :pagination="false" :indent-size="0" + :locale='{ filterConfirm: `{{ i18n "confirm" }}`, filterReset: `{{ i18n "reset" }}` }'> <template slot="action" slot-scope="text, reverse, index"> <span>[[ index+1 ]]</span> <a-dropdown :trigger="['click']"> @@ -18,7 +19,7 @@ </a-menu-item> <a-menu-item @click="deleteReverse(index)"> <span :style="{ color: '#FF4D4F' }"> - <a-icon type="delete"></a-icon> + <a-icon type="delete"></a-icon> <span>{{ i18n "delete"}}</span> </span> </a-menu-item> diff --git a/web/translation/translate.ar_EG.toml b/web/translation/translate.ar_EG.toml index f1ff5ac9..c8e28a5a 100644 --- a/web/translation/translate.ar_EG.toml +++ b/web/translation/translate.ar_EG.toml @@ -28,6 +28,7 @@ "edit" = "تعديل" "delete" = "مسح" "reset" = "إعادة ضبط" +"noData" = "لا توجد بيانات." "copySuccess" = "اتنسخ بنجاح" "sure" = "متأكد؟" "encryption" = "تشفير" diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml index ae2648b1..ec7507f4 100644 --- a/web/translation/translate.en_US.toml +++ b/web/translation/translate.en_US.toml @@ -28,6 +28,7 @@ "edit" = "Edit" "delete" = "Delete" "reset" = "Reset" +"noData" = "No data." "copySuccess" = "Copied Successful" "sure" = "Sure" "encryption" = "Encryption" diff --git a/web/translation/translate.es_ES.toml b/web/translation/translate.es_ES.toml index 797eeaf9..376bd115 100644 --- a/web/translation/translate.es_ES.toml +++ b/web/translation/translate.es_ES.toml @@ -28,6 +28,7 @@ "edit" = "Editar"
"delete" = "Eliminar"
"reset" = "Restablecer"
+"noData" = "Sin datos."
"copySuccess" = "Copiado exitosamente"
"sure" = "Seguro"
"encryption" = "Encriptación"
diff --git a/web/translation/translate.fa_IR.toml b/web/translation/translate.fa_IR.toml index facc1857..e7b479af 100644 --- a/web/translation/translate.fa_IR.toml +++ b/web/translation/translate.fa_IR.toml @@ -28,6 +28,7 @@ "edit" = "ویرایش" "delete" = "حذف" "reset" = "ریست" +"noData" = "دادهای وجود ندارد." "copySuccess" = "باموفقیت کپیشد" "sure" = "مطمئن" "encryption" = "رمزگذاری" diff --git a/web/translation/translate.id_ID.toml b/web/translation/translate.id_ID.toml index 6c9bc29d..4bba61a0 100644 --- a/web/translation/translate.id_ID.toml +++ b/web/translation/translate.id_ID.toml @@ -28,6 +28,7 @@ "edit" = "Edit" "delete" = "Hapus" "reset" = "Reset" +"noData" = "Tidak ada data." "copySuccess" = "Berhasil Disalin" "sure" = "Yakin" "encryption" = "Enkripsi" diff --git a/web/translation/translate.ja_JP.toml b/web/translation/translate.ja_JP.toml index 947a3b97..ca4385c4 100644 --- a/web/translation/translate.ja_JP.toml +++ b/web/translation/translate.ja_JP.toml @@ -28,6 +28,7 @@ "edit" = "編集" "delete" = "削除" "reset" = "リセット" +"noData" = "データなし。" "copySuccess" = "コピー成功" "sure" = "確定" "encryption" = "暗号化" diff --git a/web/translation/translate.pt_BR.toml b/web/translation/translate.pt_BR.toml index 1cb32a29..eb5d37ce 100644 --- a/web/translation/translate.pt_BR.toml +++ b/web/translation/translate.pt_BR.toml @@ -28,6 +28,7 @@ "edit" = "Editar" "delete" = "Excluir" "reset" = "Redefinir" +"noData" = "Sem dados." "copySuccess" = "Copiado com Sucesso" "sure" = "Certo" "encryption" = "Criptografia" diff --git a/web/translation/translate.ru_RU.toml b/web/translation/translate.ru_RU.toml index ba639809..f1d14459 100644 --- a/web/translation/translate.ru_RU.toml +++ b/web/translation/translate.ru_RU.toml @@ -28,6 +28,7 @@ "edit" = "Изменить" "delete" = "Удалить" "reset" = "Сбросить" +"noData" = "Нет данных." "copySuccess" = "Скопировано" "sure" = "Да" "encryption" = "Шифрование" diff --git a/web/translation/translate.tr_TR.toml b/web/translation/translate.tr_TR.toml index d287d4e7..9537b966 100644 --- a/web/translation/translate.tr_TR.toml +++ b/web/translation/translate.tr_TR.toml @@ -28,6 +28,7 @@ "edit" = "Düzenle" "delete" = "Sil" "reset" = "Sıfırla" +"noData" = "Veri yok." "copySuccess" = "Başarıyla Kopyalandı" "sure" = "Emin misiniz" "encryption" = "Şifreleme" diff --git a/web/translation/translate.uk_UA.toml b/web/translation/translate.uk_UA.toml index 15662067..858a95f8 100644 --- a/web/translation/translate.uk_UA.toml +++ b/web/translation/translate.uk_UA.toml @@ -28,6 +28,7 @@ "edit" = "Редагувати" "delete" = "Видалити" "reset" = "Скидання" +"noData" = "Немає даних." "copySuccess" = "Скопійовано успішно" "sure" = "Звичайно" "encryption" = "Шифрування" diff --git a/web/translation/translate.vi_VN.toml b/web/translation/translate.vi_VN.toml index 9e3c802c..0e700ab5 100644 --- a/web/translation/translate.vi_VN.toml +++ b/web/translation/translate.vi_VN.toml @@ -28,6 +28,7 @@ "edit" = "Chỉnh sửa"
"delete" = "Xóa"
"reset" = "Đặt lại"
+"noData" = "Không có dữ liệu."
"copySuccess" = "Đã sao chép thành công"
"sure" = "Chắc chắn"
"encryption" = "Mã hóa"
diff --git a/web/translation/translate.zh_CN.toml b/web/translation/translate.zh_CN.toml index db85a39c..edef37fa 100644 --- a/web/translation/translate.zh_CN.toml +++ b/web/translation/translate.zh_CN.toml @@ -28,6 +28,7 @@ "edit" = "编辑" "delete" = "删除" "reset" = "重置" +"noData" = "无数据。" "copySuccess" = "复制成功" "sure" = "确定" "encryption" = "加密" diff --git a/web/translation/translate.zh_TW.toml b/web/translation/translate.zh_TW.toml index 598064fe..34ad9472 100644 --- a/web/translation/translate.zh_TW.toml +++ b/web/translation/translate.zh_TW.toml @@ -28,6 +28,7 @@ "edit" = "編輯" "delete" = "刪除" "reset" = "重置" +"noData" = "無數據。" "copySuccess" = "複製成功" "sure" = "確定" "encryption" = "加密" |
