|
23 | 23 | role="switch" |
24 | 24 | class="docs-example-code-toggle" |
25 | 25 | [attr.aria-checked]="showCode()" |
26 | | - [attr.aria-label]="showCode() ? 'Hide code' : 'Show code'" |
| 26 | + [attr.aria-label]="showCode() ? '隐藏代码' : '显示代码'" |
27 | 27 | (click)="showCode.set(!showCode())" |
28 | | - [matTooltip]="showCode() ? 'Hide code' : 'Show code'" |
| 28 | + [matTooltip]="showCode() ? '隐藏代码' : '显示代码'" |
29 | 29 | matTooltipPosition="above" |
30 | 30 | > |
31 | 31 | <docs-icon>{{showCode() ? 'code_off' : 'code'}}</docs-icon> |
32 | 32 | </button> |
33 | 33 | <button |
34 | 34 | type="button" |
35 | 35 | class="docs-example-copy-link" |
36 | | - [attr.aria-label]="'Copy link to ' + exampleMetadata()?.title + ' example to the clipboard'" |
| 36 | + [attr.aria-label]="'将 ' + exampleMetadata()?.title + ' 示例的链接复制到剪贴板'" |
37 | 37 | (click)="copyLink()" |
38 | | - matTooltip="Copy link to example" |
| 38 | + matTooltip="复制示例链接" |
39 | 39 | matTooltipPosition="above" |
40 | 40 | > |
41 | 41 | <i aria-hidden="true"> |
|
60 | 60 | <button |
61 | 61 | type="button" |
62 | 62 | (click)="toggleExampleVisibility()" |
63 | | - [attr.aria-label]="(expanded() ? 'Collapse' : 'Expand') + ' code example'" |
64 | | - matTooltip="{{ expanded() ? 'Collapse' : 'Expand' }} example" |
| 63 | + [attr.aria-label]="(expanded() ? '收起' : '展开') + ' 代码示例'" |
| 64 | + matTooltip="{{ expanded() ? '收起' : '展开' }}示例" |
65 | 65 | matTooltipPosition="above" |
66 | 66 | > |
67 | 67 | <i aria-hidden="true"> |
|
123 | 123 | [href]="githubUrl()" |
124 | 124 | target="_blank" |
125 | 125 | class="docs-example-github-link" |
126 | | - aria-label="Open example on GitHub" |
127 | | - matTooltip="Open example on GitHub" |
| 126 | + aria-label="在 GitHub 上打开示例" |
| 127 | + matTooltip="在 GitHub 上打开示例" |
128 | 128 | matTooltipPosition="above" |
129 | 129 | > |
130 | 130 | <i aria-hidden="true"> |
|
151 | 151 | [href]="stackblitzUrl()" |
152 | 152 | target="_blank" |
153 | 153 | class="docs-example-stackblitz-link" |
154 | | - aria-label="Edit example in StackBlitz" |
155 | | - matTooltip="Edit example in StackBlitz" |
| 154 | + aria-label="在 StackBlitz 中编辑示例" |
| 155 | + matTooltip="在 StackBlitz 中编辑示例" |
156 | 156 | matTooltipPosition="above" |
157 | 157 | > |
158 | 158 | <i aria-hidden="true"> |
|
0 commit comments