Translatable Builder/Repeater Form Field
Hello, I have been trying to resolve this problem for some time without finding a solution. I am therefore asking to you today to find out if you had more perspective, a better understanding or even a solution for this problem because my research led to nothing...
11 Replies
What I am trying to do:
Translate a builder form field
Code:
My Page model :
My Filament Ressource :
My issue/the error:
I can save a french and english for my builder but after saved, if I switch from french to english I have this error.
It seams to be a known issue but is there a solution ?
Moreover, the saved version of french or english seams to don't be whats expected :
In english the "image" field is a curator relationship, so in french I should only have the curator media ID, as in english, not all his attributes... ^^'
I prefer creating separate page for each language, that way you can have pages for each language with different slug, much simplier
I understand that it could be another solution but I prefer the way I'm trying to do. If there is absolutely no solution I'll try yours, thanks ^^
@Dimitar how do you mange multiple pages? You also have different menu for any language?
Yes different menu
i create pages with my model, with your solution i can't have 2 pages with slug / for the home..
You should be able
I have unique(slug,lang)
Also my routing have {lang} as prefix before each url
My slug field is unique
uhm, i made a test
i've create a page in english (i use the action language switcher)
then a page in italian
i can see the english page if APP_LOCALE=en
and the italian page if APP_LOCALE=it
but i need a way to link the 2+n pages (relation)
for when i swith the langiage from frontend