axe-core 4.8.2-canary.449feed → 4.8.2-canary.4a4e9b4
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 +2 -2
- package/axe.js +534 -537
- package/axe.min.js +2 -2
- package/package.json +9 -11
- package/sri-history.json +3 -3
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,7 +101,7 @@ 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
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](/docs/check-message-template.md).
|
|
107
107
|
|