mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
lib/request: use profile.defaultLanguage
This commit is contained in:
parent
5beec2e15c
commit
16e0038fa9
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ const request = (ctx, userAgent, reqData) => {
|
|||
const body = profile.transformReqBody(ctx, {
|
||||
// todo: is it `eng` actually?
|
||||
// RSAG has `deu` instead of `de`
|
||||
lang: opt.language || 'en',
|
||||
lang: opt.language || profile.defaultLanguage || 'en',
|
||||
svcReqL: [reqData]
|
||||
})
|
||||
Object.assign(body, pick(profile, [
|
||||
|
|
Loading…
Add table
Reference in a new issue