dequelabs / axe-core

Accessibility engine for automated Web UI testing
https://www.deque.com/axe/
Mozilla Public License 2.0
5.75k stars 746 forks source link

fix(build): limit locales to valid files when using the --all-lang option #4486

Closed isner closed 3 weeks ago

isner commented 3 weeks ago

This change updates the code path that is invoked when the build is run using the --all-lang option. When assembling the list of locale files from the /locales directory, this change only includes files that satisfy both of the following criteria:

This effectively excludes _template.json and README.md, and may proactively filter out future utility files that do not follow the typical locale-file naming standard.

Closes: #4485