Replies: 1 comment
-
I can replicate this as well - did you find any viable solutions? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Spatie: Translatable @ v3.3.x
Filament: Form builder @ v3.3.x
How can we help you?
Using Spatie Translatable with Filament Builder to generate repeatable fields for content on a site.
I am getting the issue, that the last edited langauge is always missing a key (other than the default 0) and also is "converted" to an array instead of an object. See the last entry "fr" which is structured differently.
After editing, it's always the last edited entry that is saved as an array instead of an object. I would convert it via something like
afterStateUpdate()
- but unfortunately, due to Spatie Translate i only get the object inside of the language field. So i can't transform it in a meaningful way.(this has the negative result that Spaties Media element won't show images anymore for the content/lauguage with the missing key. If you aren't using Spatie Media in this, it's mainly a structural issue, over one that shows on the frontend in my experience.)
Did anyone else come across this, and possibly even find any kind of solution?
GeneralContent.php
partial:PageResource.php
partial:Summarized snippet of what's wrong with the object:

Beta Was this translation helpful? Give feedback.
All reactions