You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "skyhhjmk (via GitHub)" <gi...@apache.org> on 2025/10/23 01:52:40 UTC
[PR] refactor(common): supplement missing chinese i18n translations [apisix-dashboard]
skyhhjmk opened a new pull request, #3235:
URL: https://github.com/apache/apisix-dashboard/pull/3235
### Why submit this pull request?
- [ ] Bugfix
- [ ] New feature provided
- [ ] Improve performance
- [x] Backport patches
### What changes will this PR take into?
This PR supplements and improves the Simplified Chinese i18n translations for APISIX Dashboard’s frontend language files. It unifies the translation of core technical terms (e.g., "Upstream" → "上游", "Route" → "路由") to ensure consistency, adds clear explanations for professional abbreviations (e.g., "SNI" → "服务器名称指示(SNI)") for better usability, and optimizes interface text expressions to fit Chinese user habits. All changes comply with frontend text length limits to avoid layout issues.
### Checklist:
- [x] Did you explain what problem does this PR solve? Or what new features have been added?
- [ ] Have you added corresponding test cases?
- [ ] Have you modified the corresponding document?
- [x] Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(common): supplement missing chinese i18n translations [apisix-dashboard]
Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on code in PR #3235:
URL: https://github.com/apache/apisix-dashboard/pull/3235#discussion_r2509284093
##########
src/locales/zh/common.json:
##########
@@ -1 +1,368 @@
-{}
+{
+ "apisix": {
+ "dashboard": "APISIX 仪表盘",
+ "logo": "APISIX Logo"
+ },
+ "consumerGroups": {
+ "singular": "消费者组"
+ },
+ "consumers": {
+ "singular": "消费者"
+ },
+ "credentials": {
+ "singular": "凭证"
+ },
+ "form": {
+ "basic": {
+ "desc": "描述",
+ "labels": {
+ "errorFormat": "标签格式错误,正确格式应为 `键:值`",
+ "key": "键",
+ "placeholder": "输入 `键:值` 格式文本,失去焦点或按回车确认",
+ "title": "标签",
+ "value": "值"
+ },
+ "name": "名称",
+ "status": "状态",
+ "statusOption": {
+ "0": "已禁用",
+ "1": "已启用"
+ },
+ "title": "基本信息"
+ },
+ "btn": {
+ "add": "添加",
+ "addARow": "添加一行",
+ "cancel": "取消",
+ "delete": "删除",
+ "edit": "编辑",
+ "save": "保存",
+ "upload": "上传",
+ "view": "查看"
+ },
+ "consumers": {
+ "groupId": "组 ID",
+ "username": "用户名"
+ },
+ "disabled": "已禁用,点击开关启用",
+ "general": {
+ "title": "常规"
+ },
+ "info": {
+ "create_time": "创建时间",
+ "id": "ID",
+ "title": "信息",
+ "update_time": "更新时间"
+ },
+ "json": {
+ "parseError": "JSON 格式无效"
+ },
+ "plugins": {
+ "addPlugin": "添加插件",
+ "configId": "插件配置 ID",
+ "editPlugin": "编辑插件",
+ "label": "插件",
+ "searchForSelectedPlugins": "搜索已选插件",
+ "selectPlugins": {
+ "title": "选择插件"
+ },
+ "viewPlugin": "查看插件"
+ },
+ "protos": {
+ "content": "内容",
+ "contentPlaceholder": "粘贴或上传 {{fileTypes}} 格式文件"
+ },
+ "routes": {
+ "enableWebsocket": "启用 WebSocket",
+ "filterFunc": "过滤函数",
+ "host": "主机",
+ "hosts": "主机列表",
+ "matchRules": "匹配规则",
+ "methods": "HTTP 方法",
+ "priority": "优先级",
+ "remoteAddr": "远程地址",
+ "remoteAddrs": "远程地址列表",
+ "service": "服务",
+ "uri": "统一资源标识符(URI)",
+ "uris": "统一资源标识符列表(URI)",
Review Comment:
I think proper nouns like these don't need to be translated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(common): supplement missing chinese i18n translations [apisix-dashboard]
Posted by "skyhhjmk (via GitHub)" <gi...@apache.org>.
skyhhjmk commented on code in PR #3235:
URL: https://github.com/apache/apisix-dashboard/pull/3235#discussion_r2509482549
##########
src/locales/zh/common.json:
##########
@@ -1 +1,368 @@
-{}
+{
+ "apisix": {
+ "dashboard": "APISIX 仪表盘",
+ "logo": "APISIX Logo"
+ },
+ "consumerGroups": {
+ "singular": "消费者组"
+ },
+ "consumers": {
+ "singular": "消费者"
+ },
+ "credentials": {
+ "singular": "凭证"
+ },
+ "form": {
+ "basic": {
+ "desc": "描述",
+ "labels": {
+ "errorFormat": "标签格式错误,正确格式应为 `键:值`",
+ "key": "键",
+ "placeholder": "输入 `键:值` 格式文本,失去焦点或按回车确认",
+ "title": "标签",
+ "value": "值"
+ },
+ "name": "名称",
+ "status": "状态",
+ "statusOption": {
+ "0": "已禁用",
+ "1": "已启用"
+ },
+ "title": "基本信息"
+ },
+ "btn": {
+ "add": "添加",
+ "addARow": "添加一行",
+ "cancel": "取消",
+ "delete": "删除",
+ "edit": "编辑",
+ "save": "保存",
+ "upload": "上传",
+ "view": "查看"
+ },
+ "consumers": {
+ "groupId": "组 ID",
+ "username": "用户名"
+ },
+ "disabled": "已禁用,点击开关启用",
+ "general": {
+ "title": "常规"
+ },
+ "info": {
+ "create_time": "创建时间",
+ "id": "ID",
+ "title": "信息",
+ "update_time": "更新时间"
+ },
+ "json": {
+ "parseError": "JSON 格式无效"
+ },
+ "plugins": {
+ "addPlugin": "添加插件",
+ "configId": "插件配置 ID",
+ "editPlugin": "编辑插件",
+ "label": "插件",
+ "searchForSelectedPlugins": "搜索已选插件",
+ "selectPlugins": {
+ "title": "选择插件"
+ },
+ "viewPlugin": "查看插件"
+ },
+ "protos": {
+ "content": "内容",
+ "contentPlaceholder": "粘贴或上传 {{fileTypes}} 格式文件"
+ },
+ "routes": {
+ "enableWebsocket": "启用 WebSocket",
+ "filterFunc": "过滤函数",
+ "host": "主机",
+ "hosts": "主机列表",
+ "matchRules": "匹配规则",
+ "methods": "HTTP 方法",
+ "priority": "优先级",
+ "remoteAddr": "远程地址",
+ "remoteAddrs": "远程地址列表",
+ "service": "服务",
+ "uri": "统一资源标识符(URI)",
+ "uris": "统一资源标识符列表(URI)",
Review Comment:
I agree with you — for anyone using APISIX, there really is no need to translate proper nouns.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(common): supplement missing chinese i18n translations [apisix-dashboard]
Posted by "skyhhjmk (via GitHub)" <gi...@apache.org>.
skyhhjmk closed pull request #3235: refactor(common): supplement missing chinese i18n translations
URL: https://github.com/apache/apisix-dashboard/pull/3235
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org