Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

General Translation

Documentation · Report Bug

gt-flask

⚠️ Experimental / Unstable — This package is under active development and may be subject to breaking changes.

Automatic i18n for Flask.

Installation

pip install gt-flask

Quick Start

from 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.