SAP CAP Forum
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

What decides in which language the CAP application will open?

Abap_Explained
Explorer
0 Kudos
429

Hi Guys,
For my trial account. I have created a sample project with a sample app. When I open the app it adds the sap-language:

[odata] - GET /odata/v4/bookstore/$metadata { 'sap-language': 'PL' }

 I would like to set it to EN as default. How can I overcome that?
The trial Account language is set to English, and my SAP account is also set to english.

Abap_Explained_0-1759413099504.png

I know I can add, to the request.:

?sap-language=EN

But I was wondering where the default setting is. Or does it take it from the Geolocalication, IP... whatever? 

1 ACCEPTED SOLUTION
Read only

JoffyJohn
Active Contributor
373

The CAP app's default language is usually determined by the browser's language settings or request headers.

View solution in original post

4 REPLIES 4
Read only

JoffyJohn
Active Contributor
374

The CAP app's default language is usually determined by the browser's language settings or request headers.

Read only

0 Kudos
319

Thanks. Changing the browser language helped.

Read only

Tahemmout
Participant
0 Kudos
339

Hello @Abap_Explained,

As @JoffyJohn mentioned the CAP service will follow your browser locale, but you can set a default language in the package.json as mentioned in the capire docs: Set default language 

Read only

0 Kudos
319

For i18n yes, but not for default buttons like:

Abap_Explained_0-1759762017622.png

But yes. I guess it makes sense that it's taken from the browser language.