Skip to content

Commit 077c646

Browse files
seognilQC-L
authored andcommitted
docs(cn): translate content/warnings/invalid-aria-prop.md into Chinese (#114)
https://stackblitz.com/edit/react-invalid-aria-prop warning 重现 因为单词缩写太长 做了一些结构性调整(参考人家俄文的调整…)
1 parent 6ebb04d commit 077c646

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

content/warnings/invalid-aria-prop.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
---
2-
title: Invalid ARIA Prop Warning
2+
title: 警告:非法的 ARIA Prop
33
layout: single
44
permalink: warnings/invalid-aria-prop.html
55
---
66

7-
The invalid-aria-prop warning will fire if you attempt to render a DOM element with an aria-* prop that does not exist in the Web Accessibility Initiative (WAI) Accessible Rich Internet Application (ARIA) [specification](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties).
7+
当你试图渲染一个 DOM 元素,并且它的 aria-* 属性不存在于 WAI<sup><a href="#note1">[1]</a></sup>-ARIA<sup><a href="#note2">[2]</a></sup> [规范](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties)中时,会出现 invalid-aria-prop 警告。
88

9-
1. If you feel that you are using a valid prop, check the spelling carefully. `aria-labelledby` and `aria-activedescendant` are often misspelled.
9+
1. 如果你认为你使用的是合法的属性,仔细检查拼写。`aria-labelledby` `aria-activedescendant` 常常会被拼错。
1010

11-
2. React does not yet recognize the attribute you specified. This will likely be fixed in a future version of React. However, React currently strips all unknown attributes, so specifying them in your React app will not cause them to be rendered
11+
2. React 还无法识别你指定的属性。这可能会在 React 的未来版本中被修复。但是,React 目前会去除所有未知属性,因此即使在 React 应用中指定这些属性也无法使它们渲染。
12+
13+
**译注:**
14+
15+
<a name="note1"></a> [1] WAI:Web Accessibility Initiative,Web 无障碍计划<br>
16+
<a name="note2"></a> [2] ARIA:Accessible Rich Internet Application,无障碍丰富互联网应用程序

0 commit comments

Comments
 (0)