⚠️ Experimental / Unstable — This package is under active development and may be subject to breaking changes.
Automatic i18n for Flask.
pip install gt-flaskfrom flask import Flask
from gt_flask import initialize_gt, t
app = Flask(__name__)
initialize_gt(app, default_locale="en", locales=["en", "es", "fr"])
@app.route("/")
def hello():
return t("Hello, world!")See the full documentation for guides and API reference.