outl1ne / nova-translatable

A Laravel Nova package that allows you to make any input field translatable.
MIT License
199 stars 56 forks source link

Fix showing translations for languages with no key set #131

Closed nimah79 closed 1 month ago

nimah79 commented 1 month ago

This PR fixes showing translations where there is no key for a lanauge.

For example, currently, if you set locales to fa and en and a translatable field value is {"en": null}, An error will be shown:

foreach() argument must be of type array|object, string given

KasparRosin commented 1 month ago

Merged with #133