Commit Graph

17 Commits

Author SHA1 Message Date
Ludy
ff32769d69 Update .github/scripts/sync_translations.py
Co-authored-by: James Brunton <jbrunton96@gmail.com>
2025-10-28 08:12:44 +01:00
Ludy87
427c52e0cc Replace check_language_json.py with sync_translations.py
Removed .github/scripts/check_language_json.py and updated the workflow to use .github/scripts/sync_translations.py for translation checks and syncing. Updated the usage documentation in sync_translations.py. Refactored scripts/counter_translation_v2.py to use sync_translations.py for translation progress calculation, simplifying logic and removing TOML-based ignore handling.
2025-10-27 08:50:51 +01:00
Ludy87
cbf36018c0 Update sync_translations.py 2025-10-27 00:23:05 +01:00
Ludy87
76bac0c256 Update sync_translations.py 2025-10-26 23:09:49 +01:00
Ludy87
927b283b41 Update sync_translations.py 2025-10-26 22:57:10 +01:00
Ludy87
84309c2222 Update sync_translations.py 2025-10-26 22:55:45 +01:00
Ludy87
c8d4a02299 Enhance translation sync and update translation files
Improved the translation sync script to better handle dotted reference keys and type mismatches, ensuring more robust merging and reporting of missing translations. Updated German and English translation files to use flattened keys for certain options, expanded tool descriptions, and added or reorganized many UI strings for new features and improved clarity.
2025-10-26 22:50:59 +01:00
Ludy87
e806844980 Remove report messages for invalid ignore entries
Eliminates the addition of report messages when ignore entries reference missing reference keys, streamlining the reporting output in the translation sync script.
2025-10-26 21:20:22 +01:00
Ludy87
6d0f8c2559 Prune obsolete ignore entries in translations sync
Updated sync_translations.py to detect and optionally remove ignore entries referencing non-existent keys in the reference translation. Cleaned up scripts/ignore_locales.toml by removing many obsolete ignore entries, reducing maintenance overhead and improving accuracy.
2025-10-26 20:32:24 +01:00
Ludy87
1dea9ae7ea Enhance translation sync script with ignore list management
Refactors and extends .github/scripts/sync_translations.py to support reading, updating, and cleaning up ignored translation keys via scripts/ignore_locales.toml. Now, when a previously ignored key is translated, it is automatically removed from the ignore list. Also updates the de-DE translation.json to move the 'mobile' section and adjusts formatting in ignore_locales.toml.
2025-10-26 13:52:12 +01:00
Ludy87
eea3bb2fc3 Update sync_translations.py 2025-10-26 13:26:44 +01:00
Ludy87
61b25ab787 Update sync_translations.py 2025-10-26 13:17:45 +01:00
Ludy87
f072c8d580 Update sync_translations.py 2025-10-26 13:07:17 +01:00
Ludy87
2076859490 Refactor translation sync script and add ignore list
Improves .github/scripts/sync_translations.py with clearer docstrings, better reporting, and more robust handling of missing/extra translation keys. Adds scripts/ignore_locales.toml to specify keys/paths to ignore during locale synchronization checks.
2025-10-26 13:02:04 +01:00
Ludy87
b2fc9b0d81 Update sync_translations.py 2025-10-26 12:42:55 +01:00
Ludy87
2b552521b3 Improve translation sync script path handling
Refactors sync_translations.py to better handle reference and target file path resolution, including fallback logic and improved safety checks. Also adds support for splitting space-separated file lists and auto-discovery of locale files when --files is omitted. Removes unnecessary debug output from check_locales.yml.
2025-10-26 12:00:45 +01:00
Ludy87
4b20ed5a97 Add translation sync script and CI workflow
Introduces a Python script for checking and synchronizing JSON translation files against a reference, ensuring consistency across locales. Adds a GitHub Actions workflow to automatically verify and comment on translation file changes in pull requests.
2025-10-26 11:32:28 +01:00