Skip to content

Commit

Permalink
Improve documentation for initializing the i18n extension
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Sep 10, 2024
1 parent eb0df04 commit 839c5fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ After enabling, an application has to provide functions for ``gettext``,
globally or when rendering. A ``_()`` function is added as an alias to
the ``gettext`` function.

A convenient way to provide these functions is to call one of the below
methods depending on the translation system in use. If you do not require
actual translation, use ``Environment.install_null_translations`` to
install no-op functions.

Environment Methods
~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 839c5fe

Please sign in to comment.