mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-19 19:55:02 +00:00
Merge remote-tracking branch 'origin/master' into oasis
# Conflicts: # .php-cs-fixer.cache # app/Http/helpers.php # app/Services/FileManagerService.php # composer.lock # public/chunks/environment-setup.js # public/chunks/files~chunks/shared/file-browser.js # public/js/main.js # public/mix-manifest.json
This commit is contained in:
@@ -22,10 +22,17 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$get_time_locale = App::getLocale() . '_' . mb_strtoupper(App::getLocale());
|
||||
try {
|
||||
$app_locale = get_setting('language') ?? 'en';
|
||||
} catch (\PDOException $exception) {
|
||||
$app_locale = 'en';
|
||||
}
|
||||
|
||||
// Set locale for application
|
||||
app()->setLocale($app_locale);
|
||||
|
||||
// Set locale for carbon dates
|
||||
setlocale(LC_TIME, $get_time_locale);
|
||||
setlocale(LC_TIME, $app_locale . '_' . mb_strtoupper($app_locale));
|
||||
|
||||
// Get all migrations with all directories
|
||||
$this->loadMigrationsFrom(
|
||||
|
||||
Reference in New Issue
Block a user