Open
Description
Problem description:
swagger-ui/dist/lang/translator.js
Lines 6 to 8 in 1f2a5d7
* To enable translation you should include one of language-files in your index.html * after <script src='lang/translator.js' type='text/javascript'></script>. * For example - <script src='lang/ru.js' type='text/javascript'></script>
This is unacceptable in today's internet. Every end user should see his language.
So:
-
swagger-ui
should provide some query parameter (e.g.lang
) to set set user's language and apply corresponding translation. (This is needed for integration purposes.) -
If the parameter is not specified,
swagger-ui
should determine user's language automatically using the following variables (actually, all of them in the specified order) and apply corresponding translation: -
End user should be able to change the language using
swagger-ui
.
Additional information:
swagger-ui version affected: commit 1f2a5d7
swagger file: not required