gettext/languages
Auto-generated language and plural-rule data from CLDR for gettext. Includes a CLI (export-plural-rules) to export rules for selected locales, with options like ASCII-only and deduping, and output formats such as JSON, PHP, Ruby, HTML, and XML.
Architecture fit: The package is a standalone PHP library with no external dependencies, making it highly compatible with Laravel's ecosystem. It can be integrated as a Composer dependency, and its static export capabilities allow pre-generated data to be cached or compiled into the application, avoiding runtime overhead. The dynamic usage model aligns with Laravel's service container approach for clean dependency injection.
Integration feasibility: High feasibility due to native Composer support and minimal dependencies. Export commands can be integrated into build pipelines (e.g., pre-deployment scripts), and PHP output format integrates seamlessly with Laravel's configuration system. The test suite (GitHub Actions) and regular CLDR updates reduce implementation risks.
Technical risk: Moderate due to low adoption (0 dependents), indicating limited real-world validation. However, active maintenance (CLDR 48.1 update in 2.12.2), comprehensive test coverage, and CLDR's authoritative data source mitigate this. Edge cases for rare locales could exist but are unlikely to impact major languages.
Key questions:
How can I help you explore Laravel packages today?