From b37f8e4f59239019a14caa9d505f53b388660c38 Mon Sep 17 00:00:00 2001 From: Alexey Date: Fri, 24 Nov 2017 18:08:37 +0300 Subject: [PATCH 1/2] Add lang key to ipapi --- config/geoip.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +]; From d9c4c1a07a44b03af7023eb2ffe1eb0b6ffa4a77 Mon Sep 17 00:00:00 2001 From: Alexey Date: Fri, 24 Nov 2017 18:10:01 +0300 Subject: [PATCH 2/2] Add lang to IPApi --- src/Services/IPApi.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +}