Multilingual flask application


Question

Is there a preferred way to make a Flask application multilingual? Ideally, the solution would enable to @app.route the same view to use different urls for each languages, like @app.route(en='/staff/', fr='/equipe/). I'm pretty confident I could hack something like that together, but an existing library would sure save me some time. Thanks.

1
17
9/4/2013 4:52:50 PM

Accepted Answer

I believe that Flask-Babel is what you are looking for.

19
8/6/2010 8:34:03 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon