This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: provide Chinese translation for the system's role template (#870)
#### What type of PR is this? /kind feature #### What this PR does / why we need it: 为系统内提供的角色模板提供中文翻译。 #### Which issue(s) this PR fixes: Fixes halo-dev/halo#2848 #### Screenshots: <img width="1414" alt="image" src="https://user-images.githubusercontent.com/21301288/220069394-6af6922b-28b2-4818-ab58-dcfb69b6b53b.png"> #### Special notes for your reviewer: 测试方式: 1. 需要 `pnpm install` 2. 检查角色详情页面和新建页面的角色模板描述是否为中文。 #### Does this PR introduce a user-facing change? ```release-note Console 端为系统内提供的角色模板提供中文翻译 ```
- Loading branch information
Showing
7 changed files
with
177 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { createI18n } from "vue-i18n"; | ||
import zh from "./lang/zh"; | ||
|
||
const messages = { | ||
zh, | ||
}; | ||
|
||
const i18n = createI18n({ | ||
legacy: false, | ||
locale: "zh", | ||
messages, | ||
}); | ||
|
||
export default i18n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
const zh = { | ||
rbac: { | ||
"Attachments Management": "附件", | ||
"Attachment Manage": "附件管理", | ||
"Attachment View": "附件查看", | ||
"role-template-view-attachments": "附件查看", | ||
|
||
"Comments Management": "评论", | ||
"Comment Manage": "评论管理", | ||
"Comment View": "评论查看", | ||
"role-template-view-comments": "评论查看", | ||
|
||
"ConfigMaps Management": "配置", | ||
"ConfigMap Manage": "配置管理", | ||
"ConfigMap View": "配置查看", | ||
"role-template-view-configmaps": "配置查看", | ||
|
||
"Menus Management": "菜单", | ||
"Menu Manage": "菜单管理", | ||
"Menu View": "菜单查看", | ||
"role-template-view-menus": "菜单查看", | ||
|
||
"Permissions Management": "权限", | ||
"Permissions Manage": "权限管理", | ||
"Permissions View": "权限查看", | ||
"role-template-view-permissions": "权限查看", | ||
"role-template-manage-permissions": "权限管理", | ||
|
||
"Plugins Management": "插件", | ||
"Plugin Manage": "插件管理", | ||
"Plugin View": "插件查看", | ||
"role-template-view-plugins": "插件查看", | ||
|
||
"Posts Management": "文章", | ||
"Post Manage": "文章管理", | ||
"Post View": "文章查看", | ||
"role-template-view-posts": "文章查看", | ||
"role-template-manage-snaphosts": "版本管理", | ||
"role-template-view-snaphosts": "版本查看", | ||
"role-template-manage-tags": "标签管理", | ||
"role-template-view-tags": "标签查看", | ||
"role-template-manage-categories": "分类管理", | ||
"role-template-view-categories": "分类查看", | ||
|
||
"Roles Management": "角色", | ||
"Role Manage": "角色管理", | ||
"Role View": "角色查看", | ||
"role-template-view-roles": "角色查看", | ||
|
||
"Settings Management": "设置表单", | ||
"Setting Manage": "设置表单管理", | ||
"Setting View": "设置表单查看", | ||
"role-template-view-settings": "设置表单查看", | ||
|
||
"SinglePages Management": "页面", | ||
"SinglePage Manage": "页面管理", | ||
"SinglePage View": "页面查看", | ||
"role-template-view-singlepages": "页面查看", | ||
|
||
"Themes Management": "主题", | ||
"Theme Manage": "主题管理", | ||
"Theme View": "主题查看", | ||
"role-template-view-themes": "主题查看", | ||
|
||
"Users Management": "用户", | ||
"User manage": "用户管理", | ||
"User View": "用户查看", | ||
"role-template-view-users": "用户查看", | ||
"role-template-change-password": "修改密码", | ||
}, | ||
}; | ||
|
||
export default zh; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c03ea64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ui – ./
ui-git-main-halo-dev.vercel.app
ui-halo-dev.vercel.app
halo-admin-ui.vercel.app