Β© 2026 Hedgehog Software, LLC

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

Spatie translatable

I'm using https://github.com/filamentphp/spatie-laravel-translatable-plugin to translate some fields in my models - is there a suggested way to actually render those on the frontend?

Should this be done by the plugin, or do I just process data before passing to props/just render in React depending on the locale? I see a bunch of different "translatable" plugins mentioned, so I'm not sure if I'm using the "wrong" one? If there's such thing as wrong even πŸ˜„
GitHub
GitHub - filamentphp/spatie-laravel-translatable-plugin: [READ ONLY...
[READ ONLY] Subtree split of the Filament spatie/laravel-translatable Plugin (see filamentphp/filament) - filamentphp/spatie-laravel-translatable-plugin
GitHub - filamentphp/spatie-laravel-translatable-plugin: [READ ONLY...
Solution
as Dennis mentioned the plugin handle the filament part only. the frontend is out of control haha

your best way to create accessors to get the translated attributes depend on your app,
$this-title
$this-title
will return array, so you also can create a method and pass the
$lang
$lang


btw not sure if you're on v4 or v3, since this is for v4
GitHub
GitHub - lara-zeus/spatie-translatable
Contribute to lara-zeus/spatie-translatable development by creating an account on GitHub.
GitHub - lara-zeus/spatie-translatable
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-translatable
FilamentFFilament / β“β”Šhelp
3y ago
Spatie Translatable
FilamentFFilament / β“β”Šhelp
3y ago
Spatie laravel-translatable
FilamentFFilament / β“β”Šhelp
15mo ago
Spatie Translatable Pivot
FilamentFFilament / β“β”Šhelp
2y ago