Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Localization Helpers

Laravel Localization Helpers Laravel Package

potsky/laravel-localization-helpers

A set of Laravel localization helpers for building multilingual apps, with localized routes, language switching, translated URL segments, middleware, and Blade helpers to simplify locale-aware development.

View on GitHub
Deep Wiki
Context7

An artisan command package for easy translation management

Frequently asked questions about Laravel Localization Helpers
What does potsky/laravel-localization-helpers do?
It is a Laravel package that provides Artisan commands for translation management, scanning your application and view files for translation keys and generating or updating lang files. It also bundles localization helpers such as localized routes, language switching, translated URL segments, middleware, and Blade helpers. In practice it is developer tooling for maintaining multilingual Laravel apps, not a runtime dependency.
Is potsky/laravel-localization-helpers compatible with Laravel 8, 9, 10, or 11?
Almost certainly not out of the box. The last release was February 2015, placing it in the Laravel 4.x/5.0 era, well before package auto-discovery in Laravel 5.5 and modern PHP 7.4/8.x type strictness. Treat anything from Laravel 5.5 upward as unverified and run a smoke test on your exact Laravel minor and PHP version before committing.
How do I install potsky/laravel-localization-helpers?
Install it with Composer, ideally as a require-dev dependency pinned to a specific commit, then register the service provider manually in config/app.php since auto-discovery will not apply. Expect to troubleshoot missing classes or signature mismatches on modern Laravel and PHP versions. Verify each command runs against a disposable fixture app before adding it to a real project.
What license does it use, and can I use it in a commercial Laravel app?
The package is GPL-3.0, a strong copyleft license, which is a significant concern for proprietary Laravel products. Vendoring, forking, or distributing it alongside closed-source application code can create legal exposure, and distributing a GPL-derived work triggers source code obligations. Get legal sign-off before adoption, or avoid the issue entirely by reimplementing the idea as an internal Artisan command.
How does it find missing or unused translation keys?
It scans application and view source files for translation keys used in __() calls and @lang directives, then compares them against your lang files to report missing or unused entries. Key extraction from dynamic strings is heuristic, so concatenation and variables inside translation calls commonly cause false positives and missed keys. Because the parser dates from 2015, it also predates modern Blade and PHP syntax, so expect gaps.
Will running the update commands overwrite my existing translations?
That is a real risk. Commands that update lang files can clobber human-curated translations unless their merge semantics are well understood and the files are under version control. Run the commands on a disposable fixture app first and diff the output before letting them touch real translation files.
Is potsky/laravel-localization-helpers still maintained?
No. There have been no releases in roughly a decade and no upstream support, security patches, or compatibility fixes. Any bug you hit becomes your responsibility to fix, and fixes may require a fork. Plan for ownership costs rather than relying on upstream maintenance.
What are good alternatives to potsky/laravel-localization-helpers?
For most teams the best alternative is a small internal Artisan command such as i18n:extract and i18n:diff, built with regex or modern static analysis over app/ and resources/views/, since Laravel's native __() and lang:publish conventions already cover the runtime side. This gives you full control over parser behavior, avoids GPL concerns, and is typically only a few hundred lines of code. You can also evaluate actively maintained community packages, but verify Laravel version support and license before adopting.
Does it support JSON translation files, pluralization, and dynamic translation keys?
There is no evidence it handles modern conventions well. JSON lang files, pluralization rules, and dynamic keys are exactly the cases where a 2015-era parser is weakest, and this behavior is neither documented nor guaranteed. Validate these cases explicitly in a spike if they matter for your application.
Should I use potsky/laravel-localization-helpers in production or only in development?
It is developer tooling, not a runtime dependency, so at most it belongs as a require-dev dependency and in local or CI workflows. Given the GPL-3.0 license, decade-old code, and lack of Laravel 5.5+ support, the safer framing is to treat it as a reference implementation and build your own extract and diff commands. If you adopt it anyway, isolate it behind a single command namespace and wire it into CI as a non-blocking report first.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console