mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +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:
@@ -34,8 +34,12 @@ class LanguageService
|
||||
];
|
||||
})->toArray();
|
||||
|
||||
DB::table('language_translations')
|
||||
->insert($translations);
|
||||
$chunks = array_chunk($translations, 100);
|
||||
|
||||
foreach ($chunks as $chunk) {
|
||||
DB::table('language_translations')
|
||||
->insert($chunk);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -81,9 +85,13 @@ class LanguageService
|
||||
];
|
||||
})->toArray();
|
||||
|
||||
// Store translations into database
|
||||
DB::table('language_translations')
|
||||
->insert($translations);
|
||||
$chunks = array_chunk($translations, 100);
|
||||
|
||||
foreach ($chunks as $chunk) {
|
||||
// Store translations into database
|
||||
DB::table('language_translations')
|
||||
->insert($chunk);
|
||||
}
|
||||
|
||||
// Flush cache
|
||||
cache()->forget("language-translations-$locale");
|
||||
|
||||
Reference in New Issue
Block a user