Skip to content

Commit

Permalink
zh-CN -> zh-Hans, zh-TW -> zh-Hant
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebuilds committed Jan 4, 2016
1 parent 71c06a1 commit aa1a8d4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ are presently doing.
- [Türk](/translations/tr/README.md)
- [Український](/translations/uk/README.md)
- [Tiếng Việt](/translations/vi/README.md)
- [中文](/translations/zh-CN/README.md)
- [繁體中文](/translations/zh-TW/README.md)
- [中文](/translations/zh-Hans/README.md)
- [繁體中文](/translations/zh-Hant/README.md)

**[Request another translation](https://github.com/thejameskyle/babel-plugin-handbook/issues/new?title=Translation%20Request:%20[Please%20enter%20language%20here]&body=I%20am%20able%20to%20translate%20this%20language%20[yes/no])**

Expand Down
4 changes: 2 additions & 2 deletions crowdin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ files:
'tr': 'tr'
'uk': 'uk'
'vi': 'vi'
'zh-CN': 'zh-CN'
'zh-TW': 'zh-TW'
'zh-CN': 'zh-Hans'
'zh-TW': 'zh-Hant'
22 changes: 11 additions & 11 deletions translations/zh-CN/README.md → translations/zh-Hans/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,22 @@ $ npm install -g babel-plugin-handbook
# 目录

* [介绍](#introduction)
* [基础](#basics)
* [基础](#basics)
* [抽象语法树(ASTs)](#asts)
* [Babel 的处理步骤](#stages-of-babel)
* [解析](#parse)
* [解析](#parse)
* [词法分析](#lexical-analysis)
* [语法分析](#syntactic-analysis)
* [转换](#transform)
* [生成](#generate)
* [遍历](#traversal)
* [Visitors(访问者)](#visitors)
* [Paths(路径)](#paths)
* [Paths(路径)](#paths)
* [Paths in Visitors(存在于访问者中的路径)](#paths-in-visitors)
* [State(状态)](#state)
* [Scopes(作用域)](#scopes)
* [Scopes(作用域)](#scopes)
* [Bindings(绑定)](#bindings)
* [API](#api)
* [API](#api)
* [babylon](#babylon)
* [babel-traverse](#babel-traverse)
* [babel-types](#babel-types)
Expand All @@ -84,7 +84,7 @@ $ npm install -g babel-plugin-handbook
* [babel-generator](#babel-generator)
* [babel-template](#babel-template)
* [编写你的第一个 Babel 插件](#writing-your-first-babel-plugin)
* [转换操作](#transformation-operations)
* [转换操作](#transformation-operations)
* [访问](#visiting)
* [检查节点是否为某种特定类型](#check-if-a-node-is-a-certain-type)
* [检查标识符是否正在被引用着](#check-if-an-identifier-is-referenced)
Expand All @@ -103,7 +103,7 @@ $ npm install -g babel-plugin-handbook
* [重命名绑定及其引用](#rename-a-binding-and-its-references)
* [插件选项](#plugin-options)
* [构建节点](#building-nodes)
* [最佳实践](#best-practices)
* [最佳实践](#best-practices)
* [尽量避免遍历抽象语法树(AST)](#avoid-traversing-the-ast-as-much-as-possible)
* [及时合并访问者对象](#merge-visitors-whenever-possible)
* [可以手动查找就不要遍历](#do-not-traverse-when-manual-lookup-will-do)
Expand Down Expand Up @@ -427,20 +427,20 @@ Called!

让我们以上面那棵树为例子走一遍这个过程。

* 进入 `FunctionDeclaration`
* 进入 `FunctionDeclaration`
* 进入 `Identifier (id)`
* 走到尽头
* 退出 `Identifier (id)`
* 进入 `Identifier (params[0])`
* 走到尽头
* 退出 `Identifier (params[0])`
* 进入 `BlockStatement (body)`
* 进入 `ReturnStatement (body)`
* 进入 `ReturnStatement (body)`
* 进入 `BinaryExpression (argument)`
* 进入 `Identifier (left)`
* 进入 `Identifier (left)`
* 走到尽头
* 退出 `Identifier (left)`
* 进入 `Identifier (right)`
* 进入 `Identifier (right)`
* 走到尽头
* 退出 `Identifier (right)`
* 退出 `BinaryExpression (argument)`
Expand Down
22 changes: 11 additions & 11 deletions translations/zh-TW/README.md → translations/zh-Hant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,22 @@ If you are reading a non-english translation of this document you will find a nu
# Table of Contents

* [Introduction](#introduction)
* [Basics](#basics)
* [Basics](#basics)
* [ASTs](#asts)
* [Stages of Babel](#stages-of-babel)
* [Parse](#parse)
* [Parse](#parse)
* [Lexical Analysis](#lexical-analysis)
* [Syntactic Analysis](#syntactic-analysis)
* [Transform](#transform)
* [Generate](#generate)
* [Traversal](#traversal)
* [Visitors](#visitors)
* [Paths](#paths)
* [Paths](#paths)
* [Paths in Visitors](#paths-in-visitors)
* [State](#state)
* [Scopes](#scopes)
* [Scopes](#scopes)
* [Bindings](#bindings)
* [API](#api)
* [API](#api)
* [babylon](#babylon)
* [babel-traverse](#babel-traverse)
* [babel-types](#babel-types)
Expand All @@ -84,7 +84,7 @@ If you are reading a non-english translation of this document you will find a nu
* [babel-generator](#babel-generator)
* [babel-template](#babel-template)
* [Writing your first Babel Plugin](#writing-your-first-babel-plugin)
* [Transformation Operations](#transformation-operations)
* [Transformation Operations](#transformation-operations)
* [Visiting](#visiting)
* [Check if a node is a certain type](#check-if-a-node-is-a-certain-type)
* [Check if an identifier is referenced](#check-if-an-identifier-is-referenced)
Expand All @@ -103,7 +103,7 @@ If you are reading a non-english translation of this document you will find a nu
* [Rename a binding and its references](#rename-a-binding-and-its-references)
* [Plugin Options](#plugin-options)
* [Building Nodes](#building-nodes)
* [Best Practices](#best-practices)
* [Best Practices](#best-practices)
* [Avoid traversing the AST as much as possible](#avoid-traversing-the-ast-as-much-as-possible)
* [Merge visitors whenever possible](#merge-visitors-whenever-possible)
* [Do not traverse when manual lookup will do](#do-not-traverse-when-manual-lookup-will-do)
Expand Down Expand Up @@ -427,20 +427,20 @@ As we traverse down each branch of the tree we eventually hit dead ends where we

Let's *walk* through what this process looks like for the above tree.

* Enter `FunctionDeclaration`
* Enter `FunctionDeclaration`
* Enter `Identifier (id)`
* Hit dead end
* Exit `Identifier (id)`
* Enter `Identifier (params[0])`
* Hit dead end
* Exit `Identifier (params[0])`
* Enter `BlockStatement (body)`
* Enter `ReturnStatement (body)`
* Enter `ReturnStatement (body)`
* Enter `BinaryExpression (argument)`
* Enter `Identifier (left)`
* Enter `Identifier (left)`
* Hit dead end
* Exit `Identifier (left)`
* Enter `Identifier (right)`
* Enter `Identifier (right)`
* Hit dead end
* Exit `Identifier (right)`
* Exit `BinaryExpression (argument)`
Expand Down

0 comments on commit aa1a8d4

Please sign in to comment.