-
Notifications
You must be signed in to change notification settings - Fork 94
Translations
Gaël Poupard edited this page Nov 7, 2025
·
6 revisions
a11y.css currently exists in English, French, Chinese, Russian, Portuguese, Arabic, Greek, Spanish, Polish and Dutch: you'll find all those files in the css folder. That being said, translating a11y.css in another language is quite easy to do.
-
Add a translation file in
sass/localesfolder named after your language (e.g._fr.scss); -
Copy
sass/a11y-en.scss, rename ita11y-<your-language>.scssand change the first import statement to@import 'locales/<your-language>';; -
Repeat step 2 with:
-
a11y-<your-language>_error.scss; -
a11y-<your-language>_warning.scss; -
a11y-<your-language>_obsolete.scss;
- Finally run
npm run buildto generate new CSS files.
Your PR diff should:
- add
/sass/locales/_<your-language>.scss; - add 4 SCSS files in
/sass/.
Done!