Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Improve locale file checker structure and error handling #632

Open
wants to merge 1 commit into
base: v4.2-dev
Choose a base branch
from

Conversation

ikergcalvino
Copy link

@ikergcalvino ikergcalvino commented Feb 24, 2025

Summary:

This PR refactors the locale file verification script to improve readability, structure, and error handling. It addresses part of the improvements discussed in #627.

Changes introduced:

✅ Extracted functions for better modularity (load_json_file, save_json_file, etc.).
✅ Improved error handling for missing files and JSON decoding issues.
✅ Reorganized print statements for a clearer user experience.
✅ Replaced manual file operations with safer, more structured approaches.

This is a small step towards improving maintainability as discussed in #627. Let me know if there's anything else you'd like me to refine! 🚀

@ikergcalvino ikergcalvino changed the title [Refactor] Improve locale file checker structure and error handling [Refactor] Improve locale file checker structure and error handling (#627) Feb 24, 2025
@ikergcalvino ikergcalvino changed the title [Refactor] Improve locale file checker structure and error handling (#627) [Refactor] Improve locale file checker structure and error handling Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant