diff --git a/src/Http/Middleware/Localize.php b/src/Http/Middleware/Localize.php index 132f7c995e..46238bbb3a 100644 --- a/src/Http/Middleware/Localize.php +++ b/src/Http/Middleware/Localize.php @@ -17,9 +17,10 @@ public function handle($request, Closure $next) // installed on your actual server. You can check by running `locale -a`). setlocale(LC_TIME, $site->locale()); - // The short locale is used for your translations. (eg. if you set your site's locale - // to "fr_FR", the translator will look for "fr" files rather than "fr_FR" files.) - app()->setLocale($site->shortLocale()); + // The sites lang is used for your translations. (eg. if you set your site's lang + // to "fr_FR", the translator will look for "fr_FR" files rather than "fr" files + // but if not set the translator will look for "fr" files rather than "fr_FR" files.) + app()->setLocale($site->lang()); Carbon::setToStringFormat(Statamic::dateFormat());