Apps get multi languages

This commit is contained in:
cuneytsenturk
2018-12-19 15:36:40 +03:00
parent f3986734fc
commit c9f75cd3d7
5 changed files with 6 additions and 5 deletions

View File

@ -18,7 +18,8 @@ trait SiteApi
'Authorization' => 'Bearer ' . setting('general.api_token'),
'Accept' => 'application/json',
'Referer' => env('APP_URL'),
'Akaunting' => version('short')
'Akaunting' => version('short'),
'Language' => language()->getShortCode()
);
$data['http_errors'] = false;