smallrecords icon indicating copy to clipboard operation
smallrecords copied to clipboard

Attribute translations

Open marcinj1 opened this issue 6 years ago • 2 comments

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.

marcinj1 avatar Feb 19 '19 12:02 marcinj1

Same problem here. On update value, if input is in default language (in this example is PT-PT) screenshot 2019-02-25 at 17 04 42 after click update, default language value is stored, but none of other languages is stored screenshot 2019-02-25 at 17 04 57 If i fill other languages and click update, without focus on default language screenshot 2019-02-25 at 17 05 13 no values are stored, not even in default language screenshot 2019-02-25 at 17 05 31 Hope it helps debugging.

joaocosta-azores avatar Feb 25 '19 18:02 joaocosta-azores

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.

hkan avatar Jul 14 '20 14:07 hkan