Skip to content

loot/prelude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a9c8404 · Apr 10, 2025
Jan 13, 2025
Jan 22, 2025
Apr 9, 2025
Sep 25, 2021
Jun 30, 2024
Jul 3, 2024
Aug 15, 2021
Jul 3, 2024
Apr 9, 2025
Jun 30, 2024

Repository files navigation

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 are a couple of scripts that can be used to keep them in sync with 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

It's also possible to overwrite the message text in prelude.yaml using the contents of the translations directory:

py scripts/import-translations.py

The scripts make assumptions about the formatting and layout of entries in prelude.yaml, so it's worth double-checking their changes.