Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentβ€’7mo agoβ€’
3 replies
charlie

Make settings translatable

Hi everyone!

I'm struggling to make my settings translatable.

I currently use:
- Filament v4
- larazeus/spatie-translatable
- rawilk/laravel-settings

I managed to make models attributes translatables, as well as static content. But I have a lot of settings in a Filament Custom page, and I really have no idea how to make these translatable since they're not from a regular model, or in a regular resource...

To be perfectly clear, what I want is to let users translate themselves the dynamic strings in the settings page.
E.g. you have a setting named "Hero title".
How do I let users have multilingual content in it?

Thanks for your help! πŸ™‚
Solution
The Spatie Translatable package handles the logic for setting/getting the translatable values. If that package doesn't work with attributes, you can't use that and need to roll your own solution.

Maybe you can use it's "Context" feature:
https://randallwilk.dev/docs/laravel-settings/v3/basic-usage/contextual-settings
Contextual Settings - laravel-settings
laravel-settings
Contextual Settings - laravel-settings
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel β€’ Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Spatie Settings together with Translatable
FilamentFFilament / β“β”Šhelp
3y ago
adding trait Translatable will make all fields Translatable
FilamentFFilament / β“β”Šhelp
3y ago
Spatie Translatable with spatie laravel settings
FilamentFFilament / β“β”Šhelp
15mo ago
Translatable plugin : make relationship field works
FilamentFFilament / β“β”Šhelp
3y ago