use BookStack\App\Model;
use BookStack\App\Sluggable;
use BookStack\Entities\Tools\SlugGenerator;
+use BookStack\Translation\LocaleDefinition;
use BookStack\Translation\LocaleManager;
use BookStack\Uploads\Image;
use Carbon\Carbon;
}
/**
- * Get the system language for this user.
+ * Get the locale for this user.
*/
- public function getLanguage(): string
+ public function getLocale(): LocaleDefinition
{
- return app()->make(LocaleManager::class)->getForUser($this)->appLocale();
+ return app()->make(LocaleManager::class)->getForUser($this);
}
/**