Closed rotnicki closed 4 years ago
here are instructions for translation of this report tool:
many thanks in advance!
I think you misunderstood me. In this file it states:
The Wcag2Json project scrapes the HTML translations of WCAG and creates a JSON file for the Report Tool. These are available in different languages already. The Wcag2Json project has instructions explaining how to create JSON versions of other WCAG translations.
But on the page https://github.com/WilcoFiers/wcag2json there are no instructions how to use this tool :(
I need to convert this Polish translation http://fdc.org.pl/wcag2/ into json format. But without those precise instructions how to use the wcag2json tool I am unable to do it.
@rotnicki Hi hope I can help (if you haven't figured it out already):
If I understand the translation script of @WilcoFiers correctly you would have to:
git clone https://github.com/WilcoFiers/wcag2json.git
npm install
wcag2-html
(script does not handle that)npm run scrape <LANGCODE>
There are a few languages present inside translations.json
of which the Polish is one. In your case you should run npm run scrape pl
If you have created your own WCAG 2.1 Polish translations, or another language, similar to the layout / markup of W3C documentation you should be able to add that url to the translations.json
file and run that script for a new WCAG-LANG.json version. -fingers crossed-
OK
Closing, reopen if there are still some issues, will have to make an update to create newer WCAG 2.1 translations...
I would like to create Polish translation. Official Polish translation is available here: http://fdc.org.pl/wcag2/ Currently there is no json version of Polish translation. Following your instructions I went to: https://github.com/WilcoFiers/wcag2json but there are no usage instructions how to use it. How (step by step) did you create json versions of English translation?