mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
language translation deletion
This commit is contained in:
@@ -3,7 +3,6 @@ namespace Domain\Homepage\Controllers;
|
||||
|
||||
use DB;
|
||||
use PDOException;
|
||||
use Domain\Pages\Models\Page;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\Contracts\View\Factory;
|
||||
use Illuminate\Contracts\Foundation\Application;
|
||||
|
||||
@@ -9,22 +9,15 @@ 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 = collect([
|
||||
config('language-translations.regular'),
|
||||
config('custom-language-translations'),
|
||||
])->collapse();
|
||||
|
||||
$translations = $translations[strtolower($license)]
|
||||
$translations = $translations
|
||||
->map(fn ($value, $key) => [
|
||||
'lang' => $locale,
|
||||
'value' => $value,
|
||||
'value' => '___',
|
||||
'key' => $key,
|
||||
])->toArray();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user