Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files locales #4578

Open
douglascugliaridev opened this issue Sep 13, 2024 · 3 comments
Open

Files locales #4578

douglascugliaridev opened this issue Sep 13, 2024 · 3 comments
Labels

Comments

@douglascugliaridev
Copy link

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

@douglascugliaridev douglascugliaridev added question ungroomed Ticket needs a maintainer to prioritize and label labels Sep 13, 2024
@straker
Copy link
Contributor

straker commented Sep 16, 2024

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

@straker straker removed the ungroomed Ticket needs a maintainer to prioritize and label label Sep 16, 2024
@douglascugliaridev
Copy link
Author

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
Copy link
Contributor

straker commented Sep 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants