In index.hml, available in 'dist' folder, below scripts can be used for changing the language.
<script src='lang/translator.js' type='text/javascript'></script> <script src='lang/ru.js' type='text/javascript'></script> 'ru.js' displays the page in russian. Try with different js files available in 'lang' folder to display in other languages. Hope this helps On Tue, Dec 6, 2016 at 4:25 PM, Feorlen <[email protected]> wrote: > I have a copy of one of the samples set up on my webserver, so I have > swagger-ui working locally. I see many sets of language files in /lang that > look like they are for its own strings, but I can't figure out how to > actually change the language it serves. > > I have two different browsers with other languages set as primary, but for > Swagger I only get pages in English. They are served non-English pages from > other sites, so I know that is working. How do I access the localized UI? > And how can I make my own localized versions of my API docs? > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Swagger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
