twill icon indicating copy to clipboard operation
twill copied to clipboard

Translated Input fallback is not showing properly

Open thingasd opened this issue 2 years ago • 3 comments

Description

For translatable fields, when current language do not have an input, it should show the fallback locale using translatedInput(). However, when the field once being filled and saved, fallback locale will not work.

Steps to reproduce

https://user-images.githubusercontent.com/29519267/180354327-a0c5d7f6-4e32-4b3d-8393-4eeb1ecb4729.mp4

Versions

Twill version: 2.8.8

thingasd avatar Jul 22 '22 03:07 thingasd

Hi @thingasd did you correctly configure laravel-trnaslatable for the fallback to render?

ifox avatar Jul 22 '22 11:07 ifox

Hi @thingasd did you correctly configure laravel-trnaslatable for the fallback to render?

@ifox I think it is correctly configured. The fallback show properly if the alternate locale never get filled and empty.

thingasd avatar Jul 26 '22 03:07 thingasd

~~When you set 'use_property_fallback' => true, in you translatable.php it should work without changes.~~

Nevermind, not related

haringsrob avatar Aug 16 '22 13:08 haringsrob