diff options
Diffstat (limited to 'docs/narr/i18n.rst')
| -rw-r--r-- | docs/narr/i18n.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/narr/i18n.rst b/docs/narr/i18n.rst index 0f19e7f5b..1381f4fed 100644 --- a/docs/narr/i18n.rst +++ b/docs/narr/i18n.rst @@ -494,6 +494,9 @@ avoid this caching, you can use the You can also obtain the locale name related to a request using the ``locale_name`` attribute of a :term:`localizer`. +.. code-block:: python + :linenos: + from repoze.bfg.i18n import get_localizer def aview(request): |
