<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Language;

class LanguagesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $languages = [
            ['title' => 'English (US)', 'value' => 'en-US'],
            ['title' => 'Afrikaans', 'value' => 'af'],
            ['title' => 'Arabic', 'value' => 'ar'],
            ['title' => 'Azerbaijani', 'value' => 'az'],
            ['title' => 'Bambara', 'value' => 'bm'],
            ['title' => 'Bengali (Bangladesh)', 'value' => 'bn-BD'],
            ['title' => 'Bengali (India)', 'value' => 'bn-IN'],
            ['title' => 'Catalan', 'value' => 'ca'],
            ['title' => 'Czech', 'value' => 'cs'],
            ['title' => 'German', 'value' => 'de'],
            ['title' => 'Ewe', 'value' => 'ee'],
            ['title' => 'Greek', 'value' => 'el'],
            ['title' => 'Spanish', 'value' => 'es'],
            ['title' => 'Persian', 'value' => 'fa'],
            ['title' => 'Fulah', 'value' => 'ff'],
            ['title' => 'Finnish', 'value' => 'fi'],
            ['title' => 'French', 'value' => 'fr'],
            ['title' => 'Frisian', 'value' => 'fy-NL'],
            ['title' => 'Irish', 'value' => 'ga-IE'],
            ['title' => 'Hausa', 'value' => 'ha'],
            ['title' => 'Hebrew', 'value' => 'he'],
            ['title' => 'Hindi (India)', 'value' => 'hi-IN'],
            ['title' => 'Croatian', 'value' => 'hr'],
            ['title' => 'Hungarian', 'value' => 'hu'],
            ['title' => 'Indonesian', 'value' => 'id'],
            ['title' => 'Igbo', 'value' => 'ig'],
            ['title' => 'Italian', 'value' => 'it'],
            ['title' => 'Japanese', 'value' => 'ja'],
            ['title' => 'Georgian', 'value' => 'ka'],
            ['title' => 'Kabyle', 'value' => 'kab'],
            ['title' => 'Korean', 'value' => 'ko'],
            ['title' => 'Lingala', 'value' => 'ln'],
            ['title' => 'Malagasy', 'value' => 'mg'],
            ['title' => 'Malayalam', 'value' => 'ml'],
            ['title' => 'Malay', 'value' => 'ms'],
            ['title' => 'Burmese', 'value' => 'my'],
            ['title' => 'Dutch', 'value' => 'nl'],
            ['title' => 'Polish', 'value' => 'pl'],
            ['title' => 'Portuguese (Brazilian)', 'value' => 'pt-BR'],
            ['title' => 'Portuguese (Portugal)', 'value' => 'pt-PT'],
            ['title' => 'Romanian', 'value' => 'ro'],
            ['title' => 'Russian', 'value' => 'ru'],
            ['title' => 'Songhai', 'value' => 'son'],
            ['title' => 'Albanian', 'value' => 'sq'],
            ['title' => 'Serbian', 'value' => 'sr'],
            ['title' => 'Serbian (Latin)', 'value' => 'sr-Latn'],
            ['title' => 'Swedish', 'value' => 'sv-SE'],
            ['title' => 'Swahili', 'value' => 'sw'],
            ['title' => 'Tamil', 'value' => 'ta'],
            ['title' => 'Thai', 'value' => 'th'],
            ['title' => 'Tagalog', 'value' => 'tl'],
            ['title' => 'Tswana', 'value' => 'tn'],
            ['title' => 'Turkish', 'value' => 'tr'],
            ['title' => 'Ukrainian', 'value' => 'uk'],
            ['title' => 'Vietnamese', 'value' => 'vi'],
            ['title' => 'Wolof', 'value' => 'wo'],
            ['title' => 'Xhosa', 'value' => 'xh'],
            ['title' => 'Yoruba', 'value' => 'yo'],
            ['title' => 'Chinese (Simplified)', 'value' => 'zh-CN'],
            ['title' => 'Chinese (Traditional)', 'value' => 'zh-TW'],
            ['title' => 'Zulu', 'value' => 'zu']
        ];
        
        foreach($languages as $language)
        {
            Language::create($language);   
        }
    }
}
