statamic / eloquent-driver

Provides support for storing your Statamic data in a database, rather than flat files.
https://statamic.dev/tips/storing-content-in-a-database
MIT License
108 stars 78 forks source link

Fallback to locale or 'en' when site lang is not present #372

Closed ryanmitchell closed 3 weeks ago

ryanmitchell commented 3 weeks ago

This PR ensures an empty site lang is not inserted to the database by falling back to the language in the locale, or en if no locale is present

Closes https://github.com/statamic/eloquent-driver/issues/371