Python flask web application with multilanguages support by host and prefix
问题 I have one server with flask application instance and have several domain which mapped to this server by DNS. My site must support several languages by host and prefix: mysite.com - english mysite.com/fr - franch mysite.ru - russian mysite.ru/by - belarusian localhost or other unknown host without language prefix - default language (english) I implemented it with double route registration /endpoint and /<lang>/endpoint and reloaded url_for function and it work, but now I must implement custom