Config: Add default Hugo and Languages config#7
Conversation
- Add default Hugo config - Add default Languages config
|
Is the long-term plan to manage the included languages manually, as shown here? FreeCAD itself, and the current FreeCAD website, are translated on CrowdIn, and a small script downloads and applies those translations automatically when the translation percentage exceeds 50% (see https://github.com/FreeCAD/FreeCAD-Homepage/blob/main/updatefromcrowdin.py). |
|
Hi @chennes thanks for asking. The new website is designed to not use any external service such as CrowdIn, but rely instead on the build-in languages and translations support of the Static Site Generator and Content Management System. There are several reasons for that I previously explained in a few places (I can provide them again if wanted). So yes, currently for this migration phase, the included languages are managed manually, as it still is a testing bed. Then when we advertise this project more broadly and request for translation contributions from the community, I plan to include a small CI script based on a few simple rules also present in the contribution guidelines (i.e. top-level sections/collections content fully translated, theme i18n, proof-reader designated, etc). I still need to upload translation templates though. |
Description
If wanting to review or just curious, I suggest to have a look at these two:
hugo.yaml#menus: the name chosen (e.g.features,download,news, etc) can be still changed, but better now than later. The collection labels displayed on the website can be different and translated (Titlefield), but sticking to an agreed path scheme is easier moving forward. For example, we could haveaboutinstead offeaturesorresourcesinstead ofdocs.Issues
Part of Website migration
PR Checklist