docs: update Flask-Babel links (#22023)

This commit is contained in:
Hao Cheng
2022-12-02 22:20:58 +01:00
committed by GitHub
parent 09bb1cc3b5
commit 3df1c99f00
2 changed files with 4 additions and 4 deletions

View File

@@ -7,10 +7,10 @@ version: 1
## Translating
We use [Flask-Babel](https://flask-babel.tkte.ch/) to translate Superset.
We use [Flask-Babel](https://python-babel.github.io/flask-babel/) to translate Superset.
In Python files, we use the following
[translation functions](https://flask-babel.tkte.ch/#using-translations) from
`Flask-Babel`:
[translation functions](https://python-babel.github.io/flask-babel/#using-translations)
from `Flask-Babel`:
- `gettext` and `lazy_gettext` (usually aliased to `_`): for translating singular
strings.
- `ngettext`: for translating strings that might become plural.