Skip to content

Commit 2be91cf

Browse files
authored
Merge pull request #96 from Butochnikov/master
Add lang to IPApi
2 parents adb45f9 + d9c4c1a commit 2be91cf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/geoip.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
'secure' => true,
7171
'key' => env('IPAPI_KEY'),
7272
'continent_path' => storage_path('app/continents.json'),
73+
'lang' => 'en',
7374
],
7475

7576
],
@@ -140,4 +141,4 @@
140141
'currency' => 'USD',
141142
],
142143

143-
];
144+
];

src/Services/IPApi.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function boot()
3636
],
3737
'query' => [
3838
'fields' => 49663,
39+
'lang' => $this->config('lang', ['en']),
3940
],
4041
];
4142

@@ -139,4 +140,4 @@ private function getContinent($code)
139140
{
140141
return Arr::get($this->continents, $code, 'Unknown');
141142
}
142-
}
143+
}

0 commit comments

Comments
 (0)