From e1ae3b5b0a9df950ec149b805cd7c866d76381bc Mon Sep 17 00:00:00 2001 From: Yucohny Date: Wed, 28 Jun 2023 15:20:36 +0800 Subject: [PATCH 1/2] docs(cn): translate warnings/invalid-aria-prop --- src/content/warnings/invalid-aria-prop.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/warnings/invalid-aria-prop.md b/src/content/warnings/invalid-aria-prop.md index 2d3b4253e9..7af16f0172 100644 --- a/src/content/warnings/invalid-aria-prop.md +++ b/src/content/warnings/invalid-aria-prop.md @@ -2,10 +2,10 @@ title: Invalid ARIA Prop Warning --- -This 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). +如果你尝试渲染一个在 WAI 与 ARIA [规范](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties) 中不存在的 `aria-*` 属性,就会触发此警告。 -1. If you feel that you are using a valid prop, check the spelling carefully. `aria-labelledby` and `aria-activedescendant` are often misspelled. +1. 如果你认为你使用了有效的属性,请仔细检查拼写。`aria-labelledby` 与 `aria-activedescendant` 经常出现拼写错误。 -2. If you wrote `aria-role`, you may have meant `role`. +2. 如果你使用了 `aria-role`,请试试 `role`。 -3. Otherwise, if you're on the latest version of React DOM and verified that you're using a valid property name listed in the ARIA specification, please [report a bug](https://github.com/facebook/react/issues/new/choose). +3. 否则,如果你使用的是 React DOM 的最新版本,并且已经验证了你使用的是 ARIA 规范中列出的有效属性名称,请在这里 [报告错误](https://github.com/facebook/react/issues/new/choose)。 \ No newline at end of file From fc13790215e7088646c9c398926afd3337ae39e8 Mon Sep 17 00:00:00 2001 From: Yucohny <79147654+Yucohny@users.noreply.github.com> Date: Wed, 28 Jun 2023 15:22:09 +0800 Subject: [PATCH 2/2] docs(cn): review and update --- src/content/warnings/invalid-aria-prop.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/warnings/invalid-aria-prop.md b/src/content/warnings/invalid-aria-prop.md index 7af16f0172..25f6143b36 100644 --- a/src/content/warnings/invalid-aria-prop.md +++ b/src/content/warnings/invalid-aria-prop.md @@ -1,5 +1,5 @@ --- -title: Invalid ARIA Prop Warning +title: 无效 ARIA 属性警告 --- 如果你尝试渲染一个在 WAI 与 ARIA [规范](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties) 中不存在的 `aria-*` 属性,就会触发此警告。 @@ -8,4 +8,4 @@ title: Invalid ARIA Prop Warning 2. 如果你使用了 `aria-role`,请试试 `role`。 -3. 否则,如果你使用的是 React DOM 的最新版本,并且已经验证了你使用的是 ARIA 规范中列出的有效属性名称,请在这里 [报告错误](https://github.com/facebook/react/issues/new/choose)。 \ No newline at end of file +3. 否则,如果你使用的是 React DOM 的最新版本,并且已经验证了你使用的是 ARIA 规范中列出的有效属性名称,请在这里 [报告错误](https://github.com/facebook/react/issues/new/choose)。