F
Filament4mo ago
Esi

filament-fabricator with spatie-laravel-translatable-plugin

Hello, I'm using fabricator as a page builder but when i try to add the content in another language the data is stored with some additional UUIDs which breaks the panel becuase the structure of data is changed. Does anyone faced the same issue?
No description
3 Replies
Lara Zeus
Lara Zeus4mo ago
try the fork: https://github.com/lara-zeus/translatable not sure if al lthe issues has been fixed but its working, we also have a demo with fabricator https://github.com/lara-zeus/translatable-demo
Esi
EsiOP4mo ago
I have tried the demo locally and it has the same issue. When you save the blocks there are added the uuid and the frontend is broken.
{"en": {"8a8367a2-c338-421d-979e-cfc38d4d5c3e": {"data": {"title": "dfghdfgh", "content": "dfghdfghd", "admin_title": "dfghdfgh"}, "type": "text"}, "dacb7877-2c6c-4095-b10c-692a64f5ffc3": {"data": {"file": {"234a4abd-35e2-48d2-9471-add1ea3dcb7e": "01JB1TPVC0BY7DTKEZS6M1C150.png"}}, "type": "image-picker"}}, "es": {"287885d5-4f05-4499-a23d-be263aa42dda": {"data": {"file": {"901d12c5-3b40-437f-922d-bc3480f1ea42": "01JB1TRJN6G6V9N48JQWCV9YR1.png"}}, "type": "image-picker"}, "c42d4a8e-2efb-4733-
b91f-c19d3486ec78": {"data": {"file": {"cf2b094f-5762-4cf0-94ad-7032672edd12": "01JB1TRJN4Q18MP98AX6YY6Y7V.png"}}, "type": "image-picker"}}, "fr": []}
{"en": {"8a8367a2-c338-421d-979e-cfc38d4d5c3e": {"data": {"title": "dfghdfgh", "content": "dfghdfghd", "admin_title": "dfghdfgh"}, "type": "text"}, "dacb7877-2c6c-4095-b10c-692a64f5ffc3": {"data": {"file": {"234a4abd-35e2-48d2-9471-add1ea3dcb7e": "01JB1TPVC0BY7DTKEZS6M1C150.png"}}, "type": "image-picker"}}, "es": {"287885d5-4f05-4499-a23d-be263aa42dda": {"data": {"file": {"901d12c5-3b40-437f-922d-bc3480f1ea42": "01JB1TRJN6G6V9N48JQWCV9YR1.png"}}, "type": "image-picker"}, "c42d4a8e-2efb-4733-
b91f-c19d3486ec78": {"data": {"file": {"cf2b094f-5762-4cf0-94ad-7032672edd12": "01JB1TRJN4Q18MP98AX6YY6Y7V.png"}}, "type": "image-picker"}}, "fr": []}
No description
Lara Zeus
Lara Zeus2mo ago
GitHub
GitHub - lara-zeus/translatable: A Fork of the Filament spatie/lara...
A Fork of the Filament spatie/laravel-translatable Plugin - lara-zeus/translatable
GitHub
GitHub - lara-zeus/translatable-demo
Contribute to lara-zeus/translatable-demo development by creating an account on GitHub.

Did you find this page helpful?