diff --git a/lang/en/countries.php b/lang/en/countries.php new file mode 100644 index 00000000..9cdffc73 --- /dev/null +++ b/lang/en/countries.php @@ -0,0 +1,253 @@ + 'Andorra', + 'AE' => 'United Arab Emirates', + 'AF' => 'Afghanistan', + 'AG' => 'Antigua and Barbuda', + 'AI' => 'Anguilla', + 'AL' => 'Albania', + 'AM' => 'Armenia', + 'AO' => 'Angola', + 'AQ' => 'Antarctica', + 'AR' => 'Argentina', + 'AS' => 'American Samoa', + 'AT' => 'Austria', + 'AU' => 'Australia', + 'AW' => 'Aruba', + 'AX' => 'Åland Islands', + 'AZ' => 'Azerbaijan', + 'BA' => 'Bosnia and Herzegovina', + 'BB' => 'Barbados', + 'BD' => 'Bangladesh', + 'BE' => 'Belgium', + 'BF' => 'Burkina Faso', + 'BG' => 'Bulgaria', + 'BH' => 'Bahrain', + 'BI' => 'Burundi', + 'BJ' => 'Benin', + 'BL' => 'St. Barthélemy', + 'BM' => 'Bermuda', + 'BN' => 'Brunei', + 'BO' => 'Bolivia', + 'BQ' => 'Caribbean Netherlands', + 'BR' => 'Brazil', + 'BS' => 'Bahamas', + 'BT' => 'Bhutan', + 'BV' => 'Bouvet Island', + 'BW' => 'Botswana', + 'BY' => 'Belarus', + 'BZ' => 'Belize', + 'CA' => 'Canada', + 'CC' => 'Cocos (Keeling) Islands', + 'CD' => 'Congo - Kinshasa', + 'CF' => 'Central African Republic', + 'CG' => 'Congo - Brazzaville', + 'CH' => 'Switzerland', + 'CI' => 'Côte d\'Ivoire', + 'CK' => 'Cook Islands', + 'CL' => 'Chile', + 'CM' => 'Cameroon', + 'CN' => 'China', + 'CO' => 'Colombia', + 'CR' => 'Costa Rica', + 'CU' => 'Cuba', + 'CV' => 'Cape Verde', + 'CW' => 'Curaçao', + 'CX' => 'Christmas Island', + 'CY' => 'Cyprus', + 'CZ' => 'Czechia', + 'DE' => 'Germany', + 'DJ' => 'Djibouti', + 'DK' => 'Denmark', + 'DM' => 'Dominica', + 'DO' => 'Dominican Republic', + 'DZ' => 'Algeria', + 'EC' => 'Ecuador', + 'EE' => 'Estonia', + 'EG' => 'Egypt', + 'EH' => 'Western Sahara', + 'ER' => 'Eritrea', + 'ES' => 'Spain', + 'ET' => 'Ethiopia', + 'FI' => 'Finland', + 'FJ' => 'Fiji', + 'FK' => 'Falkland Islands', + 'FM' => 'Micronesia', + 'FO' => 'Faroe Islands', + 'FR' => 'France', + 'GA' => 'Gabon', + 'GB' => 'United Kingdom', + 'GD' => 'Grenada', + 'GE' => 'Georgia', + 'GF' => 'French Guiana', + 'GG' => 'Guernsey', + 'GH' => 'Ghana', + 'GI' => 'Gibraltar', + 'GL' => 'Greenland', + 'GM' => 'Gambia', + 'GN' => 'Guinea', + 'GP' => 'Guadeloupe', + 'GQ' => 'Equatorial Guinea', + 'GR' => 'Greece', + 'GS' => 'South Georgia and South Sandwich Islands', + 'GT' => 'Guatemala', + 'GU' => 'Guam', + 'GW' => 'Guinea-Bissau', + 'GY' => 'Guyana', + 'HK' => 'Hong Kong SAR China', + 'HM' => 'Heard and McDonald Islands', + 'HN' => 'Honduras', + 'HR' => 'Croatia', + 'HT' => 'Haiti', + 'HU' => 'Hungary', + 'ID' => 'Indonesia', + 'IE' => 'Ireland', + 'IL' => 'Israel', + 'IM' => 'Isle of Man', + 'IN' => 'India', + 'IO' => 'British Indian Ocean Territory', + 'IQ' => 'Iraq', + 'IR' => 'Iran', + 'IS' => 'Iceland', + 'IT' => 'Italy', + 'JE' => 'Jersey', + 'JM' => 'Jamaica', + 'JO' => 'Jordan', + 'JP' => 'Japan', + 'KE' => 'Kenya', + 'KG' => 'Kyrgyzstan', + 'KH' => 'Cambodia', + 'KI' => 'Kiribati', + 'KM' => 'Comoros', + 'KN' => 'St. Kitts and Nevis', + 'KP' => 'North Korea', + 'KR' => 'South Korea', + 'KW' => 'Kuwait', + 'KY' => 'Cayman Islands', + 'KZ' => 'Kazakhstan', + 'LA' => 'Laos', + 'LB' => 'Lebanon', + 'LC' => 'St. Lucia', + 'LI' => 'Liechtenstein', + 'LK' => 'Sri Lanka', + 'LR' => 'Liberia', + 'LS' => 'Lesotho', + 'LT' => 'Lithuania', + 'LU' => 'Luxembourg', + 'LV' => 'Latvia', + 'LY' => 'Libya', + 'MA' => 'Morocco', + 'MC' => 'Monaco', + 'MD' => 'Moldova', + 'ME' => 'Montenegro', + 'MF' => 'St. Martin', + 'MG' => 'Madagascar', + 'MH' => 'Marshall Islands', + 'MK' => 'North Macedonia', + 'ML' => 'Mali', + 'MM' => 'Myanmar (Burma)', + 'MN' => 'Mongolia', + 'MO' => 'Macao SAR China', + 'MP' => 'Northern Mariana Islands', + 'MQ' => 'Martinique', + 'MR' => 'Mauritania', + 'MS' => 'Montserrat', + 'MT' => 'Malta', + 'MU' => 'Mauritius', + 'MV' => 'Maldives', + 'MW' => 'Malawi', + 'MX' => 'Mexico', + 'MY' => 'Malaysia', + 'MZ' => 'Mozambique', + 'NA' => 'Namibia', + 'NC' => 'New Caledonia', + 'NE' => 'Niger', + 'NF' => 'Norfolk Island', + 'NG' => 'Nigeria', + 'NI' => 'Nicaragua', + 'NL' => 'Netherlands', + 'NO' => 'Norway', + 'NP' => 'Nepal', + 'NR' => 'Nauru', + 'NU' => 'Niue', + 'NZ' => 'New Zealand', + 'OM' => 'Oman', + 'PA' => 'Panama', + 'PE' => 'Peru', + 'PF' => 'French Polynesia', + 'PG' => 'Papua New Guinea', + 'PH' => 'Philippines', + 'PK' => 'Pakistan', + 'PL' => 'Poland', + 'PM' => 'St. Pierre and Miquelon', + 'PN' => 'Pitcairn Islands', + 'PR' => 'Puerto Rico', + 'PS' => 'Palestinian Territories', + 'PT' => 'Portugal', + 'PW' => 'Palau', + 'PY' => 'Paraguay', + 'QA' => 'Qatar', + 'RE' => 'Réunion', + 'RO' => 'Romania', + 'RS' => 'Serbia', + 'RU' => 'Russia', + 'RW' => 'Rwanda', + 'SA' => 'Saudi Arabia', + 'SB' => 'Solomon Islands', + 'SC' => 'Seychelles', + 'SD' => 'Sudan', + 'SE' => 'Sweden', + 'SG' => 'Singapore', + 'SH' => 'St. Helena', + 'SI' => 'Slovenia', + 'SJ' => 'Svalbard and Jan Mayen', + 'SK' => 'Slovakia', + 'SL' => 'Sierra Leone', + 'SM' => 'San Marino', + 'SN' => 'Senegal', + 'SO' => 'Somalia', + 'SR' => 'Suriname', + 'SS' => 'South Sudan', + 'ST' => 'São Tomé and Príncipe', + 'SV' => 'El Salvador', + 'SX' => 'Sint Maarten', + 'SY' => 'Syria', + 'SZ' => 'Eswatini', + 'TC' => 'Turks and Caicos Islands', + 'TD' => 'Chad', + 'TF' => 'French Southern Territories', + 'TG' => 'Togo', + 'TH' => 'Thailand', + 'TJ' => 'Tajikistan', + 'TK' => 'Tokelau', + 'TL' => 'Timor-Leste', + 'TM' => 'Turkmenistan', + 'TN' => 'Tunisia', + 'TO' => 'Tonga', + 'TR' => 'Turkey', + 'TT' => 'Trinidad and Tobago', + 'TV' => 'Tuvalu', + 'TW' => 'Taiwan', + 'TZ' => 'Tanzania', + 'UA' => 'Ukraine', + 'UG' => 'Uganda', + 'UM' => 'U.S. Outlying Islands', + 'US' => 'United States', + 'UY' => 'Uruguay', + 'UZ' => 'Uzbekistan', + 'VA' => 'Vatican City', + 'VC' => 'St. Vincent and Grenadines', + 'VE' => 'Venezuela', + 'VG' => 'British Virgin Islands', + 'VI' => 'U.S. Virgin Islands', + 'VN' => 'Vietnam', + 'VU' => 'Vanuatu', + 'WF' => 'Wallis and Futuna', + 'WS' => 'Samoa', + 'YE' => 'Yemen', + 'YT' => 'Mayotte', + 'ZA' => 'South Africa', + 'ZM' => 'Zambia', + 'ZW' => 'Zimbabwe', +]; diff --git a/src/BazarServiceProvider.php b/src/BazarServiceProvider.php index af9b892d..7b2c013a 100644 --- a/src/BazarServiceProvider.php +++ b/src/BazarServiceProvider.php @@ -66,8 +66,10 @@ public function boot(): void $this->registerRoutes(); } + $this->loadTranslationsFrom(__DIR__.'/../lang', 'bazar'); + $this->loadViewsFrom(__DIR__.'/../resources/views', 'bazar'); + $this->registerEvents(); - $this->registerViews(); $this->registerResources(); } @@ -84,14 +86,6 @@ protected function registerRoutes(): void }); } - /** - * Register views. - */ - protected function registerViews(): void - { - $this->loadViewsFrom(__DIR__.'/../resources/views', 'bazar'); - } - /** * Register publishes. */ diff --git a/src/Support/Countries.php b/src/Support/Countries.php index 563047d6..6ca19757 100644 --- a/src/Support/Countries.php +++ b/src/Support/Countries.php @@ -2,6 +2,8 @@ namespace Cone\Bazar\Support; +use Illuminate\Support\Facades\Lang; + abstract class Countries { /** @@ -10,64 +12,64 @@ abstract class Countries public static function africa(): array { return [ - 'DZ' => __('Algeria'), - 'AO' => __('Angola'), - 'BW' => __('Botswana'), - 'BI' => __('Burundi'), - 'CM' => __('Cameroon'), - 'CV' => __('Cape Verde'), - 'CF' => __('Central African Republic'), - 'TD' => __('Chad'), - 'KM' => __('Comoros'), - 'YT' => __('Mayotte'), - 'CG' => __('Congo - Brazzaville'), - 'CD' => __('Congo - Kinshasa'), - 'BJ' => __('Benin'), - 'GQ' => __('Equatorial Guinea'), - 'ET' => __('Ethiopia'), - 'ER' => __('Eritrea'), - 'DJ' => __('Djibouti'), - 'GA' => __('Gabon'), - 'GM' => __('Gambia'), - 'GH' => __('Ghana'), - 'GN' => __('Guinea'), - 'CI' => __('Côte d\'Ivoire'), - 'KE' => __('Kenya'), - 'LS' => __('Lesotho'), - 'LR' => __('Liberia'), - 'LY' => __('Libya'), - 'MG' => __('Madagascar'), - 'MW' => __('Malawi'), - 'ML' => __('Mali'), - 'MR' => __('Mauritania'), - 'MU' => __('Mauritius'), - 'MA' => __('Morocco'), - 'MZ' => __('Mozambique'), - 'NA' => __('Namibia'), - 'NE' => __('Niger'), - 'NG' => __('Nigeria'), - 'GW' => __('Guinea-Bissau'), - 'RE' => __('Réunion'), - 'RW' => __('Rwanda'), - 'SH' => __('St. Helena'), - 'ST' => __('São Tomé and Príncipe'), - 'SN' => __('Senegal'), - 'SC' => __('Seychelles'), - 'SL' => __('Sierra Leone'), - 'SO' => __('Somalia'), - 'ZA' => __('South Africa'), - 'ZW' => __('Zimbabwe'), - 'SS' => __('South Sudan'), - 'EH' => __('Western Sahara'), - 'SD' => __('Sudan'), - 'SZ' => __('Eswatini'), - 'TG' => __('Togo'), - 'TN' => __('Tunisia'), - 'UG' => __('Uganda'), - 'EG' => __('Egypt'), - 'TZ' => __('Tanzania'), - 'BF' => __('Burkina Faso'), - 'ZM' => __('Zambia'), + 'DZ' => Lang::get('bazar::countries.DZ'), + 'AO' => Lang::get('bazar::countries.AO'), + 'BW' => Lang::get('bazar::countries.BW'), + 'BI' => Lang::get('bazar::countries.BI'), + 'CM' => Lang::get('bazar::countries.CM'), + 'CV' => Lang::get('bazar::countries.CV'), + 'CF' => Lang::get('bazar::countries.CF'), + 'TD' => Lang::get('bazar::countries.TD'), + 'KM' => Lang::get('bazar::countries.KM'), + 'YT' => Lang::get('bazar::countries.YT'), + 'CG' => Lang::get('bazar::countries.CG'), + 'CD' => Lang::get('bazar::countries.CD'), + 'BJ' => Lang::get('bazar::countries.BJ'), + 'GQ' => Lang::get('bazar::countries.GQ'), + 'ET' => Lang::get('bazar::countries.ET'), + 'ER' => Lang::get('bazar::countries.ER'), + 'DJ' => Lang::get('bazar::countries.DJ'), + 'GA' => Lang::get('bazar::countries.GA'), + 'GM' => Lang::get('bazar::countries.GM'), + 'GH' => Lang::get('bazar::countries.GH'), + 'GN' => Lang::get('bazar::countries.GN'), + 'CI' => Lang::get('bazar::countries.CI'), + 'KE' => Lang::get('bazar::countries.KE'), + 'LS' => Lang::get('bazar::countries.LS'), + 'LR' => Lang::get('bazar::countries.LR'), + 'LY' => Lang::get('bazar::countries.LY'), + 'MG' => Lang::get('bazar::countries.MG'), + 'MW' => Lang::get('bazar::countries.MW'), + 'ML' => Lang::get('bazar::countries.ML'), + 'MR' => Lang::get('bazar::countries.MR'), + 'MU' => Lang::get('bazar::countries.MU'), + 'MA' => Lang::get('bazar::countries.MA'), + 'MZ' => Lang::get('bazar::countries.MZ'), + 'NA' => Lang::get('bazar::countries.NA'), + 'NE' => Lang::get('bazar::countries.NE'), + 'NG' => Lang::get('bazar::countries.NG'), + 'GW' => Lang::get('bazar::countries.GW'), + 'RE' => Lang::get('bazar::countries.RE'), + 'RW' => Lang::get('bazar::countries.RW'), + 'SH' => Lang::get('bazar::countries.SH'), + 'ST' => Lang::get('bazar::countries.ST'), + 'SN' => Lang::get('bazar::countries.SN'), + 'SC' => Lang::get('bazar::countries.SC'), + 'SL' => Lang::get('bazar::countries.SL'), + 'SO' => Lang::get('bazar::countries.SO'), + 'ZA' => Lang::get('bazar::countries.ZA'), + 'ZW' => Lang::get('bazar::countries.ZW'), + 'SS' => Lang::get('bazar::countries.SS'), + 'EH' => Lang::get('bazar::countries.EH'), + 'SD' => Lang::get('bazar::countries.SD'), + 'SZ' => Lang::get('bazar::countries.SZ'), + 'TG' => Lang::get('bazar::countries.TG'), + 'TN' => Lang::get('bazar::countries.TN'), + 'UG' => Lang::get('bazar::countries.UG'), + 'EG' => Lang::get('bazar::countries.EG'), + 'TZ' => Lang::get('bazar::countries.TZ'), + 'BF' => Lang::get('bazar::countries.BF'), + 'ZM' => Lang::get('bazar::countries.ZM'), ]; } @@ -77,11 +79,11 @@ public static function africa(): array public static function antarctica(): array { return [ - 'AQ' => __('Antarctica'), - 'BV' => __('Bouvet Island'), - 'GS' => __('South Georgia and South Sandwich Islands'), - 'TF' => __('French Southern Territories'), - 'HM' => __('Heard and McDonald Islands'), + 'AQ' => Lang::get('bazar::countries.AQ'), + 'BV' => Lang::get('bazar::countries.BV'), + 'GS' => Lang::get('bazar::countries.GS'), + 'TF' => Lang::get('bazar::countries.TF'), + 'HM' => Lang::get('bazar::countries.HM'), ]; } @@ -91,60 +93,60 @@ public static function antarctica(): array public static function asia(): array { return [ - 'AF' => __('Afghanistan'), - 'AZ' => __('Azerbaijan'), - 'BH' => __('Bahrain'), - 'BD' => __('Bangladesh'), - 'AM' => __('Armenia'), - 'BT' => __('Bhutan'), - 'IO' => __('British Indian Ocean Territory'), - 'BN' => __('Brunei'), - 'MM' => __('Myanmar (Burma)'), - 'KH' => __('Cambodia'), - 'LK' => __('Sri Lanka'), - 'CN' => __('China'), - 'TW' => __('Taiwan'), - 'CX' => __('Christmas Island'), - 'CC' => __('Cocos (Keeling) Islands'), - 'GE' => __('Georgia'), - 'PS' => __('Palestinian Territories'), - 'HK' => __('Hong Kong SAR China'), - 'IN' => __('India'), - 'ID' => __('Indonesia'), - 'IR' => __('Iran'), - 'IQ' => __('Iraq'), - 'IL' => __('Israel'), - 'JP' => __('Japan'), - 'KZ' => __('Kazakhstan'), - 'JO' => __('Jordan'), - 'KP' => __('North Korea'), - 'KR' => __('South Korea'), - 'KW' => __('Kuwait'), - 'KG' => __('Kyrgyzstan'), - 'LA' => __('Laos'), - 'LB' => __('Lebanon'), - 'MO' => __('Macao SAR China'), - 'MY' => __('Malaysia'), - 'MV' => __('Maldives'), - 'MN' => __('Mongolia'), - 'OM' => __('Oman'), - 'NP' => __('Nepal'), - 'PK' => __('Pakistan'), - 'PH' => __('Philippines'), - 'TL' => __('Timor-Leste'), - 'QA' => __('Qatar'), - 'RU' => __('Russia'), - 'SA' => __('Saudi Arabia'), - 'SG' => __('Singapore'), - 'VN' => __('Vietnam'), - 'SY' => __('Syria'), - 'TJ' => __('Tajikistan'), - 'TH' => __('Thailand'), - 'AE' => __('United Arab Emirates'), - 'TR' => __('Turkey'), - 'TM' => __('Turkmenistan'), - 'UZ' => __('Uzbekistan'), - 'YE' => __('Yemen'), + 'AF' => Lang::get('bazar::countries.AF'), + 'AZ' => Lang::get('bazar::countries.AZ'), + 'BH' => Lang::get('bazar::countries.BH'), + 'BD' => Lang::get('bazar::countries.BD'), + 'AM' => Lang::get('bazar::countries.AM'), + 'BT' => Lang::get('bazar::countries.BT'), + 'IO' => Lang::get('bazar::countries.IO'), + 'BN' => Lang::get('bazar::countries.BN'), + 'MM' => Lang::get('bazar::countries.MM'), + 'KH' => Lang::get('bazar::countries.KH'), + 'LK' => Lang::get('bazar::countries.LK'), + 'CN' => Lang::get('bazar::countries.CN'), + 'TW' => Lang::get('bazar::countries.TW'), + 'CX' => Lang::get('bazar::countries.CX'), + 'CC' => Lang::get('bazar::countries.CC'), + 'GE' => Lang::get('bazar::countries.GE'), + 'PS' => Lang::get('bazar::countries.PS'), + 'HK' => Lang::get('bazar::countries.HK'), + 'IN' => Lang::get('bazar::countries.IN'), + 'ID' => Lang::get('bazar::countries.ID'), + 'IR' => Lang::get('bazar::countries.IR'), + 'IQ' => Lang::get('bazar::countries.IQ'), + 'IL' => Lang::get('bazar::countries.IL'), + 'JP' => Lang::get('bazar::countries.JP'), + 'KZ' => Lang::get('bazar::countries.KZ'), + 'JO' => Lang::get('bazar::countries.JO'), + 'KP' => Lang::get('bazar::countries.KP'), + 'KR' => Lang::get('bazar::countries.KR'), + 'KW' => Lang::get('bazar::countries.KW'), + 'KG' => Lang::get('bazar::countries.KG'), + 'LA' => Lang::get('bazar::countries.LA'), + 'LB' => Lang::get('bazar::countries.LB'), + 'MO' => Lang::get('bazar::countries.MO'), + 'MY' => Lang::get('bazar::countries.MY'), + 'MV' => Lang::get('bazar::countries.MV'), + 'MN' => Lang::get('bazar::countries.MN'), + 'OM' => Lang::get('bazar::countries.OM'), + 'NP' => Lang::get('bazar::countries.NP'), + 'PK' => Lang::get('bazar::countries.PK'), + 'PH' => Lang::get('bazar::countries.PH'), + 'TL' => Lang::get('bazar::countries.TL'), + 'QA' => Lang::get('bazar::countries.QA'), + 'RU' => Lang::get('bazar::countries.RU'), + 'SA' => Lang::get('bazar::countries.SA'), + 'SG' => Lang::get('bazar::countries.SG'), + 'VN' => Lang::get('bazar::countries.VN'), + 'SY' => Lang::get('bazar::countries.SY'), + 'TJ' => Lang::get('bazar::countries.TJ'), + 'TH' => Lang::get('bazar::countries.TH'), + 'AE' => Lang::get('bazar::countries.AE'), + 'TR' => Lang::get('bazar::countries.TR'), + 'TM' => Lang::get('bazar::countries.TM'), + 'UZ' => Lang::get('bazar::countries.UZ'), + 'YE' => Lang::get('bazar::countries.YE'), ]; } @@ -154,57 +156,57 @@ public static function asia(): array public static function europe(): array { return [ - 'AL' => __('Albania'), - 'AD' => __('Andorra'), - 'AT' => __('Austria'), - 'BE' => __('Belgium'), - 'BA' => __('Bosnia and Herzegovina'), - 'BG' => __('Bulgaria'), - 'BY' => __('Belarus'), - 'HR' => __('Croatia'), - 'CY' => __('Cyprus'), - 'CZ' => __('Czechia'), - 'DK' => __('Denmark'), - 'EE' => __('Estonia'), - 'FO' => __('Faroe Islands'), - 'FI' => __('Finland'), - 'AX' => __('Åland Islands'), - 'FR' => __('France'), - 'DE' => __('Germany'), - 'GI' => __('Gibraltar'), - 'GR' => __('Greece'), - 'VA' => __('Vatican City'), - 'HU' => __('Hungary'), - 'IS' => __('Iceland'), - 'IE' => __('Ireland'), - 'IT' => __('Italy'), - 'LV' => __('Latvia'), - 'LI' => __('Liechtenstein'), - 'LT' => __('Lithuania'), - 'LU' => __('Luxembourg'), - 'MT' => __('Malta'), - 'MC' => __('Monaco'), - 'MD' => __('Moldova'), - 'ME' => __('Montenegro'), - 'NL' => __('Netherlands'), - 'NO' => __('Norway'), - 'PL' => __('Poland'), - 'PT' => __('Portugal'), - 'RO' => __('Romania'), - 'SM' => __('San Marino'), - 'RS' => __('Serbia'), - 'SK' => __('Slovakia'), - 'SI' => __('Slovenia'), - 'ES' => __('Spain'), - 'SJ' => __('Svalbard and Jan Mayen'), - 'SE' => __('Sweden'), - 'CH' => __('Switzerland'), - 'UA' => __('Ukraine'), - 'MK' => __('North Macedonia'), - 'GB' => __('United Kingdom'), - 'GG' => __('Guernsey'), - 'JE' => __('Jersey'), - 'IM' => __('Isle of Man'), + 'AL' => Lang::get('bazar::countries.AL'), + 'AD' => Lang::get('bazar::countries.AD'), + 'AT' => Lang::get('bazar::countries.AT'), + 'BE' => Lang::get('bazar::countries.BE'), + 'BA' => Lang::get('bazar::countries.BA'), + 'BG' => Lang::get('bazar::countries.BG'), + 'BY' => Lang::get('bazar::countries.BY'), + 'HR' => Lang::get('bazar::countries.HR'), + 'CY' => Lang::get('bazar::countries.CY'), + 'CZ' => Lang::get('bazar::countries.CZ'), + 'DK' => Lang::get('bazar::countries.DK'), + 'EE' => Lang::get('bazar::countries.EE'), + 'FO' => Lang::get('bazar::countries.FO'), + 'FI' => Lang::get('bazar::countries.FI'), + 'AX' => Lang::get('bazar::countries.AX'), + 'FR' => Lang::get('bazar::countries.FR'), + 'DE' => Lang::get('bazar::countries.DE'), + 'GI' => Lang::get('bazar::countries.GI'), + 'GR' => Lang::get('bazar::countries.GR'), + 'VA' => Lang::get('bazar::countries.VA'), + 'HU' => Lang::get('bazar::countries.HU'), + 'IS' => Lang::get('bazar::countries.IS'), + 'IE' => Lang::get('bazar::countries.IE'), + 'IT' => Lang::get('bazar::countries.IT'), + 'LV' => Lang::get('bazar::countries.LV'), + 'LI' => Lang::get('bazar::countries.LI'), + 'LT' => Lang::get('bazar::countries.LT'), + 'LU' => Lang::get('bazar::countries.LU'), + 'MT' => Lang::get('bazar::countries.MT'), + 'MC' => Lang::get('bazar::countries.MC'), + 'MD' => Lang::get('bazar::countries.MD'), + 'ME' => Lang::get('bazar::countries.ME'), + 'NL' => Lang::get('bazar::countries.NL'), + 'NO' => Lang::get('bazar::countries.NO'), + 'PL' => Lang::get('bazar::countries.PL'), + 'PT' => Lang::get('bazar::countries.PT'), + 'RO' => Lang::get('bazar::countries.RO'), + 'SM' => Lang::get('bazar::countries.SM'), + 'RS' => Lang::get('bazar::countries.RS'), + 'SK' => Lang::get('bazar::countries.SK'), + 'SI' => Lang::get('bazar::countries.SI'), + 'ES' => Lang::get('bazar::countries.ES'), + 'SJ' => Lang::get('bazar::countries.SJ'), + 'SE' => Lang::get('bazar::countries.SE'), + 'CH' => Lang::get('bazar::countries.CH'), + 'UA' => Lang::get('bazar::countries.UA'), + 'MK' => Lang::get('bazar::countries.MK'), + 'GB' => Lang::get('bazar::countries.GB'), + 'GG' => Lang::get('bazar::countries.GG'), + 'JE' => Lang::get('bazar::countries.JE'), + 'IM' => Lang::get('bazar::countries.IM'), ]; } @@ -214,47 +216,47 @@ public static function europe(): array public static function northAmerica(): array { return [ - 'AG' => __('Antigua and Barbuda'), - 'BS' => __('Bahamas'), - 'BB' => __('Barbados'), - 'BM' => __('Bermuda'), - 'BZ' => __('Belize'), - 'VG' => __('British Virgin Islands'), - 'CA' => __('Canada'), - 'KY' => __('Cayman Islands'), - 'CR' => __('Costa Rica'), - 'CU' => __('Cuba'), - 'DM' => __('Dominica'), - 'DO' => __('Dominican Republic'), - 'SV' => __('El Salvador'), - 'GL' => __('Greenland'), - 'GD' => __('Grenada'), - 'GP' => __('Guadeloupe'), - 'GT' => __('Guatemala'), - 'HT' => __('Haiti'), - 'HN' => __('Honduras'), - 'JM' => __('Jamaica'), - 'MQ' => __('Martinique'), - 'MX' => __('Mexico'), - 'MS' => __('Montserrat'), - 'CW' => __('Curaçao'), - 'AW' => __('Aruba'), - 'SX' => __('Sint Maarten'), - 'BQ' => __('Caribbean Netherlands'), - 'NI' => __('Nicaragua'), - 'PA' => __('Panama'), - 'PR' => __('Puerto Rico'), - 'BL' => __('St. Barthélemy'), - 'KN' => __('St. Kitts and Nevis'), - 'AI' => __('Anguilla'), - 'LC' => __('St. Lucia'), - 'MF' => __('St. Martin'), - 'PM' => __('St. Pierre and Miquelon'), - 'VC' => __('St. Vincent and Grenadines'), - 'TT' => __('Trinidad and Tobago'), - 'TC' => __('Turks and Caicos Islands'), - 'US' => __('United States'), - 'VI' => __('U.S. Virgin Islands'), + 'AG' => Lang::get('bazar::countries.AG'), + 'BS' => Lang::get('bazar::countries.BS'), + 'BB' => Lang::get('bazar::countries.BB'), + 'BM' => Lang::get('bazar::countries.BM'), + 'BZ' => Lang::get('bazar::countries.BZ'), + 'VG' => Lang::get('bazar::countries.VG'), + 'CA' => Lang::get('bazar::countries.CA'), + 'KY' => Lang::get('bazar::countries.KY'), + 'CR' => Lang::get('bazar::countries.CR'), + 'CU' => Lang::get('bazar::countries.CU'), + 'DM' => Lang::get('bazar::countries.DM'), + 'DO' => Lang::get('bazar::countries.DO'), + 'SV' => Lang::get('bazar::countries.SV'), + 'GL' => Lang::get('bazar::countries.GL'), + 'GD' => Lang::get('bazar::countries.GD'), + 'GP' => Lang::get('bazar::countries.GP'), + 'GT' => Lang::get('bazar::countries.GT'), + 'HT' => Lang::get('bazar::countries.HT'), + 'HN' => Lang::get('bazar::countries.HN'), + 'JM' => Lang::get('bazar::countries.JM'), + 'MQ' => Lang::get('bazar::countries.MQ'), + 'MX' => Lang::get('bazar::countries.MX'), + 'MS' => Lang::get('bazar::countries.MS'), + 'CW' => Lang::get('bazar::countries.CW'), + 'AW' => Lang::get('bazar::countries.AW'), + 'SX' => Lang::get('bazar::countries.SX'), + 'BQ' => Lang::get('bazar::countries.BQ'), + 'NI' => Lang::get('bazar::countries.NI'), + 'PA' => Lang::get('bazar::countries.PA'), + 'PR' => Lang::get('bazar::countries.PR'), + 'BL' => Lang::get('bazar::countries.BL'), + 'KN' => Lang::get('bazar::countries.KN'), + 'AI' => Lang::get('bazar::countries.AI'), + 'LC' => Lang::get('bazar::countries.LC'), + 'MF' => Lang::get('bazar::countries.MF'), + 'PM' => Lang::get('bazar::countries.PM'), + 'VC' => Lang::get('bazar::countries.VC'), + 'TT' => Lang::get('bazar::countries.TT'), + 'TC' => Lang::get('bazar::countries.TC'), + 'US' => Lang::get('bazar::countries.US'), + 'VI' => Lang::get('bazar::countries.VI'), ]; } @@ -264,20 +266,20 @@ public static function northAmerica(): array public static function southAmerica(): array { return [ - 'AR' => __('Argentina'), - 'BO' => __('Bolivia'), - 'BR' => __('Brazil'), - 'CL' => __('Chile'), - 'CO' => __('Colombia'), - 'EC' => __('Ecuador'), - 'FK' => __('Falkland Islands'), - 'GF' => __('French Guiana'), - 'GY' => __('Guyana'), - 'PY' => __('Paraguay'), - 'PE' => __('Peru'), - 'SR' => __('Suriname'), - 'UY' => __('Uruguay'), - 'VE' => __('Venezuela'), + 'AR' => Lang::get('bazar::countries.AR'), + 'BO' => Lang::get('bazar::countries.BO'), + 'BR' => Lang::get('bazar::countries.BR'), + 'CL' => Lang::get('bazar::countries.CL'), + 'CO' => Lang::get('bazar::countries.CO'), + 'EC' => Lang::get('bazar::countries.EC'), + 'FK' => Lang::get('bazar::countries.FK'), + 'GF' => Lang::get('bazar::countries.GF'), + 'GY' => Lang::get('bazar::countries.GY'), + 'PY' => Lang::get('bazar::countries.PY'), + 'PE' => Lang::get('bazar::countries.PE'), + 'SR' => Lang::get('bazar::countries.SR'), + 'UY' => Lang::get('bazar::countries.UY'), + 'VE' => Lang::get('bazar::countries.VE'), ]; } @@ -287,32 +289,32 @@ public static function southAmerica(): array public static function oceania(): array { return [ - 'AS' => __('American Samoa'), - 'AU' => __('Australia'), - 'SB' => __('Solomon Islands'), - 'CK' => __('Cook Islands'), - 'FJ' => __('Fiji'), - 'PF' => __('French Polynesia'), - 'KI' => __('Kiribati'), - 'GU' => __('Guam'), - 'NR' => __('Nauru'), - 'NC' => __('New Caledonia'), - 'VU' => __('Vanuatu'), - 'NZ' => __('New Zealand'), - 'NU' => __('Niue'), - 'NF' => __('Norfolk Island'), - 'MP' => __('Northern Mariana Islands'), - 'UM' => __('U.S. Outlying Islands'), - 'FM' => __('Micronesia'), - 'MH' => __('Marshall Islands'), - 'PW' => __('Palau'), - 'PG' => __('Papua New Guinea'), - 'PN' => __('Pitcairn Islands'), - 'TK' => __('Tokelau'), - 'TO' => __('Tonga'), - 'TV' => __('Tuvalu'), - 'WF' => __('Wallis and Futuna'), - 'WS' => __('Samoa'), + 'AS' => Lang::get('bazar::countries.AS'), + 'AU' => Lang::get('bazar::countries.AU'), + 'SB' => Lang::get('bazar::countries.SB'), + 'CK' => Lang::get('bazar::countries.CK'), + 'FJ' => Lang::get('bazar::countries.FJ'), + 'PF' => Lang::get('bazar::countries.PF'), + 'KI' => Lang::get('bazar::countries.KI'), + 'GU' => Lang::get('bazar::countries.GU'), + 'NR' => Lang::get('bazar::countries.NR'), + 'NC' => Lang::get('bazar::countries.NC'), + 'VU' => Lang::get('bazar::countries.VU'), + 'NZ' => Lang::get('bazar::countries.NZ'), + 'NU' => Lang::get('bazar::countries.NU'), + 'NF' => Lang::get('bazar::countries.NF'), + 'MP' => Lang::get('bazar::countries.MP'), + 'UM' => Lang::get('bazar::countries.UM'), + 'FM' => Lang::get('bazar::countries.FM'), + 'MH' => Lang::get('bazar::countries.MH'), + 'PW' => Lang::get('bazar::countries.PW'), + 'PG' => Lang::get('bazar::countries.PG'), + 'PN' => Lang::get('bazar::countries.PN'), + 'TK' => Lang::get('bazar::countries.TK'), + 'TO' => Lang::get('bazar::countries.TO'), + 'TV' => Lang::get('bazar::countries.TV'), + 'WF' => Lang::get('bazar::countries.WF'), + 'WS' => Lang::get('bazar::countries.WS'), ]; }