Astrotomic / laravel-translatable

A Laravel package for multilingual models
https://docs.astrotomic.info/laravel-translatable/
MIT License
1.22k stars 153 forks source link

Find non-empty attribute if fallback locale is null #354

Closed uintaam closed 1 year ago

uintaam commented 1 year ago

If a multi-field translation table exists, we should allow falling back to the attribute of another property. This will allow us to get a translation if the particular attribute on the 'Default locale' returned locale is empty.