secretwebmaster / laravel-localization
Easy localization for Laravel (forked for WNCMS fixes)
Installs: 14
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/secretwebmaster/laravel-localization
Requires
- php: ^8.2
- laravel/framework: ^10.0|^11.0|^12.0
Requires (Dev)
- orchestra/testbench: ^8.5|^9.0|^10.0
- phpunit/phpunit: ^10.1|^11.0
Suggests
- ext-intl: *
Conflicts
README
This package is a compatibility replacement for
mcamara/laravel-localization.
Why this exists
mcamara/laravel-localization contains a bug in locale mapping logic
that affects projects using alias locales (e.g. tw → zh_TW).
The upstream package is currently unmaintained.
This package provides a drop-in replacement with a minimal fix, without changing namespaces or public APIs.
What is changed
Only one method is modified:
LaravelLocalization::isHiddenDefault()
The fix ensures locale aliases are converted to full locales before comparison.
Compatibility
- Same namespaces
- Same service provider
- Same facade
- Same config
- No breaking changes
Composer usage
composer require secretwebmaster/laravel-localization