From 911dd2b922ce344895f8412b594d7f8599cd7e69 Mon Sep 17 00:00:00 2001 From: Roni Greenwood Date: Wed, 22 May 2019 16:38:28 +0200 Subject: [PATCH 01/10] translate first section of Accessibility documentation page --- content/docs/accessibility.md | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/content/docs/accessibility.md b/content/docs/accessibility.md index e6cacba3b..35472db50 100644 --- a/content/docs/accessibility.md +++ b/content/docs/accessibility.md @@ -1,22 +1,22 @@ --- id: accessibility -title: Accessibility +title: נגישות permalink: docs/accessibility.html --- -## Why Accessibility? {#why-accessibility} +## למה נגישות? {#why-accessibility} -Web accessibility (also referred to as [**a11y**](https://en.wiktionary.org/wiki/a11y)) is the design and creation of websites that can be used by everyone. Accessibility support is necessary to allow assistive technology to interpret web pages. +נגישות ברשת (ידועה גם כ [**a11y**](https://en.wiktionary.org/wiki/a11y)) היא יצירה ועיצוב אתרים שמתאימים לשימוש ע״י כולם. תמיכה בנגישות נדרשת ע״י טכנולוגית מסייעת כדי לפרש דפי אינטרנט. -React fully supports building accessible websites, often by using standard HTML techniques. +React מספקת תמיכה מלאה בבניית אתרים נגישים, בדרך כלל ע״י שימוש בטכניקות HTML סטנדרטיות. -## Standards and Guidelines {#standards-and-guidelines} +## סטנדרטים וקווים מנחים {#standards-and-guidelines} ### WCAG {#wcag} -The [Web Content Accessibility Guidelines](https://www.w3.org/WAI/intro/wcag) provides guidelines for creating accessible web sites. +ניתן למצוא קוים מנחים ליצירת אתרים נגישים ב[Web Content Accessibility Guidelines](https://www.w3.org/WAI/intro/wcag). -The following WCAG checklists provide an overview: +הרשימה הבאה מ WCAG מספקת סקירה כללית: - [WCAG checklist from Wuhcag](https://www.wuhcag.com/wcag-checklist/) - [WCAG checklist from WebAIM](https://webaim.org/standards/wcag/checklist) @@ -24,9 +24,10 @@ The following WCAG checklists provide an overview: ### WAI-ARIA {#wai-aria} -The [Web Accessibility Initiative - Accessible Rich Internet Applications](https://www.w3.org/WAI/intro/aria) document contains techniques for building fully accessible JavaScript widgets. +המסמך מ [Web Accessibility Initiative - Accessible Rich Internet Applications](https://www.w3.org/WAI/intro/aria) מכיל טכניקות לבניית ווידג׳טים נגישים ב Javascript. -Note that all `aria-*` HTML attributes are fully supported in JSX. Whereas most DOM properties and attributes in React are camelCased, these attributes should be hyphen-cased (also known as kebab-case, lisp-case, etc) as they are in plain HTML: +שימו לב שJSX תומך לחלוטין בכל תכונות הHTML `aria-*`. +בשונה מרוב תכונות הDOM בReact שנקראות בcamelCase, תכונות אלה נקראות בhyphen-cased (שמוכר גם בשמות אחרים כמו kebab-case, lisp-case וכו׳), בדיוק כמו בHTML רגיל: ```javascript{3,4} ``` -## Semantic HTML {#semantic-html} -Semantic HTML is the foundation of accessibility in a web application. Using the various HTML elements to reinforce the meaning of information -in our websites will often give us accessibility for free. +## סמנטי HTML {#semantic-html} +HTML סמנטי (או דקדוקי) הוא הבסיס לנגישות באפליקציות ואתרי אינטרנט. +השימוש באלמנטים שונים על מנת לחזק את המשמעות של המידע שמוצג באתרים, בדרך כלל יוביל לנגישות בפני עצמו. - [MDN HTML elements reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Element) -Sometimes we break HTML semantics when we add `
` elements to our JSX to make our React code work, especially when working with lists (`
    `, `
      ` and `
      `) and the HTML ``. -In these cases we should rather use [React Fragments](/docs/fragments.html) to group together multiple elements. - -For example, +לפעמים הסמנטיקה נשברת כשאנחנו מוסיפים אלמנטים כמו `
      ` לJSX כדי לגרום לReact לעבוד כמו שצריך, בעיקר בזמן שימוש ברשימות וטבלאות (`
        `, `
          `, `
          `, `
      ` וכו׳) +במקרים האלה ניתן להשתמש ב[פרגמנטים בReact](/docs/fragments.html) במקום `div`, כדי לאחד מספר אלמנטים. +לדוגמא, ```javascript{1,5,8} import React, { Fragment } from 'react'; @@ -73,14 +73,14 @@ function Glossary(props) { } ``` -You can map a collection of items to an array of fragments as you would any other type of element as well: +ניתן כמובן למפות רשימת פריטים למערך של פרגמנטים באותה צורה שממפים כל אלמנט אחר: ```javascript{6,9} function Glossary(props) { return (
      {props.items.map(item => ( - // Fragments should also have a `key` prop when mapping collections + // גם לפרגמנטים prop `key` בזמן מיפוי רשימות צריך להוסיף את ה
      {item.term}
      {item.description}
      @@ -91,7 +91,7 @@ function Glossary(props) { } ``` -When you don't need any props on the Fragment tag you can use the [short syntax](/docs/fragments.html#short-syntax), if your tooling supports it: +כשאין צורך בהוספת props ניתן להשתמש ב[סינטקס מקוצר](/docs/fragments.html#short-syntax), בהנחה ושאר הכלים תומכים בו: ```javascript{3,6} function ListItem({ item }) { @@ -104,7 +104,7 @@ function ListItem({ item }) { } ``` -For more info, see [the Fragments documentation](/docs/fragments.html). +לעוד מידע, ראו את עמוד [תיעוד הפרגמנטים](/docs/fragments.html). ## Accessible Forms {#accessible-forms} From 2b9a61486002272e503473ef94c3511901c7ec7b Mon Sep 17 00:00:00 2001 From: Roni Greenwood Date: Wed, 22 May 2019 17:13:33 +0200 Subject: [PATCH 02/10] translate tagging and focus sections of Accessibility documentation page --- content/docs/accessibility.md | 37 ++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/content/docs/accessibility.md b/content/docs/accessibility.md index 35472db50..1bdb97a4f 100644 --- a/content/docs/accessibility.md +++ b/content/docs/accessibility.md @@ -106,44 +106,45 @@ function ListItem({ item }) { לעוד מידע, ראו את עמוד [תיעוד הפרגמנטים](/docs/fragments.html). -## Accessible Forms {#accessible-forms} +## טפסים נגישים {#accessible-forms} -### Labeling {#labeling} -Every HTML form control, such as `` and `