From 5101ba8542db15fa2e389c7926e5f69cb54eae9a Mon Sep 17 00:00:00 2001 From: j-mendez Date: Fri, 23 Feb 2024 06:34:13 -0500 Subject: [PATCH] chore(i18n): add htmlcs_zh_TW translations and prep ar locale --- fast_axecore/locales/ar.json | 1043 ++++++++++++++++++++++++++++++++ fast_axecore/package.json | 2 +- fast_htmlcs/Translations/ar.ts | 461 ++++++++++++++ fast_htmlcs/package.json | 5 +- kayle/lib/runner-js.ts | 9 +- kayle/lib/runners/axe.ts | 2 + kayle/lib/runners/htmlcs.ts | 2 +- 7 files changed, 1519 insertions(+), 5 deletions(-) create mode 100644 fast_axecore/locales/ar.json create mode 100644 fast_htmlcs/Translations/ar.ts diff --git a/fast_axecore/locales/ar.json b/fast_axecore/locales/ar.json new file mode 100644 index 00000000..95c01ddf --- /dev/null +++ b/fast_axecore/locales/ar.json @@ -0,0 +1,1043 @@ +{ + "lang": "ar", + "rules": { + "accesskeys": { + "description": "Ensures every accesskey attribute value is unique", + "help": "accesskey attribute value should be unique" + }, + "area-alt": { + "description": "Ensures elements of image maps have alternate text", + "help": "Active elements must have alternate text" + }, + "aria-allowed-attr": { + "description": "Ensures ARIA attributes are allowed for an element's role", + "help": "Elements must only use allowed ARIA attributes" + }, + "aria-allowed-role": { + "description": "Ensures role attribute has an appropriate value for the element", + "help": "ARIA role should be appropriate for the element" + }, + "aria-command-name": { + "description": "Ensures every ARIA button, link and menuitem has an accessible name", + "help": "ARIA commands must have an accessible name" + }, + "aria-dialog-name": { + "description": "Ensures every ARIA dialog and alertdialog node has an accessible name", + "help": "ARIA dialog and alertdialog nodes should have an accessible name" + }, + "aria-hidden-body": { + "description": "Ensures aria-hidden='true' is not present on the document body.", + "help": "aria-hidden='true' must not be present on the document body" + }, + "aria-hidden-focus": { + "description": "Ensures aria-hidden elements are not focusable nor contain focusable elements", + "help": "ARIA hidden element must not be focusable or contain focusable elements" + }, + "aria-input-field-name": { + "description": "Ensures every ARIA input field has an accessible name", + "help": "ARIA input fields must have an accessible name" + }, + "aria-meter-name": { + "description": "Ensures every ARIA meter node has an accessible name", + "help": "ARIA meter nodes must have an accessible name" + }, + "aria-progressbar-name": { + "description": "Ensures every ARIA progressbar node has an accessible name", + "help": "ARIA progressbar nodes must have an accessible name" + }, + "aria-required-attr": { + "description": "Ensures elements with ARIA roles have all required ARIA attributes", + "help": "Required ARIA attributes must be provided" + }, + "aria-required-children": { + "description": "Ensures elements with an ARIA role that require child roles contain them", + "help": "Certain ARIA roles must contain particular children" + }, + "aria-required-parent": { + "description": "Ensures elements with an ARIA role that require parent roles are contained by them", + "help": "Certain ARIA roles must be contained by particular parents" + }, + "aria-roledescription": { + "description": "Ensure aria-roledescription is only used on elements with an implicit or explicit role", + "help": "aria-roledescription must be on elements with a semantic role" + }, + "aria-roles": { + "description": "Ensures all elements with a role attribute use a valid value", + "help": "ARIA roles used must conform to valid values" + }, + "aria-text": { + "description": "Ensures \"role=text\" is used on elements with no focusable descendants", + "help": "\"role=text\" should have no focusable descendants" + }, + "aria-toggle-field-name": { + "description": "Ensures every ARIA toggle field has an accessible name", + "help": "ARIA toggle fields must have an accessible name" + }, + "aria-tooltip-name": { + "description": "Ensures every ARIA tooltip node has an accessible name", + "help": "ARIA tooltip nodes must have an accessible name" + }, + "aria-treeitem-name": { + "description": "Ensures every ARIA treeitem node has an accessible name", + "help": "ARIA treeitem nodes should have an accessible name" + }, + "aria-valid-attr-value": { + "description": "Ensures all ARIA attributes have valid values", + "help": "ARIA attributes must conform to valid values" + }, + "aria-valid-attr": { + "description": "Ensures attributes that begin with aria- are valid ARIA attributes", + "help": "ARIA attributes must conform to valid names" + }, + "audio-caption": { + "description": "Ensures