mirror of https://github.com/apache/superset.git
docs: update Flask-Babel links (#22023)
This commit is contained in:
parent
09bb1cc3b5
commit
3df1c99f00
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue