Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add i18n section in readme
Browse files Browse the repository at this point in the history
attemoi committed Apr 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent bd29427 commit e74bdb9
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
@@ -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

0 comments on commit e74bdb9

Please sign in to comment.