Skip to content

Commit

Permalink
Chore: Fix some typo translations (#3361)
Browse files Browse the repository at this point in the history
1) For 'app-start.md':
We don't need 'too time-consuimg' but just 'long-time' enough.

2) For 'en.yml' and 'zh-cn.yml':
2.1) Uncomment the 'Loader' because we've finished the related article.
2.2) Make sure that 'translations' are the same language in both Chinese and English.
2.3) Translate 'Loader', 'Controller','Router' and 'Service' in Chinese.

Self Link:#3361
  • Loading branch information
Maledong authored Jan 4, 2019
1 parent d275929 commit b2152c5
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/source/en/basics/app-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ class AppBootHook {
}
```

**Note: It is not recommended to do too time-consuming operations in the custom lifecycle function, the framework will have a startup timeout detection.**
**Note: It is not recommended to do long-time operations in the custom lifecycle function, because the framework has a startup timeout detection.**
4 changes: 2 additions & 2 deletions docs/source/languages/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ index:
readmore: "Read More"

header:
translations: "切换语言"
translations: "Languages"

guide_toc:
Intro: Guide
Expand Down Expand Up @@ -59,7 +59,7 @@ guide_toc:
Framework: Framework
Progressive: Progressive
Deployment: Deployment
# Loader:
Loader: Loader
Community: Community
Plugin List: Plugin List
Contributing: Contributing
Expand Down
12 changes: 6 additions & 6 deletions docs/source/languages/zh-cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ index:
readmore: "查看更多"

header:
translations: "Languages"
translations: "切换语言"

guide_toc:
Intro: 新手指南
What is Egg: Egg.js 是什么?
What is Egg: Egg.js 是什么
Egg and Koa: Egg.js 和 Koa
Get Start: 快速入门
Style Guide: 代码风格指南
Expand All @@ -32,9 +32,9 @@ guide_toc:
Environment: 运行环境
Config: 配置
Middleware: 中间件
Router: Router
Controller: Controller
Service: Service
Router: 路由(Router
Controller: 控制器(Controller
Service: 服务(Service
Plugin: 插件
Schedule: 定时任务
Extend: 框架扩展
Expand All @@ -59,7 +59,7 @@ guide_toc:
Framework: 框架开发
Progressive: 渐进式开发
Deployment: 应用部署
# Loader:
Loader: 加载器(Loader)
Community: 社区
Plugin List: 内置插件列表
Contributing: 如何贡献
Expand Down
2 changes: 1 addition & 1 deletion docs/source/zh-cn/advanced/loader.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: Loader
title: 加载器(Loader
---

Egg 在 Koa 的基础上进行增强最重要的就是基于一定的约定,根据功能差异将代码放到不同的目录下管理,对整体团队的开发成本提升有着明显的效果。Loader 实现了这套约定,并抽象了很多底层 API 可以进一步扩展。
Expand Down
2 changes: 1 addition & 1 deletion docs/source/zh-cn/basics/controller.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: controller
title: 控制器(Controller)
---

## 什么是 Controller
Expand Down
2 changes: 1 addition & 1 deletion docs/source/zh-cn/basics/router.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: Router 路由
title: 路由(Router)
---

Router 主要用来描述请求 URL 和具体承担执行动作的 Controller 的对应关系,
Expand Down
2 changes: 1 addition & 1 deletion docs/source/zh-cn/basics/service.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: Service
title: 服务(Service
---

简单来说,Service 就是在复杂业务场景下用于做业务逻辑封装的一个抽象层,提供这个抽象有以下几个好处:
Expand Down

0 comments on commit b2152c5

Please sign in to comment.