42 Commits
Author SHA1 Message Date
Oliver Hamlet ea316265c1 Update Node.js used in CI jobs to 24 2026-04-11 08:55:05 +01:00
Oliver Hamlet 1e64b4d4ef Update GitHub Actions used in CI jobs 2026-04-11 08:54:41 +01:00
Oliver Hamlet 86cac77a28 Update CI jobs to use metadata-validator v0.29.0 2026-04-11 08:51:26 +01:00
Oliver Hamlet 7dfcd37584 Add a reusable GitHub Actions workflow
For the masterlist repositories to use.
2025-10-11 00:22:23 +01:00
Oliver Hamlet f13377b3a1 Run metadata-validator v0.28.2 in CI
Run it alongside the v0.26.1 validator because the two support the same version of the metadata syntax but use different regex engines that support different regex.
2025-10-11 00:21:44 +01:00
Oliver Hamlet ac3a208e7f Update the metadata validator to v0.26.1 2025-05-02 17:17:36 +01:00
Oliver Hamlet 05287edea8 Use the v0.26 masterlists in CI 2025-05-02 17:15:02 +01:00
Oliver Hamlet 4fac47e184 Merge remote-tracking branch 'weblate/v0.21' into v0.21 2025-02-25 23:09:02 +00:00
Oliver Hamlet 18c2e0f2ae Fix missing languages not getting added to the last message 2025-01-22 17:49:52 +00:00
Oliver Hamlet 17145bcebb Remove more duplicate keys from the Chinese translation 2025-01-18 23:25:00 +00:00
Oliver Hamlet c7f69546ec Remove duplicate pluginEnabler key
Not sure how it got there.
2025-01-18 23:19:15 +00:00
Oliver Hamlet 9ac3c54563 Revert back to Python 3.10 2025-01-13 22:36:41 +00:00
Oliver Hamlet 6b5871c0a2 Update software versions used in CI
The ubuntu-20.04 runner is due to be deprecated on 2025-02-01 and unsupported by 2025-04-01.

The previous version of the metadata validator wouldn't run on Ubuntu 24.04 due to a dependency version mismatch, so has been updated.

The actions/checkout and actions/setup-node actions have also been updated to their latest major versions.

The version of Node.js used has been updated to the latest LTS version.

The version of Python used has been updated to the latest minor version.
2025-01-13 22:30:06 +00:00
Oliver Hamlet 14bba59d48 Fix import script 2024-07-28 12:32:16 +01:00
Oliver Hamlet 7c8174ac9a Add support for appending new translations
The import script previously couldn't handle that case and just exited with an error.
2024-07-24 19:55:08 +01:00
Oliver Hamlet 94f88895c3 Import translations from Weblate 2024-07-15 17:21:26 +01:00
Oliver Hamlet eb25761d17 Fix the translations import script
It would duplicate an existing translation instead of inserting a new translation if there were two new translations listed consecutively for an anchor.
2024-07-15 17:21:16 +01:00
Oliver Hamlet b2c572ab1a Revert "Import translations from Weblate"
This reverts commit 556ad04bf6.

The import script mangled the prelude and the following export
caused some data loss in the translation files, so reverting this
to redo it with a fixed script.
2024-07-15 17:16:58 +01:00
Oliver Hamlet 957062e0fb Export pluginEnabler translations 2024-07-14 06:42:21 +01:00
Oliver Hamlet 3954f69b0b Update import translations workflow
Only trigger the workflow if the PR edits the translation YAML files (which should be all PRs from Weblate).
2024-07-07 10:29:10 +01:00
Oliver Hamlet 705b61e0e0 Run push changes workflow after export translations workflow 2024-07-07 10:19:15 +01:00
Oliver Hamlet d4a3e99a71 Add workflow to auto-import Weblate changes
If the Weblate GitHub user opens a PR, this will import the Weblate translations in that PR into the prelude, then export them, then create a diff of the changes that is used to add a commit to the PR's branch containing those changes.

The export is done because Weblate just appends new translations to its YAML files, but they're otherwise sorted alphabetically and the export is a way of doing that.
2024-07-06 10:15:40 +01:00
Oliver Hamlet 0d3d84550f Fix import translations script 2024-07-06 10:15:40 +01:00
Oliver Hamlet f7b81c8dac Only apply patch if it is non-empty 2024-07-06 10:13:26 +01:00
Oliver Hamlet a5162cbdc1 Delete artifact files before commit 2024-07-06 00:52:35 +01:00
Oliver Hamlet 328dafbdbc Add missing checkout step 2024-07-06 00:49:56 +01:00
Oliver Hamlet dd4dfc12e1 Add missing github-token parameter 2024-07-06 00:48:02 +01:00
Oliver Hamlet edf0dde373 Add push changes workflow 2024-07-06 00:37:39 +01:00
Oliver Hamlet 8a63b51c8c Sort Spanish Weblate translations
Done by running the export-translations script. Weblate seems to just append new translation keys to its YAML files.
2024-07-03 20:57:37 +01:00
Oliver Hamlet 9932241a7b Import new Spanish translations from Weblate 2024-07-03 20:57:36 +01:00
Oliver Hamlet 549ff2230c Update exported Ukrainian translation 2024-07-03 20:57:36 +01:00
Oliver Hamlet 6e609d2dd1 Update import script to insert new translations 2024-07-03 20:57:36 +01:00
Oliver Hamlet bb7209672a Update actions/setup-node in CI workflow 2024-07-03 19:54:10 +01:00
Oliver Hamlet 905a030557 Add contributing guidance for the new translations files
If we do adopt this approach, we should probably have a generic "how to use Weblate" guide somewhere (in the loot.github.io repository?).
2024-07-03 19:54:10 +01:00
Oliver Hamlet cf7de41671 Add script to write strings from translations to prelude.yaml 2024-07-03 19:54:10 +01:00
Oliver Hamlet bde8fbbac4 Add YAML translation files for Weblate
They were generated using the export-translations.py script.
2024-06-30 09:37:35 +01:00
Oliver Hamlet f44dc242d4 Add script to generate files in translations folder
Unfortunately anchors are discarded while parsing YAML, so regex is used to pick out the relevant lines.
2024-06-30 09:37:28 +01:00
Oliver Hamlet e18366b4f4 Update masterlist branches used in CI 2023-09-16 09:44:59 +01:00
Oliver Hamlet 96ba221418 Update placeholder syntax 2023-09-16 09:11:45 +01:00
Oliver Hamlet 77d3e39179 Update masterlist validator 2023-09-16 09:11:45 +01:00
Oliver Hamlet b8782944bf Update GitHub actions in CI workflow 2023-09-16 09:11:44 +01:00
Oliver Hamlet 900f123c06 Add Starfield masterlist to CI testing 2023-09-16 08:58:23 +01:00