Courses

Filament 3 From Scratch: Practical Course

Multi-language: System Texts, Labels, Menus

Summary of this lesson:
- Implementing multi-language support
- Managing translation files
- Translating labels and form fields
- Handling system translations

If you work with multi-language projects in Filament, there's not much you need to learn, as Filament primarily relies on Laravel Localization features. But I will briefly demonstrate to you how it works.


Filament "System" Translations

Filament has many components translated into many languages: buttons, labels, menu items, etc.

So, you can just change the system locale in Laravel, and Filament will automatically apply the new translated texts.

config/app.php

'locale' => 'en',
'locale' => 'lt',

Here's how the Filament dashboard will look now, with some system words translated into my Lithuanian language:

But, of course, the rest is up to you to translate all the things manually.

If you want to edit those system translations, you need to publish them, it's part of the installation process, but you may also do it later.

php artisan vendor:publish --tag=filament-panels-translations

Then you will have a lot of language files in /lang/vendor/filament-panels:

Inside each language, you will see a structure of files. They are pretty self-explanatory in their purpose. Each file is a PHP array:

So you can try to edit any value, and it will be shown on...

The full lesson is only for Premium Members.
Want to access all 24 lessons of this course? (101 min read)

You also get:

  • 69 courses (majority in latest Laravel 11)
  • Premium tutorials
  • Access to repositories
  • Private Discord