spatie translatable on custom page
I have custom page for manage home page content like bellow, i want to make it support multilingual with filament-spatie-translatable without change it into resource, how to do it?
i have add the header action and trait but still doesnt work
Filament
Spatie Translatable by Filament - Filament
Filament support for Spatie's Laravel Translatable package.
9 Replies
I have try this plugin on my resource and it work, but I have issue on my custom page
any error messages?
I think translatable only works with Resources only
in custom pages you can use any translatable field and it will works
No, it show the select for change language but if I change the language the form doesn't changed
I think it so only works in resource, do you have any idea for translation in custom page?
I'll try to look into it later, for now you can use any translatable field like
https://filamentphp.com/plugins/abdulmajeed-jamaan-translatable-tabs
without the local switcher
Okay thank you
I have try that and it works on me, but when I use on repeat it doesn't work on edit, the value on repeater not appear but in database it store correctly, how to resolve it?
After save it store in database with format like

When I refresh the page for edit the content of repeater, the value doesn't appear

I think it's a conflict between the plugin you are using and the spatie translatable plugin
can you try using my fork of the plugin:
https://github.com/lara-zeus/translatable
I would appreciate if you can share some code that I can copy to test