diff --git a/config/geoip.php b/config/geoip.php index 9699b1a..e49316e 100644 --- a/config/geoip.php +++ b/config/geoip.php @@ -70,6 +70,7 @@ 'secure' => true, 'key' => env('IPAPI_KEY'), 'continent_path' => storage_path('app/continents.json'), + 'lang' => 'en', ], ], @@ -140,4 +141,4 @@ 'currency' => 'USD', ], -]; \ No newline at end of file +]; diff --git a/src/Services/IPApi.php b/src/Services/IPApi.php index df28a6e..bb65576 100644 --- a/src/Services/IPApi.php +++ b/src/Services/IPApi.php @@ -36,6 +36,7 @@ public function boot() ], 'query' => [ 'fields' => 49663, + 'lang' => $this->config('lang', ['en']), ], ]; @@ -139,4 +140,4 @@ private function getContinent($code) { return Arr::get($this->continents, $code, 'Unknown'); } -} \ No newline at end of file +}