fix translate.js pure english.
This commit is contained in:
parent
afc17dce11
commit
1f95c12471
|
@ -17,19 +17,23 @@ a#develop-locally
|
|||
The <live-example name=quickstart>QuickStart live-coding</live-example> example is an Angular _playground_.
|
||||
It's not where you'd develop a real application.
|
||||
You [should develop locally](#why-locally "Why develop locally") on your own machine ... and that's also how we think you should learn Angular.
|
||||
|
||||
<live-example name=quickstart>《快速起步》在线编程</live-example>例子是 Angular 的*游戏场*。
|
||||
它不是你开发的真实应用的地方。
|
||||
你应该在自己的电脑上[本地开发](#why-locally "Why develop locally")... 你也应该在本地环境学习 Angular。
|
||||
</span>
|
||||
|
||||
<span if-docs="ts">
|
||||
<live-example name=quickstart>《快速起步》 live-coding</live-example> example is an Angular _playground_.
|
||||
It's not where you'd develop a real application.
|
||||
You [should develop locally](#why-locally "Why develop locally") on your own machine ... and that's also how we think you should learn Angular.
|
||||
</span>
|
||||
|
||||
|
||||
Setting up a new project on your machine is quick and easy with the **QuickStart seed**,
|
||||
maintained [on github](!{_qsRepo} "Install the github QuickStart repo").
|
||||
|
||||
利用 [github 上](!{_qsRepo} "Install the github QuickStart repo")的**快速起步种子**在你的电脑上搭建一个新项目是很快很容易的。
|
||||
|
||||
Make sure you have [!{_prereq} installed](#install-prerequisites "What if you don't have !{_prereq}?").
|
||||
Then ...
|
||||
|
||||
确定你已经安装了[!{_prereq}](#install-prerequisites "What if you don't have !{_prereq}?"),然后:
|
||||
|
||||
1. Create a project folder (you can call it `quickstart` and rename it later).
|
||||
1. [Clone](#clone "Clone it from github") or [download](#download "download it from github") the **QuickStart seed** into your project folder.
|
||||
1. !{_Install} [!{_npm}](#install-prerequisites "What if you don't have !{_prereq}?") packages.
|
||||
|
|
|
@ -92,17 +92,20 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
|
|||
if (sibling.children) {
|
||||
processContainer(sibling);
|
||||
}
|
||||
$current.addClass('original-english');
|
||||
$sibling.addClass('translated');
|
||||
$sibling.addClass('translated-cn');
|
||||
$sibling.after($current);
|
||||
$sibling.on('click', function (event) {
|
||||
// for nested structure.
|
||||
event.stopPropagation();
|
||||
$current.toggleClass('hidden');
|
||||
});
|
||||
// addSpacingBetweenCnAndEn(sibling);
|
||||
return true;
|
||||
if(!isPureEnglish(sibling.textContent)){
|
||||
$current.addClass('original-english');
|
||||
$sibling.addClass('translated');
|
||||
$sibling.addClass('translated-cn');
|
||||
$sibling.after($current);
|
||||
$sibling.on('click', function (event) {
|
||||
// for nested structure.
|
||||
event.stopPropagation();
|
||||
$current.toggleClass('hidden');
|
||||
});
|
||||
// addSpacingBetweenCnAndEn(sibling);
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue