Skip to content

Commit

Permalink
docs: update Flask-Babel links (#22023)
Browse files Browse the repository at this point in the history
  • Loading branch information
haocheng6 authored Dec 2, 2022
1 parent 09bb1cc commit 3df1c99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/contributing/translations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3df1c99

Please sign in to comment.