mirror of
https://github.com/loot/prelude.git
synced 2026-07-27 14:16:48 -07:00
f44dc242d4ac5a1f5fd24aef2dbfaae44f347bb4
Unfortunately anchors are discarded while parsing YAML, so regex is used to pick out the relevant lines.
About
This repository holds the masterlist prelude, a metadata file that is used to supply common metadata to all masterlists.
See CONTRIBUTING.md for information on how to contribute to the prelude.
Synchronising Weblate translations
The translations directory holds files that are read and written by Weblate. There's a script that can be used to regenerate their content from prelude.yaml.
To use the scripts, first install their dependencies in a virtual environment. On Windows, make sure Python 3 is installed, then run:
py -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt
To regenerate the files in the translations directory from prelude.yaml, run:
py scripts/export-translations.py
The script makes assumptions about the formatting and layout of entries in prelude.yaml, so it's worth double-checking its changes.
Languages
Python
100%