From 71647d9f8bf5b65515b0f34d43a0d71c84a54c78 Mon Sep 17 00:00:00 2001 From: j-mendez Date: Sun, 31 Mar 2024 07:20:37 -0400 Subject: [PATCH] chore(i18n): add consistent translation kebab --- README.md | 4 +- fast_axecore/package.json | 2 +- kayle/lib/rules/zh_CN/axe-rules.ts | 196 ++-- kayle/lib/rules/zh_CN/htmlcs-rules.ts | 1486 +++++++++++++++++++++++++ kayle/lib/rules/zh_TW/htmlcs-rules.ts | 1486 +++++++++++++++++++++++++ kayle/lib/runner-js.ts | 15 +- kayle/package.json | 2 +- kayle/tests/i18n.ts | 2 +- 8 files changed, 3083 insertions(+), 110 deletions(-) diff --git a/README.md b/README.md index dfc6939..8ff0940 100644 --- a/README.md +++ b/README.md @@ -199,9 +199,9 @@ type RunnerConfig = { 1. ko ("Korean") 1. he ("Hebrew") 1. nl ("Dutch") -1. no_NB ("Norwegian") +1. no-NB ("Norwegian") 1. pl ("Polish Poland") -1. pt_BR ("Portuguese Brazil") +1. pt-BR ("Portuguese Brazil") 1. zh-CN ("Chinese-Simplified") 1. zh-TW ("Chinese-Traditional") diff --git a/fast_axecore/package.json b/fast_axecore/package.json index d4db38a..8daaa88 100644 --- a/fast_axecore/package.json +++ b/fast_axecore/package.json @@ -1,7 +1,7 @@ { "name": "fast_axecore", "description": "A high performance rewrite of axecore", - "version": "4.6.33", + "version": "4.6.35", "license": "MPL-2.0", "engines": { "node": ">=4" diff --git a/kayle/lib/rules/zh_CN/axe-rules.ts b/kayle/lib/rules/zh_CN/axe-rules.ts index 67233e5..ba7f6e1 100644 --- a/kayle/lib/rules/zh_CN/axe-rules.ts +++ b/kayle/lib/rules/zh_CN/axe-rules.ts @@ -5,7 +5,7 @@ export const axeRules = [ description: "Ensures every accesskey attribute value is unique", help: "accesskey attribute value should be unique", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/accesskeys?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/accesskeys?application=axeAPI", tags: ["cat.keyboard", "best-practice"], }, { @@ -13,7 +13,7 @@ export const axeRules = [ description: "Ensures elements of image maps have alternate text", help: "Active elements must have alternate text", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/area-alt?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/area-alt?application=axeAPI", tags: [ "cat.text-alternatives", "wcag2a", @@ -30,7 +30,7 @@ export const axeRules = [ description: "Ensures ARIA attributes are allowed for an element's role", help: "Elements must only use allowed ARIA attributes", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-allowed-attr?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-allowed-attr?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag412"], actIds: ["5c01ea"], }, @@ -40,7 +40,7 @@ export const axeRules = [ "Ensures role attribute has an appropriate value for the element", help: "ARIA role should be appropriate for the element", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-allowed-role?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-allowed-role?application=axeAPI", tags: ["cat.aria", "best-practice"], }, { @@ -49,7 +49,7 @@ export const axeRules = [ "Ensures every ARIA button, link and menuitem has an accessible name", help: "ARIA commands must have an accessible name", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-command-name?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-command-name?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag412", "ACT"], actIds: ["97a4e1"], }, @@ -59,7 +59,7 @@ export const axeRules = [ "Ensures every ARIA dialog and alertdialog node has an accessible name", help: "ARIA dialog and alertdialog nodes should have an accessible name", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-dialog-name?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-dialog-name?application=axeAPI", tags: ["cat.aria", "best-practice"], }, { @@ -68,7 +68,7 @@ export const axeRules = [ "Ensures aria-hidden='true' is not present on the document body.", help: "aria-hidden='true' must not be present on the document body", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-hidden-body?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-hidden-body?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag412"], }, { @@ -77,7 +77,7 @@ export const axeRules = [ "Ensures aria-hidden elements are not focusable nor contain focusable elements", help: "ARIA hidden element must not be focusable or contain focusable elements", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-hidden-focus?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-hidden-focus?application=axeAPI", tags: ["cat.name-role-value", "wcag2a", "wcag412"], actIds: ["6cfa84"], }, @@ -86,7 +86,7 @@ export const axeRules = [ description: "Ensures every ARIA input field has an accessible name", help: "ARIA input fields must have an accessible name", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-input-field-name?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-input-field-name?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag412", "ACT"], actIds: ["e086e5"], }, @@ -95,7 +95,7 @@ export const axeRules = [ description: "Ensures every ARIA meter node has an accessible name", help: "ARIA meter nodes must have an accessible name", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-meter-name?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-meter-name?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag111"], }, { @@ -103,16 +103,16 @@ export const axeRules = [ description: "Ensures every ARIA progressbar node has an accessible name", help: "ARIA progressbar nodes must have an accessible name", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-progressbar-name?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-progressbar-name?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag111"], }, { ruleId: "aria-required-attr", description: - "Zorg dat elementen met ARIA rollen (role) de vereiste ARIA attributen hebben", - help: "Voorzien de vereiste ARIA attributen", + "Ensures elements with ARIA roles have all required ARIA attributes", + help: "Required ARIA attributes must be provided", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-required-attr?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-required-attr?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag412"], actIds: ["4e8ab6"], }, @@ -122,7 +122,7 @@ export const axeRules = [ "Ensures elements with an ARIA role that require child roles contain them", help: "Certain ARIA roles must contain particular children", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-required-children?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-required-children?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag131"], actIds: ["bc4a75", "ff89c9"], }, @@ -132,7 +132,7 @@ export const axeRules = [ "Ensures elements with an ARIA role that require parent roles are contained by them", help: "Certain ARIA roles must be contained by particular parents", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-required-parent?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-required-parent?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag131"], actIds: ["ff89c9"], }, @@ -142,7 +142,7 @@ export const axeRules = [ "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", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-roledescription?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-roledescription?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag412"], }, { @@ -150,7 +150,7 @@ export const axeRules = [ description: "Ensures all elements with a role attribute use a valid value", help: "ARIA roles used must conform to valid values", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-roles?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-roles?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag412"], actIds: ["674b10"], }, @@ -160,7 +160,7 @@ export const axeRules = [ 'Ensures "role=text" is used on elements with no focusable descendants', help: '"role=text" should have no focusable descendants', helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-text?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-text?application=axeAPI", tags: ["cat.aria", "best-practice"], }, { @@ -168,7 +168,7 @@ export const axeRules = [ description: "Ensures every ARIA toggle field has an accessible name", help: "ARIA toggle fields must have an accessible name", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-toggle-field-name?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-toggle-field-name?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag412", "ACT"], actIds: ["e086e5"], }, @@ -177,7 +177,7 @@ export const axeRules = [ description: "Ensures every ARIA tooltip node has an accessible name", help: "ARIA tooltip nodes must have an accessible name", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-tooltip-name?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-tooltip-name?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag412"], }, { @@ -185,7 +185,7 @@ export const axeRules = [ description: "Ensures every ARIA treeitem node has an accessible name", help: "ARIA treeitem nodes should have an accessible name", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-treeitem-name?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-treeitem-name?application=axeAPI", tags: ["cat.aria", "best-practice"], }, { @@ -194,7 +194,7 @@ export const axeRules = [ "Ensures attributes that begin with aria- are valid ARIA attributes", help: "ARIA attributes must conform to valid names", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-valid-attr?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-valid-attr?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag412"], actIds: ["5f99a7"], }, @@ -203,7 +203,7 @@ export const axeRules = [ description: "Ensures all ARIA attributes have valid values", help: "ARIA attributes must conform to valid values", helpUrl: - "https://dequeuniversity.com/rules/axe/4.6/aria-valid-attr-value?application=axeAPI&lang=nl", + "https://dequeuniversity.com/rules/axe/4.6/aria-valid-attr-value?application=axeAPI", tags: ["cat.aria", "wcag2a", "wcag412"], actIds: ["6a7281"], }, @@ -212,7 +212,7 @@ export const axeRules = [ description: "Ensures