Multi-language in Filament consists of a few layers: Laravel translations, Filament core translations, and Resource translations. We collected an example of a fully-translated single Filament Resource, including a language switcher dropdown in the top-right corner.
We use a bezhansalleh/filament-language-switch package to add a language switcher to the top navigation.
All language files are published.
php artisan lang:publishphp artisan vendor:publish --tag=filament-panels-translations
We set available languages in the packages config file. The config file can be published by running the artisan command:
php artisan vendor:publish --tag="filament-language-switch-config"
In the Resource, we...