Skip to content

Commit

Permalink
changed the 'langue' array in LangueSeeder and the lookup table accor…
Browse files Browse the repository at this point in the history
…dingly in LangueVilleSeeder
  • Loading branch information
loicsantschi01 committed Dec 18, 2023
1 parent f8145cf commit 16b6a55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions backend-laravel/database/seeders/LangueSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ public function run(): void
{
$langues =
[
['name' => 'Français'],
['name' => 'Suisse-Allemand'],
['name' => 'Italien'],
['name' => 'Romanche']
['name' => 'Fr'],
['name' => 'De'],
['name' => 'It'],
['name' => 'Ro']
];

foreach ($langues as $langue)
Expand Down
8 changes: 4 additions & 4 deletions backend-laravel/database/seeders/LangueVilleSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ public function run(): void
{
// mapping of the languages
$languageLookup = [
'fr' => 'Français',
'de' => 'Suisse-Allemand',
'it' => 'Italien',
'ro' => 'Romanche'
'fr' => 'Fr',
'de' => 'De',
'it' => 'It',
'ro' => 'Ro'
];

$json = file_get_contents("database/data/swissdle_data.json");
Expand Down

0 comments on commit 16b6a55

Please sign in to comment.