Skip to content

Commit c785a45

Browse files
committed
Language attribute for client requests
1 parent 3d8339b commit c785a45

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/Syntax/SteamApi/Client.php

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

112113
if (! empty($arguments)) {

src/config/config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
* Once you get your key, add it here.
88
*/
99
'steamApiKey' => env('STEAM_API_KEY'),
10+
'steamLang' => env('STEAM_LANG', 'english'),
1011
);

0 commit comments

Comments
 (0)