build.py scriptbuild.py builds all HTML pages only by their front-matterlayout field in the front matter, layouts are written in _layouts folderThe core library serves the core JSON files and takes care of some error handling and merging data togother.
Here is a TODO list:
Here is the main translations file: translations.json.
The list of languages exist in utils.py, it should be moved by devs to build.py. The first language in that list is the primary language.
The build script will copy every language to _data/TWO_LETTER_CODE directory as .yml.
For any file in _data folder in jeykll, you can access it by site.data.FILE_NAME.ANY_FIELD, and this is the way will be used for translations like this:
{{site.data[page.lang].text_name}}
Here is an example:
{% if page.lang != site.data.build.primary_lang %}/{{ page.lang }}/{% endif %}/olympaids/boi/2024
You might check the original TODO list, but it’s up to your laziness if you will do them.