Skip to content

Commit

Permalink
Add i18n/l10n section in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
attemoi committed Apr 8, 2024
1 parent bd29427 commit adfde6d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,21 @@ isort configuration is stored in our [tox.ini](tox.ini) which isort automaticall
We lint using [autoflake](https://pypi.org/project/autoflake/) to flag and remove any unused import statement. If an
unused import is needed for some reason it can be ignored with a `#noqa` comment in the code.

## Internationalization (i18n, l10n, flask-pybabel, managing translations)

When adding new translations (with `gettext()` or alias `_()`), make sure to
update the translation files with:

```bash
bin/util/collect_translations
```

Here's what the script does:

1) Collects and generates translations from source files with a custom script.
2) Creates new translation templates (`*.pot`) with `pybabel extract`
3) Updates existing translation files (`*.po`) with `pybabel update`

## Continuous Integration

This project runs all the unit tests through Github Actions for new pull requests and when merging into the default
Expand Down

0 comments on commit adfde6d

Please sign in to comment.