Spanish language added

This commit is contained in:
Daniel Spiridonoff 2021-03-07 22:28:50 -03:00
parent 16560c8ea4
commit ac219bf80d
4 changed files with 26 additions and 21 deletions

View File

@ -118,7 +118,7 @@ class Install extends Command
$input_admin_url = $this->ask('Please Enter the Admin URL : ');
$this->envUpdate('APP_ADMIN_URL=', $input_admin_url ?: $default_admin_url);
$locale = $this->choice('Please select the default locale or press enter to continue', ['ar', 'en', 'fa', 'nl', 'pt_BR'], 1);
$locale = $this->choice('Please select the default locale or press enter to continue', ['ar', 'en', 'es', 'fa', 'nl', 'pt_BR'], 1);
$this->envUpdate('APP_LOCALE=', $locale);
$TimeZones = timezone_identifiers_list();

View File

@ -11,7 +11,7 @@ class CountryStateTranslationSeeder extends Seeder
public function run()
{
foreach (['ar', 'fa', 'pt_BR'] as $code) {
foreach (['ar', 'es', 'fa', 'pt_BR'] as $code) {
DB::table('country_translations')->where('locale', $code)->delete();
DB::table('country_state_translations')->where('locale', $code)->delete();

View File

@ -30,6 +30,10 @@ class LocalesTableSeeder extends Seeder
'id' => 4,
'code' => 'tr',
'name' => 'Türkçe',
], [
'id' => 5,
'code' => 'es',
'name' => 'Español',
]]);
}
}

View File

@ -54,6 +54,7 @@
<option value="nl">Dutch</option>
<option value="en" selected>English</option>
<option value="fr">French</option>
<option value="es">Español</option>
</select>
</div>