@if (error()?.type === ErrorType.UNSUPPORTED_BROWSER_ENVIRONMENT) {
@if (isIos) {
-
Open angular.dev on desktop to code in your browser.
+
在桌面设备上打开 angular.dev,直接在浏览器中编写代码。
}
} @else if (error()?.type === ErrorType.COOKIES || error()?.type === ErrorType.UNKNOWN) {
- We couldn't start the tutorial app. Please ensure third party cookies are enabled for this
- site.
+ 我们无法启动教程应用。请确保已为此站点启用第三方 Cookie。
} @else if (error()?.type === ErrorType.OUT_OF_MEMORY) {
- We couldn't start the tutorial app because your browser is out of memory. To free up memory,
- close angular.dev tutorials in other tabs or windows, and refresh the page.
+ 我们无法启动教程应用,因为你的浏览器内存不足。请关闭其他标签页或窗口中的 angular.dev 教程,并刷新页面以释放内存。
}
@if (error()?.message) {
- The error message is:
+ 错误信息为:
{{ error()!.message }}
}
diff --git a/adev/src/app/editor/preview/preview.component.html b/adev/src/app/editor/preview/preview.component.html
index edc30bb625f4..f752424efb8a 100644
--- a/adev/src/app/editor/preview/preview.component.html
+++ b/adev/src/app/editor/preview/preview.component.html
@@ -3,7 +3,7 @@
} @else {
@@ -14,25 +14,25 @@
@switch (loadingProgressValue()) {
@case (loadingEnum.NOT_STARTED) {
-
Starting
+
正在启动
}
@case (loadingEnum.BOOT) {
-
Booting
+
正在引导
}
@case (loadingEnum.LOAD_FILES) {
-
Creating project
+
正在创建项目
}
@case (loadingEnum.INSTALL) {
-
Installing packages
+
正在安装依赖包
}
@case (loadingEnum.START_DEV_SERVER) {
- Initializing dev server
+ 正在初始化开发服务器
}
}
diff --git a/adev/src/app/editor/terminal/interactive-terminal.ts b/adev/src/app/editor/terminal/interactive-terminal.ts
index 7a97964d9eb3..d7fc1ffd2266 100644
--- a/adev/src/app/editor/terminal/interactive-terminal.ts
+++ b/adev/src/app/editor/terminal/interactive-terminal.ts
@@ -14,7 +14,7 @@ import {WINDOW} from '@angular/docs';
import {CommandValidator} from './command-validator.service';
-export const NOT_VALID_COMMAND_MSG = 'Angular Documentation - Not allowed command!';
+export const NOT_VALID_COMMAND_MSG = 'Angular 文档 - 不允许此命令!';
export const ALLOWED_KEYS: Array
= [
// Allow Backspace to delete what was typed
'Backspace',
diff --git a/adev/src/app/editor/typings-loader.service.ts b/adev/src/app/editor/typings-loader.service.ts
index 429354273901..45618b31b296 100644
--- a/adev/src/app/editor/typings-loader.service.ts
+++ b/adev/src/app/editor/typings-loader.service.ts
@@ -133,7 +133,7 @@ export class TypingsLoader {
}
private async getTypeDefinitionFilesFromDirectory(directory: string): Promise {
- if (!this.webContainer) throw new Error('this.webContainer is not defined');
+ if (!this.webContainer) throw new Error('this.webContainer 尚未定义');
const files = await this.webContainer.fs.readdir(directory);
diff --git a/adev/src/app/features/home/components/home-animation/home-animation.component.html b/adev/src/app/features/home/components/home-animation/home-animation.component.html
index a599d9eefada..512ac6f02142 100644
--- a/adev/src/app/features/home/components/home-animation/home-animation.component.html
+++ b/adev/src/app/features/home/components/home-animation/home-animation.component.html
@@ -5,14 +5,15 @@
href="https://blog.angular.dev/meet-angular-v19-7b29dfd05b84"
class="adev-banner"
target="_blank"
+ rel="noopener"
>
- Angular v19 is here!
- Read about our newest release.
+ Angular v19 已发布!
+ 阅读我们的最新版本。
-
@@ -99,9 +100,9 @@
Angular v19 is here!
-
Works at any scale
+
适用于任何规模
- Angular lets you start small on a well-lit path and supports you as your team and apps grow.
+ Angular 让你从小规模开始,于坦途之上成长,并随着你的团队和应用程序的发展而提供支持。
@@ -124,19 +125,17 @@
Works at any scale
-
Loved by millions
+
深受数百万开发者喜爱
- Join the millions of developers all over the world building with Angular in a thriving and
- friendly community.
+ 加入全球数百万使用 Angular 构建应用的开发者,成为这个充满活力和友好的社区的一员。
-
Build for everyone
+
为所有人构建
- Rely on Angular's built-in hydration, internationalization, security, and accessibility
- support to build for everyone around the world.
+ 依靠 Angular 内置的水合、国际化、安全性和无障碍性支持,为全球所有人构建应用。
diff --git a/adev/src/app/features/home/home.component.html b/adev/src/app/features/home/home.component.html
index 77e44585fc2f..af70bb092e3a 100644
--- a/adev/src/app/features/home/home.component.html
+++ b/adev/src/app/features/home/home.component.html
@@ -11,7 +11,7 @@
@defer (when showEditor(); prefetch when prefetchEditor()) {
} @loading {
-
+
}
diff --git a/adev/src/app/features/playground/playground.component.html b/adev/src/app/features/playground/playground.component.html
index 32f533172997..426f42bd9f9d 100644
--- a/adev/src/app/features/playground/playground.component.html
+++ b/adev/src/app/features/playground/playground.component.html
@@ -1,9 +1,9 @@