Multilingual flask application

sharvey picture sharvey · Aug 6, 2010 · Viewed 10.3k times · Source

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.

Answer

Sean Vieira picture Sean Vieira · Aug 6, 2010

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