feat: Implement i18n, Pre-commit Hooks, and Test Coverage Improvements
Summary
Add internationalization (i18n) support using Babel, enhance CI/CD pipeline, integrate pre-commit hooks for code quality, and improve overall test coverage to make the project production-ready.
Problem to Solve
As a developer, I want automated translation support, code quality checks, and strong test coverage so that the project becomes scalable, maintainable, and reliable.
Intended Users Developers Contributors Project maintainers User Experience Goal
Developers should be able to automatically extract and compile translations, run linting and tests before committing code, and rely on CI pipelines to validate code quality and functionality.
Proposal Add Babel and i18n dependencies in pyproject.toml Configure translation extraction and compilation using pybabel Update .gitlab-ci.yml to include i18n and pre-commit stages Create .pre-commit-config.yaml for linting (ruff), testing (pytest), and translation compilation Add babel.cfg for extraction rules Initialize and compile locales for English and Telugu Add async tests for client.py and batch functions Improve overall test coverage Further Details Enables multi-language support (English & Telugu) Improves automation and developer workflow Ensures better code quality and maintainability Security or Permissions Considerations
No additional permissions required. Uses existing GitLab authentication and project setup.
Documentation Impact Update README with i18n setup instructions Add details for pre-commit hooks and testing process Testing Considerations Validate translation extraction and compilation Run pytest and verify coverage Test async client functions and batch operations Handle edge cases such as missing translations or API failures