for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CodeZero\Localizer\Detectors;
use Illuminate\Support\Facades\App;
class AppDetector implements Detector
{
/**
* Detect the locale.
*
* @return string|array|null
*/
public function detect()
return App::getLocale();
}
* Should the detected locale be validated
* as a supported locale?
* @return bool
public function shouldValidate()
return true;