axe-core 4.4.3 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/axe.d.ts +1 -0
- package/axe.js +8911 -7204
- package/axe.min.js +2 -2
- package/locales/_template.json +1067 -0
- package/locales/fr.json +1 -1
- package/locales/he.json +1015 -0
- package/locales/no_NB.json +797 -0
- package/package.json +57 -59
- package/sri-history.json +4 -0
package/README.md
CHANGED
|
@@ -78,9 +78,9 @@ The [axe-core API](doc/API.md) fully supports the following browsers:
|
|
|
78
78
|
- Google Chrome v42 and above
|
|
79
79
|
- Mozilla Firefox v38 and above
|
|
80
80
|
- Apple Safari v7 and above
|
|
81
|
-
- Internet Explorer v11
|
|
81
|
+
- Internet Explorer v11 (DEPRECATED)
|
|
82
82
|
|
|
83
|
-
Support means that we will fix bugs and attempt to test each browser regularly. Only
|
|
83
|
+
Support means that we will fix bugs and attempt to test each browser regularly. Only Chrome and Firefox are currently tested on every pull request.
|
|
84
84
|
|
|
85
85
|
There is limited support for JSDOM. We will attempt to make all rules compatible with JSDOM but where this is not possible, we recommend turning those rules off. Currently the `color-contrast` rule is known not to work with JSDOM.
|
|
86
86
|
|
|
@@ -103,9 +103,9 @@ or equivalently:
|
|
|
103
103
|
|
|
104
104
|
`npm run build -- --lang=nl`
|
|
105
105
|
|
|
106
|
-
This will create a new build for axe, called `axe.<lang>.js` and `axe.<lang>.min.js`. If you want to build localized versions, simply pass in `--all-lang` instead. If you want to build multiple localized versions (but not all of them), you can pass in a comma-separated list of
|
|
106
|
+
This will create a new build for axe, called `axe.<lang>.js` and `axe.<lang>.min.js`. If you want to build localized versions, simply pass in `--all-lang` instead. If you want to build multiple localized versions (but not all of them), you can pass in a comma-separated list of languages to the `--lang` flag, like `--lang=nl,ja`.
|
|
107
107
|
|
|
108
|
-
To create a new translation for axe, start by running `grunt translate --lang=<langcode>`. This will create a json file fin the `./locales` directory, with the default English text in it for you to translate. We welcome any localization for axe-core. For details on how to contribute, see the Contributing section below. For details on the message syntax, see [Check Message Template](/docs/check-message-template.md).
|
|
108
|
+
To create a new translation for axe, start by running `grunt translate --lang=<langcode>`. This will create a json file fin the `./locales` directory, with the default English text in it for you to translate. Alternatively, you could copy `./locales/_template.json`. We welcome any localization for axe-core. For details on how to contribute, see the Contributing section below. For details on the message syntax, see [Check Message Template](/docs/check-message-template.md).
|
|
109
109
|
|
|
110
110
|
To update existing translation file, re-run `grunt translate --lang=<langcode>`. This will add new messages used in English and remove messages which were not used in English.
|
|
111
111
|
|
|
@@ -127,8 +127,7 @@ axe.configure({
|
|
|
127
127
|
},
|
|
128
128
|
'aria-errormessage': {
|
|
129
129
|
// Note: doT (https://github.com/olado/dot) templates are supported here.
|
|
130
|
-
fail:
|
|
131
|
-
'Der Wert der aria-errormessage ${data.values}` muss eine Technik verwenden, um die Message anzukündigen (z. B., aria-live, aria-describedby, role=alert, etc.).'
|
|
130
|
+
fail: 'Der Wert der aria-errormessage ${data.values}` muss eine Technik verwenden, um die Message anzukündigen (z. B., aria-live, aria-describedby, role=alert, etc.).'
|
|
132
131
|
}
|
|
133
132
|
// ...
|
|
134
133
|
}
|
|
@@ -145,8 +144,10 @@ Axe-core supports the following locales. Do note that since locales are contribu
|
|
|
145
144
|
- Dutch
|
|
146
145
|
- French
|
|
147
146
|
- German
|
|
147
|
+
- Hebrew
|
|
148
148
|
- Japanese
|
|
149
149
|
- Korean
|
|
150
|
+
- Norwegian (Bokmål)
|
|
150
151
|
- Polish
|
|
151
152
|
- Portuguese (Brazilian)
|
|
152
153
|
- Spanish
|