Skip to content

Commit dfc176a

Browse files
committed
fix: 翻译新增内容
1 parent 6135310 commit dfc176a

File tree

5 files changed

+34
-8
lines changed

5 files changed

+34
-8
lines changed

src/dev-app/dev-app/dev-app-state.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ import {Direction} from '@angular/cdk/bidi';
1010

1111
const KEY = 'MAT_DEV_APP_STATE';
1212

13-
/** State of the appearance of the dev app. */
13+
/**
14+
* State of the appearance of the dev app.
15+
*
16+
* 开发应用程序的外观状态。
17+
*
18+
*/
1419
export interface DevAppState {
1520
density: string | number;
1621
animations: boolean;
@@ -21,7 +26,12 @@ export interface DevAppState {
2126
direction: Direction;
2227
}
2328

24-
/** Gets the current appearance state of the dev app. */
29+
/**
30+
* Gets the current appearance state of the dev app.
31+
*
32+
* 获取开发应用程序的当前外观状态。
33+
*
34+
*/
2535
export function getAppState(): DevAppState {
2636
let value: DevAppState | null = null;
2737

src/dev-app/google-map/google-map-demo.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ let apiLoadingPromise: Promise<unknown> | null = null;
4949
/**
5050
* Demo Component for @angular/google-maps/map
5151
*
52+
* @angular/google-maps/map 的演示组件
53+
*
5254
*/
5355
@Component({
5456
selector: 'google-map-demo',

src/dev-app/performance/performance-demo.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,20 @@ import {take} from 'rxjs/operators';
4040
],
4141
})
4242
export class PerformanceDemo implements AfterViewInit {
43-
/** Controls the rendering of components. */
43+
/**
44+
* Controls the rendering of components.
45+
*
46+
* 控制组件的渲染。
47+
*
48+
*/
4449
show = false;
4550

46-
/** The number of times metrics will be gathered. */
51+
/**
52+
* The number of times metrics will be gathered.
53+
*
54+
* 将要收集指标的次数。
55+
*
56+
*/
4757
sampleSize = 100;
4858

4959
/** The number of components being rendered. */

src/material/autocomplete/autocomplete.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ the autocomplete in the following ways:
107107
默认情况下,自动完成器将接受用户在输入字段中输入的值。但如果你想确保选中自动完成器的选项之一,则可以在 `mat-autocomplete` 上启用 `requireSelection` 输入属性。 这将通过以下方式改变自动完成器的行为:
108108

109109
1. If the user opens the autocomplete, changes its value, but doesn't select anything, the
110-
autocomplete value will be reset back to `null`.
110+
autocomplete value will be reset back to `null`.
111111

112-
如果用户打开自动完成器,更改其值,但未选中任何内容,则自动完成器的值将重置回 `null` 。
112+
如果用户打开自动完成器,更改其值,但未选中任何内容,则自动完成器的值将重置回 `null`
113113

114114
2. If the user opens and closes the autocomplete without changing the value, the old value will
115-
be preserved.
115+
be preserved.
116116

117-
如果用户打开并关闭自动完成器而不更改它的值,则将保留旧值。
117+
如果用户打开并关闭自动完成器而不更改它的值,则将保留旧值。
118118

119119
This behavior can be configured globally using the `MAT_AUTOCOMPLETE_DEFAULT_OPTIONS`
120120
injection token.

src/material/button/icon-button.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ import {
3232
* users to perform an action.
3333
* See https://material.io/develop/web/components/buttons/icon-buttons/
3434
*
35+
* Material Design 图标按钮组件。这种类型的按钮显示单个交互式图标,供用户执行操作。请参阅 https://material.io/develop/web/components/buttons/icon-buttons/
36+
*
3537
*/
3638
@Component({
3739
selector: `button[mat-icon-button]`,
@@ -61,6 +63,8 @@ export class MatIconButton extends MatButtonBase {
6163
* interaction icon that allows users to navigate across different routes or pages.
6264
* See https://material.io/develop/web/components/buttons/icon-buttons/
6365
*
66+
* `a` 元素的 Material Design 图标按钮组件。此按钮显示单个交互图标,允许用户跨不同的路由或页面导航。请参阅 https://material.io/develop/web/components/buttons/icon-buttons/
67+
*
6468
*/
6569
@Component({
6670
selector: `a[mat-icon-button]`,

0 commit comments

Comments
 (0)