Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Generate translated version of qmk.fm/keyboards page #159

Closed
wants to merge 5 commits into from

Conversation

kbravh
Copy link
Contributor

@kbravh kbravh commented Oct 6, 2022

Description

I've made some changes to allow the auto-generated keyboards page to allow for translations 😄

  • modified the python script generate_keyboard_page.py to work with multiple languages instead of being hardcoded to English.
  • Create an i18n folder inside of _utils directory. Each language needs a folder matching its language code.
  • Update template files to use jinja2 template style, following the pattern used in the original python script.
  • Update template to match qmk.fm/keyboards page currently published, namely adding the commit information and allowing for .hex, .bin, and .uf2 files.
  • Update GitHub workflow to run the python script and build the files before running the Jekyll build.

Thankfully I know Spanish, so I was able to create an es directory and file as an example. I've tested the python script locally and have included the updated en and new es keyboard pages in this PR. I've also tested the GitHub workflow locally using https://github.com/nektos/act.

Please let me know your thoughts! I'm happy to make any changes necessary.

Fixes https://github.com/qmk/qmk.fm/issues/89

@zvecr
Copy link
Member

zvecr commented Oct 6, 2022

While its cool to see the effort put into this, unfortunately the process that publishes binaries no longer runs. The content is rather stale, and because of this, changes like this are unlikely to be accepted. The whole site is planned to be replaced at some point, with a few PoC having been put together. The page itself is due to be removed/replaced by a different process, however its yet to be decided how the whole thing will hang together.

@zvecr zvecr closed this Dec 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate translated versions of qmk.fm/keyboards/
2 participants