REST-API-Design-Guide icon indicating copy to clipboard operation
REST-API-Design-Guide copied to clipboard

Internationalization: support the definition of multiple languages via the URL

Open dsebastien opened this issue 8 years ago • 2 comments

You MAY also support the definition of multiple languages just like with the Accept-Language header.

Design for this approach?

dsebastien avatar Dec 09 '16 13:12 dsebastien

It can be done by adding a "lang=xx-XX" query parameter to the url. But I would not recommend this approach, using the Accept-Language in the header is the preferred way.

RobbyDeLaet avatar Dec 09 '16 14:12 RobbyDeLaet

It could be added as an optional alternative. Can help for testing (simple url manipulation vs headers)

On Dec 9, 2016 3:03 PM, "Robby De Laet" [email protected] wrote:

It can be done by adding a "lang=xx-XX" query parameter to the url. But I would not recommend this approach, using the Accept-Language in the header is the preferred way.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NationalBankBelgium/REST-API-Design-Guide/issues/5#issuecomment-266020918, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFfH4jb4lKdpf8UuMHyhOKuYqShJDeuks5rGV-5gaJpZM4LI86l .

dsebastien avatar Dec 09 '16 19:12 dsebastien