Skip to content

Commit

Permalink
Improve documentation for initializing the i18n extension (#2023)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism authored Sep 10, 2024
2 parents 3e5b5b2 + a9a0197 commit af054f3
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 af054f3

Please sign in to comment.