smallrecords
smallrecords copied to clipboard
Attribute translations
Hello, I added attribute value in Polish language, and everything works but after switching this input to english and saving english value new value and polish value are cleaned.
Same problem here.
On update value, if input is in default language (in this example is PT-PT)
after click update, default language value is stored, but none of other languages is stored
If i fill other languages and click update, without focus on default language
no values are stored, not even in default language
Hope it helps debugging.
I think this might be because the translatable
attribute in \JanVince\SmallRecords\Models\Attribute
model has pivot[value_string]
for the translatable value but the translation plugin doesn't pick that up and save the translated values. Probably because it's a pivot model, but I'm not sure on that.