fix: don't hide translation-origin if there is not translation-result
fix: translate more.
This commit is contained in:
parent
747ea2a287
commit
3fe722490a
|
@ -1,4 +1,5 @@
|
|||
<h1 class="no-toc">What is Angular?</h1>
|
||||
<h1 class="no-toc">什么是 Angular?</h1>
|
||||
|
||||
Angular is a platform that makes it easy to build applications with the web. Angular combines declarative templates, dependency injection, end to end tooling, and integrated best practices to solve development challenges. Angular empowers developers to build applications that live on the web, mobile, or the desktop
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<header class="marketing-banner">
|
||||
<h1 class="banner-headline no-toc no-anchor">Features & Benefits</h1>
|
||||
<h1 class="banner-headline no-toc no-anchor">特性与优点</h1>
|
||||
</header>
|
||||
|
||||
<article>
|
||||
|
@ -8,19 +9,24 @@
|
|||
<div class="feature-section">
|
||||
<div class="feature-header">
|
||||
<div class="text-headline">Cross Platform</div>
|
||||
<div class="text-headline">跨平台</div>
|
||||
<img src="generated/images/marketing/features/feature-icon.svg" height="70px">
|
||||
</div>
|
||||
<div class="feature-row">
|
||||
|
||||
<div class="feature">
|
||||
<div class="feature-title">Progressive Web Apps</div>
|
||||
<div class="feature-title">渐进式应用</div>
|
||||
<p class="text-body">Use modern web platform capabilities to deliver app-like experiences.
|
||||
High performance, offline, and zero-step installation.</p>
|
||||
<p class="text-body">充分利用现代 Web 平台的各种能力,提供 App 式体验。高性能、离线使用、免安装。</p>
|
||||
</div>
|
||||
|
||||
<div class="feature">
|
||||
<div class="feature-title">Native</div>
|
||||
<div class="feature-title">原生</div>
|
||||
<p class="text-body">Build native mobile apps with strategies from Ionic Framework, NativeScript, and React Native.</p>
|
||||
<p class="text-body">基于来自Ionic Framework、NativeScript和React Native的不同策略构建原生应用。</p>
|
||||
</div>
|
||||
|
||||
<div class="feature">
|
||||
|
|
|
@ -394,7 +394,7 @@
|
|||
},
|
||||
{
|
||||
"url": "https://github.com/angular/code-of-conduct/blob/master/CODE_OF_CONDUCT.md",
|
||||
"title": "行动守则",
|
||||
"title": "行为规范",
|
||||
"tooltip": "让我们彼此尊重"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
# Tutorial: Tour of Heroes
|
||||
@title
|
||||
教程:英雄指南
|
||||
|
||||
# 教程:英雄指南
|
||||
@intro
|
||||
|
||||
@description
|
||||
|
||||
The grand plan for this tutorial is to build an app that helps a staffing agency manage its stable of heroes.
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[translation-origin=off] {
|
||||
[translation-result] + [translation-origin=off] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,9 +20,12 @@ module.exports = function h1CheckerPostProcessor() {
|
|||
}
|
||||
});
|
||||
|
||||
file.title = file.headings.h1[0];
|
||||
if (file.headings.h1.length > 2) {
|
||||
file.fail(`More than two h1 found in ${file}`);
|
||||
} else if (file.headings.h1.length > 1) {
|
||||
file.title = file.headings.h1[1];
|
||||
} else if (file.headings.h1.length === 1) {
|
||||
file.title = file.headings.h1[0];
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue