axe-core 4.8.4 → 4.9.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 -3
- package/axe.js +11587 -10370
- package/axe.min.js +2 -2
- package/locales/_template.json +13 -5
- package/locales/da.json +3 -1
- package/locales/de.json +207 -31
- package/locales/el.json +1069 -0
- package/locales/es.json +3 -1
- package/locales/eu.json +3 -1
- package/locales/fr.json +3 -1
- package/locales/he.json +3 -1
- package/locales/it.json +1108 -0
- package/locales/ja.json +3 -1
- package/locales/ko.json +3 -1
- package/locales/no_NB.json +3 -1
- package/locales/pl.json +3 -1
- package/locales/pt_BR.json +3 -1
- package/locales/zh_CN.json +1116 -0
- package/locales/zh_TW.json +1108 -0
- package/package.json +19 -21
- package/sri-history.json +4 -0
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ The [axe-core API](doc/API.md) package consists of:
|
|
|
93
93
|
|
|
94
94
|
## Localization
|
|
95
95
|
|
|
96
|
-
Axe can be built using your local language. To do so, a localization file must be added to the `./locales` directory. This file must
|
|
96
|
+
Axe can be built using your local language. To do so, a localization file must be added to the `./locales` directory. This file must be named in the following manner: `<langcode>.json`. To build axe using this locale, instead of the default, run axe with the `--lang` flag, like so:
|
|
97
97
|
|
|
98
98
|
`grunt build --lang=nl`
|
|
99
99
|
|
|
@@ -101,9 +101,9 @@ or equivalently:
|
|
|
101
101
|
|
|
102
102
|
`npm run build -- --lang=nl`
|
|
103
103
|
|
|
104
|
-
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`.
|
|
104
|
+
This will create a new build for axe, called `axe.<lang>.js` and `axe.<lang>.min.js`. If you want to build all 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`.
|
|
105
105
|
|
|
106
|
-
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](/
|
|
106
|
+
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](/doc/check-message-template.md).
|
|
107
107
|
|
|
108
108
|
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.
|
|
109
109
|
|
|
@@ -149,6 +149,10 @@ Axe-core supports the following locales. Do note that since locales are contribu
|
|
|
149
149
|
- Polish
|
|
150
150
|
- Portuguese (Brazilian)
|
|
151
151
|
- Spanish
|
|
152
|
+
- Greek
|
|
153
|
+
- Italian
|
|
154
|
+
- Simplified Chinese
|
|
155
|
+
- Traditional Chinese
|
|
152
156
|
|
|
153
157
|
## Updates & Security
|
|
154
158
|
|