Laravel

Integrate Laravel
with Localazy within minutes.

Localize your Laravel app easily with Localazy CLI. Upload PHP files with strings from your Laravel app to Localazy and manage your translations easily. Download translated files back.
Start now
Improved plural support
Do not worry about setting plurals correctly. Localazy supports all plural types from the latest version of the CLDR definition file.
Placeholder detection
Translators will not break your project. Localazy prevents errors by highlighting common and custom placeholder formats.
Advanced dev tools
Utilize the powerful CLI tool, variety of CI/CD options, SDKs, libraries, and more for a great developer experience!
Advanced file conversion options
Make localizable file format conversions a part of your automated workflows with Localazy. Convert your files into 25+ other formats.
Platform-agnostic solution
Localazy respects your codebase structure. No changes to your code are needed to utilize Localazy to its full potential.

Integrate
the way you like it

Use Localazy, a software localization suite & translation management system, to take care of your Laravel localization.

Choose from multiple developer-friendly options to start with Localazy. Integrate your Laravel project the way that suits your workflow.

start integrating

The best option for developers that want to make localization an automated part of their workflow.

Upload your texts and existing translations in any format directly to start quickly.

Add source keys via the web interface online and sync them into your project later.

Translate strings directly or upload them into your Localazy project.

Localization tools for all your needs

Get your project translated or reviewed by professional native speakers directly inside the platform.
Read article
Localization team on autopilotNo need to manage an entire localization team
Integrate with your stack50+ integrations and growing
Faster international growthAgile localization platform that puts you in control
Setup & forget solutionEasy CI/CD integration + translation delivery options
Easy to start and usePowerful CLI for devs & intuitive UI for the rest

Localazy integrates with your stack

iOSReactVue.jsAngularJavaScriptJSONFlutterIONICCordovaUnity

Laravel localization

Go to the Localazy signup page and create a free account or log in (if you have already joined our community). Then, name your organization and create a new project.

On the integrations page, select Laravel integration. Copy the piece of code to the clipboard.

In your project root, create a file called localazy.json. This file serves as a config file for Localazy CLI. There are many ways how to adjust the localazy.json file to your needs. Everything is described in detail in our documentation.

For more information, you can also read the article: How to build a multilingual PHP app with Localazy and Laravel

Last updated: 21/03/2023

Here are the basic steps to get started:

  1. Set the Laravel application locale: In Laravel, you can set the application’s locale by modifying the config/app.php file. You’ll need to set the locale value to the language you want to use as the default for your application.
  2. Create translation files: Laravel provides a simple way to manage translation strings by using language files. You can create language files for each language your application supports in the resources/lang directory. The files can be named according to the language code, such as en.php for English or fr.php for French. Or you can use folder structure such as resources/lang/en/welcome.php
  3. Define translation strings: You can define translation strings inside each language file by creating an associative array. For applications with a large number of translatable strings, defining every string with a “short key” can become confusing when referencing the keys in your views, and it is cumbersome to continually invent keys for every translation string supported by your application. For this reason, Laravel also provides support for defining translation strings using the “default” translation of the string as the key.
  4. Use translation strings in views and controllers: In your Laravel views and controllers, you can use the __() function to translate strings. The __() function takes the original string as its argument and returns the translated string based on the current application locale.
  5. Switch locales dynamically: Laravel makes it easy to switch the application locale dynamically. You can use the App::setLocale() method to set the application locale based on user preferences or other factors.

That’s the basic process for localizing a Laravel project. You can use many other advanced features and techniques, but these steps should help you get started.

For more information, visit the official documentation at https://laravel.com/

Last updated: 21/03/2023

Imagine being able to fully automate the localization process using Localazy and GitHub Actions. By “fully,” we mean completely.

Localazy is a localization suite designed specifically for developers that enables you to automate the localization of your Laravel projects. Once set up, you can forget about the hassle of localization forever.

Read the article on our blog and learn how to:

  • Install the Laravel Framework and run your first application
  • Set up your Git repository
  • Prepare your Laravel project for localization
  • Connect it with Localazy and translate it into multiple languages
  • Automate the uploading of strings and downloading of translations with GitHub Actions.

Read the article: Automated Localization of Laravel Projects with Localazy and GitHub Actions

Last updated: 21/03/2023
Integrate Localazy with Laravel.

💨 Make localization a breeze in minutes. ⏰

integrate now

Read more about Laravel

Trusted byLaravel users