dequelabs / axe-core

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

Files locales #4578

Open douglascugliaridev opened 5 days ago

douglascugliaridev commented 5 days ago

Product

axe-core

Question

What is the use of json languages that are in project locales folder? Captura de Tela 2024-09-13 às 09 25 24

straker commented 2 days ago

Thanks for the question. They are translation files provided by the community and are used to build localized versions of axe-core.

douglascugliaridev commented 2 days ago

Obrigado pela pergunta. Eles são arquivos de tradução fornecidos pela comunidade e são usados ​​para construir versões localizadas do axe-core.

Ok, I would like to know how to generate a report in my language (Português)?

straker commented 2 days ago

To generate a version of axe-core that is translated into Portuguese, you'll need to clone the repository to your computer, then run npm install. Afterwards you can follow the instructions on creating a build of axe-core. We happen to have a Portuguese locale, so you can run the following command:

npm run build -- --lang=pt_BR

That should generate a file called axe.pt_BR.js that you can load in a browser and run axe-core, which will generate translated results.