Skip to content

Commit 181225c

Browse files
committed
Moved language select to appDetails method
Per recommendation #74 (comment)
1 parent ee40716 commit 181225c

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

src/Syntax/SteamApi/Client.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ protected function setUpClient(array $arguments = [])
107107
$parameters = [
108108
'key' => $this->apiKey,
109109
'format' => $this->apiFormat,
110-
'l' => \Config::get('steam-api.steamLang')
111110
];
112111

113112
if (! empty($arguments)) {

src/Syntax/SteamApi/Steam/App.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __construct()
1515
$this->interface = 'api';
1616
}
1717

18-
public function appDetails($appIds)
18+
public function appDetails($appIds, $language = 'english')
1919
{
2020
// Set up the api details
2121
$this->method = 'appdetails';
@@ -24,6 +24,7 @@ public function appDetails($appIds)
2424
// Set up the arguments
2525
$arguments = [
2626
'appids' => $appIds,
27+
'l' => $language,
2728
];
2829

2930
// Get the client

src/config/config.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,5 @@
77
* Once you get your key, add it here.
88
*/
99
'steamApiKey' => env('STEAM_API_KEY'),
10-
11-
/**
12-
* Localized language paramter
13-
* Steam will default back to English if the requested language is not available
14-
*/
15-
'steamLang' => env('STEAM_LANG', 'english'),
1610

1711
);

0 commit comments

Comments
 (0)