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

v2.3.0.6 2026-01-24 10:17 UTC

This package is auto-updated.

Last update: 2026-02-24 10:28:03 UTC


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