Skip to content

Commit feffa98

Browse files
committed
fix: 汉化 index.html 和 404.html
1 parent fa1ab7c commit feffa98

File tree

2 files changed

+8
-28
lines changed

2 files changed

+8
-28
lines changed

404.html

+4-24
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="zh-Hans">
33

44
<head>
55
<meta charset="utf-8">
6-
<title>Angular</title>
6+
<title>Angular 中文版</title>
77
<meta name="Description" content="Angular is a platform for building mobile and desktop web applications.
88
Join the community of millions of developers who build compelling user interfaces with Angular.">
99
<base href="/">
@@ -46,26 +46,6 @@
4646
document.head.appendChild(tag);
4747
</script>
4848

49-
<!-- Legacy Google Analytics -->
50-
<script>
51-
// Note this is a customised version of the GA tracking snippet
52-
// See the comments below for more info
53-
(function (i, s, o, g, r, a, m) {
54-
if (i.trustedTypes) {
55-
// Specify path as a TrustedScriptURL when Trusted Types are available
56-
g = i.trustedTypes.createPolicy('aio#analytics', {
57-
createScriptURL: function (s) { return s; }
58-
}).createScriptURL(g);
59-
}
60-
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
61-
(i[r].q = i[r].q || []).push(arguments)
62-
}, i[r].l = 1 * new Date(); a = s.createElement(o),
63-
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g;
64-
~i.name.indexOf('NG_DEFER_BOOTSTRAP') || // only load library if not running e2e tests
65-
m.parentNode.insertBefore(a, m)
66-
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
67-
</script>
68-
<!-- End Legacy Google Analytics -->
6949
<link rel="stylesheet" href="styles.c9ea175d409df91f.css"></head>
7050

7151
<body>
@@ -100,8 +80,8 @@
10080
<div class="nf-container l-flex-wrap flex-center">
10181
<img src="assets/images/support/angular-404.svg" width="300" height="300" alt="not found"/>
10282
<div class="nf-response l-flex-wrap center">
103-
<h1 class="no-toc" id="page-not-found">Resource Not Found</h1>
104-
<p>We're sorry. The resource you are looking for cannot be found.</p>
83+
<h1 class="no-toc" id="page-not-found">资源未找到</h1>
84+
<p>抱歉,您要访问的资源未找到。</p>
10585
</div>
10686
</div>
10787
</div>

index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="zh-Hans">
33

44
<head>
55
<meta charset="utf-8">
6-
<title>Angular</title>
6+
<title>Angular 中文版</title>
77
<meta name="Description" content="Angular is a platform for building mobile and desktop web applications.
88
Join the community of millions of developers who build compelling user interfaces with Angular.">
99
<base href="/">
@@ -77,11 +77,11 @@
7777
<section id="intro" style="text-shadow: 1px 1px #1976d2;">
7878
<div class="hero-logo"></div>
7979
<div class="homepage-container">
80-
<div class="hero-headline">The modern web<br>developer's platform</div>
80+
<div class="hero-headline">现代 Web 开发平台</div>
8181
</div>
8282
</section>
8383
<h2 style="color: red; margin-top: 40px; position: relative; text-align: center; text-shadow: 1px 1px #fafafa; border-top: none;">
84-
<strong><i>This website requires JavaScript.</i></strong>
84+
<strong><i>本站点需要启用 JavaScript</i></strong>
8585
</h2>
8686
</noscript>
8787

0 commit comments

Comments
 (0)