feat: 增加一些翻译 (#4428)

This commit is contained in:
zhengkunwang 2024-04-08 17:06:08 +08:00 committed by GitHub
parent 4f2a340212
commit 9ec1610f34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 2 deletions

View file

@ -175,6 +175,8 @@ ErrRuleNotExist: "Rule is not Exist"
ErrParseIP: "IP format error"
ErrDefaultIP: "default is a reserved name, please change it to another name"
ErrGroupInUse: "The IP group is used by the black/white list and cannot be deleted"
ErrGroupExist: "IP group name already exists"
ErrIPRange: "Wrong IP range"
#license
ErrLicense: "License format error, please check and try again!"

View file

@ -176,6 +176,8 @@ ErrRuleNotExist: "規則不存在"
ErrParseIP: "IP 格式錯誤"
ErrDefaultIP: "default 為保留名稱,請更換其他名稱"
ErrGroupInUse: "IP 群組被黑/白名單使用,無法刪除"
ErrGroupExist: "IP 群組名稱已存在"
ErrIPRange: "IP 範圍錯誤"
#license
ErrLicense: "許可證格式錯誤,請檢查後重試!"

View file

@ -175,11 +175,13 @@ ErrRuleNotExist: "规则不存在"
ErrParseIP: "IP 格式错误"
ErrDefaultIP: "default 为保留名称,请更换其他名称"
ErrGroupInUse: "IP 组被黑/白名单使用,无法删除"
ErrGroupExist: "IP 组名称已存在"
ErrIPRange: "IP 范围错误"
#license
ErrLicense: "许可证格式错误,请检查后重试!"
ErrLicenseCheck: 许可证校验失败,请检查后重试!"
ErrLicenseSave: 许可证信息保存失败,错误 {{ .err }},请重试!"
ErrLicenseCheck: "许可证校验失败,请检查后重试!"
ErrLicenseSave: "许可证信息保存失败,错误 {{ .err }},请重试!"
ErrLicenseSync: "许可证信息同步失败,数据库中未检测到许可证信息!"
ErrXpackNotFound: "该部分为专业版功能,请先在 面板设置-许可证 界面导入许可证"
ErrXpackNotActive: "该部分为专业版功能,请先在 面板设置-许可证 界面同步许可证状态"

View file

@ -8,6 +8,7 @@ import TableSearch from './table-search/index.vue';
import TableSetting from './table-setting/index.vue';
import Tooltip from '@/components/tooltip/index.vue';
import CopyButton from '@/components/copy-button/index.vue';
import MsgInfo from '@/components/msg-info/index.vue';
export default {
install(app: App) {
app.component(LayoutContent.name, LayoutContent);
@ -19,5 +20,6 @@ export default {
app.component(CopyButton.name, CopyButton);
app.component(TableSearch.name, TableSearch);
app.component(TableSetting.name, TableSetting);
app.component(MsgInfo.name, MsgInfo);
},
};

View file

@ -17,6 +17,7 @@ defineProps({
default: '',
},
});
defineOptions({ name: 'MsgInfo' });
</script>
<style scoped>