Skip to main content

Search Results for "multi-language"

We found 21 results for "multi-language".

Tutorial Free

Multi-Language Routes and Locales with Auth

Multilanguage projects are quite easy to configure in Laravel, but if you want to have locale as part of URL, like /en/about, then you will have trouble with Auth::routes(), they won't work by default like /en/register. This article will show you what to do.

Tutorial Free

Set Laravel User Locale in Middleware

To set the global Laravel language (locale), you need to use the `app()->setLocale()` method. But the question is: where to put this method if you want to set the locale based on a DB field like `users.language`?

Haven't found what you're looking for?

Our team is here to help. Ask us anything about Laravel development and we'll get back to you with personalized guidance.

Ask for Personal Help

We'll respond within 24 hours

Function available only for premium members.

Be as specific as possible so we can provide the best guidance.

Quick Tip

Auto-Capitalize Translations

In translation files (/lang folder), you can specify variables not only as :variable, but also capitalized as :VARIABLE or :Variable - and then whatever value you pass - will be also capitalized automatically.

Package 3533 stars

mcamara/laravel-localization

Adds the missing localization features to Laravel: language selection in the URL and from headers, translatable routes and many other small features that are commonly needed in multilanguage sites.

Package 2385 stars

spatie/laravel-translatable

This package contains a trait to make Eloquent models translatable. Translations are stored as json. There is no extra table needed to hold them.

Package 1371 stars

Astrotomic/laravel-translatable

If you want to store translations of your models into the database, this package is for you.

Code Example akaunting/akaunting

akaunting/akaunting

Files in the example:

  • resources/lang/lt-LT/currencies.php
  • resources/views/settings/currencies/create.blade.php
  • resources/lang/en-US/currencies.php
Code Example Kovah/LinkAce

Kovah/LinkAce

Files in the example:

  • resources/lang/en_US/stats.php
  • resources/lang/fr_FR/stats.php
  • resources/views/dashboard.blade.php
  • resources/lang/en.json
Package 692 stars

xiCO2k/laravel-vue-i18n

laravel-vue-i18n is a Vue3 plugin that allows to connect your Laravel Framework translation files with Vue. It uses the same logic used on Laravel Localization.

Package 171 stars

translation/laravel

Translation.io client for Laravel 5.5+ to 9.x

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.