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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1028,7 +1028,7 @@ When contributing new React components to Superset, please try to add a Story al
## Translating
We use [Babel](http://babel.pocoo.org/en/latest/) to translate Superset.
We use [Flask-Babel](https://python-babel.github.io/flask-babel/) to translate Superset.
In Python files, we import the magic `_` function using:
```python

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.