Skip to content

Conversation

@Env-Ir0n
Copy link
Member

@Env-Ir0n Env-Ir0n commented Aug 5, 2025

No description provided.

@Env-Ir0n Env-Ir0n marked this pull request as draft August 5, 2025 09:28
This was an automatic fix by copilot, but has been manually reviewed by:
Argo Nickerson
- Fixed test_detect_system_locale failing on macOS-latest Python 3.11
- Replaced @patch.dict decorator with explicit environment variable management
- Ensured LC_ALL/LC_MESSAGES don't interfere with LANG test variable
- Added proper environment cleanup and restoration in test
- Removed unused unittest.mock.patch import
- Fixed code formatting and linting issues

The test was failing because macOS CI sets LC_ALL/LC_MESSAGES which take
precedence over LANG in locale detection. Now explicitly clears all
locale env vars before setting test LANG value.

Resolves: GitHub Actions macOS test failure
All 24 tests now pass with
@Env-Ir0n
Copy link
Member Author

Env-Ir0n commented Aug 5, 2025

Reference for reviewer: Most issues encountered so far have been the result of a faulty workflow run, so many changes to .github/workflows/ci.yml have been proposed to fix bad versioning, imports, etc

@Env-Ir0n Env-Ir0n marked this pull request as ready for review August 6, 2025 00:40
Copilot AI review requested due to automatic review settings August 6, 2025 00:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces the complete implementation of pyLocalEngine, a Python localization framework following the LocalEngine specification. The PR adds a comprehensive localization system with automatic locale detection, dynamic locale switching, and support for multiple file formats (JSON, XML, YAML).

  • Complete LocalEngine implementation with core components (engine, file manager, locale detector, exceptions)
  • Comprehensive test suite with 24 tests covering all functionality
  • Documentation, examples, migration tools, and CI/CD pipeline setup

Reviewed Changes

Copilot reviewed 32 out of 33 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
localengine/ Core implementation package with engine, file manager, locale detector, and exception handling
tests/ Complete test suite with isolated test environments and comprehensive coverage
examples/ Demonstration scripts showing basic usage, advanced features, remote loading, and benchmarking
tools/migrate.py Migration utility supporting i18next, gettext, Django, and React Intl formats
locales/ Example locale files in JSON, XML, and YAML formats for multiple languages
setup.py, pyproject.toml Package configuration with proper dependencies and metadata
ci-test.sh Local CI/CD test script emulating GitHub Actions workflow
.github/workflows/ CI/CD pipeline with multi-platform testing and PyPI publishing
Makefile Development workflow automation with common tasks
README.md, USER.md, DOCS.md Comprehensive documentation covering usage, API reference, and architecture

Env-Ir0n and others added 4 commits August 6, 2025 12:43
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Env-Ir0n Env-Ir0n merged commit 6b4c16f into main Aug 6, 2025
10 checks passed
@Env-Ir0n Env-Ir0n deleted the dev-local branch August 6, 2025 00:48
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.

2 participants