day4/switch-locale
day4/switch-locale is a lightweight Laravel package for changing your app’s active locale. It provides simple helpers, middleware, and routing support so users can switch languages and persist their preferred locale across requests and sessions.
Consider it when:
Look elsewhere when:
mcamara/laravel-localization, Nova field-translation packages, or a dedicated TMS.To executives: This is a low-cost, low-risk experiment to make the admin panel usable for non-English teams. It is a single small UI control, not a platform commitment. The real decision is not “adopt this package” but “do we support multilingual operators at all” — and a pilot answers that with minimal spend. Because the package has one maintainer and effectively no adoption, we should plan to own the code: either fork it or replace it with a short in-house implementation. Treat it as a spike with a defined exit, not a standard.
To engineering: Evaluate as source, not as a dependency. Review the Nova version compatibility, confirm it does not conflict with Nova’s built-in per-user locale setting, and decide session-vs-persistent behavior explicitly. Budget a small fork if the upstream goes quiet — the feature is a few files, so the switching cost is hours, not weeks. Gate it behind a config flag so removal is trivial.
Recommendation: Pilot for one team or region, instrument locale-switch usage and related support tickets, and set a 60–90 day review. Standardize only if usage is real and the fork cost stays trivial; otherwise fall back to the platform’s native locale handling.
How can I help you explore Laravel packages today?