mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-25 10:20:38 +00:00
setup wizard update
This commit is contained in:
@@ -9,20 +9,13 @@ class SeedDefaultLanguageTranslationsAction
|
||||
string $license,
|
||||
string $locale
|
||||
): void {
|
||||
$translations = [
|
||||
'extended' => collect([
|
||||
config('language-translations.extended'),
|
||||
config('language-translations.regular'),
|
||||
config('custom-language-translations'),
|
||||
])->collapse(),
|
||||
'regular' => collect([
|
||||
config('language-translations.regular'),
|
||||
config('custom-language-translations'),
|
||||
])->collapse(),
|
||||
];
|
||||
|
||||
$translations = $translations[strtolower($license)]
|
||||
->map(fn ($value, $key) => [
|
||||
$translations = collect([
|
||||
config('language-translations.extended'),
|
||||
config('language-translations.regular'),
|
||||
config('custom-language-translations'),
|
||||
])
|
||||
->collapse()
|
||||
->map(fn($value, $key) => [
|
||||
'lang' => $locale,
|
||||
'value' => $value,
|
||||
'key' => $key,
|
||||
|
||||
@@ -14,7 +14,7 @@ class SeedDefaultSettingsAction
|
||||
): void {
|
||||
// Set default settings
|
||||
collect(
|
||||
config('content.content.' . strtolower($license))
|
||||
config('content.content')
|
||||
)->each(fn ($content) => Setting::updateOrCreate([
|
||||
'name' => $content['name'],
|
||||
], [
|
||||
|
||||
Reference in New Issue
Block a user