protected function loadLocales()
{
//Set the default locale as the first one.
$locales = Translation::groupBy('locale')->get()->pluck('locale');
if ($locales instanceof Collection) {
$locales = $locales->all();
}
$locales = array_merge([config('app.locale')], $locales);
return array_unique($locales);
}