Weave Code
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

Lang Laravel Package

laravel-lang/lang

Community-maintained Laravel translation files for many locales. Adds localizations for core messages and validation, with easy Composer install and ongoing updates. Part of the Laravel Lang ecosystem; see docs for setup and contribution guidelines.

View on GitHub
Deep Wiki
Context7

laravel-lang/lang provides community-maintained Laravel localization files to help you ship apps with accurate, up-to-date translations across many languages. Install it via Composer and integrate seamlessly with Laravel’s built-in translation system for a consistent multilingual experience.

Ideal for teams that want reliable i18n without maintaining message catalogs manually—just pull updates as the package evolves.

  • Curated translations for Laravel’s core language lines
  • Broad language coverage maintained by the Laravel Lang community
  • Simple Composer installation and upgrades
  • Works with standard Laravel lang/ structure and helpers
  • Clear docs, contribution guidelines, and MIT license
Frequently asked questions about Lang
How do I install laravel-lang/lang for Laravel translations?
Run `composer require laravel-lang/lang` in your project. The package integrates automatically with Laravel’s built-in translation system. No additional configuration is needed for basic usage, though you can publish translations to `resources/lang` if you need custom overrides.
Which Laravel versions does laravel-lang/lang support?
The package is actively maintained and supports the latest Laravel LTS versions (e.g., 10.x, 11.x). Check the [GitHub releases](https://github.com/Laravel-Lang/lang/releases) for version-specific compatibility notes. Always test with your Laravel version before production deployment.
Does this package include translations for Laravel validation messages?
Yes, laravel-lang/lang provides translations for Laravel’s validation rules (e.g., `required`, `email`, `unique`) across all supported languages. This ensures consistent error messages in multilingual apps without manual setup.
Can I use this package with Laravel Jetstream, Breeze, or Fortify?
Absolutely. The package includes translations for Laravel’s official UI packages (Jetstream, Breeze, Fortify) and other core components. Just install it, and the translations will work out of the box with these packages.
How do I handle missing translations or fallback to English?
Laravel’s default fallback mechanism applies here. If a translation is missing, it will fall back to the next locale in your `app/config/app.php` under `fallback_locales`. Set `en` as the last fallback to ensure English is always available.
Will this package slow down my Laravel application?
No, the performance impact is minimal. Translations are cached by Laravel’s view and language service providers. The initial load time for the first request may increase slightly with 126+ locales, but this is mitigated by OPcache and Laravel’s caching layers.
How do I contribute translations to laravel-lang/lang?
Follow the [contribution guidelines](https://laravel-lang.com/contributions.html). Submit pull requests with updated language files or missing translations. The community reviews contributions to maintain consistency and accuracy.
Can I override or extend translations from this package?
Yes, publish the package translations to `resources/lang` using `php artisan vendor:publish --tag=lang`. Then, modify the files in your project directory. Your custom translations will take precedence over the package’s defaults.
Does this package support RTL (right-to-left) languages like Arabic?
Yes, the package includes RTL language support (e.g., Arabic, Hebrew, Persian). Test your app thoroughly with RTL languages, as some UI elements (e.g., directionality, text alignment) may require additional CSS or Blade adjustments.
Are there alternatives to laravel-lang/lang for Laravel translations?
For Laravel-specific translations, this is the most comprehensive community-driven option. Alternatives like `laravel-translation-manager` or manual JSON files exist but lack the breadth, maintenance, and Laravel-native integration of laravel-lang/lang. For non-Laravel projects, consider `gettext` or `i18next`.
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport