Application using fastapi-babel
to translate responses. Application has to support en
and ar
translation.
When user send accept-language: en
and accept-language: ar
API works fine.
But when swagger api page open from client side, its borwser passes Accept-Language: en-US,en;q=0.9,ar;q=0.8,fr-FR;q=0.7,fr;q=0.6
.
For my understanding, what is the use of q=X.Y
? and how to configure browser to send only one language as Accept-Language
?
Screenshot from browser