Skip to content

Commit

Permalink
add developer note to readme for how to handle internationalization f…
Browse files Browse the repository at this point in the history
…iles
  • Loading branch information
guruofgentoo committed Nov 1, 2022
1 parent a528fe2 commit 98a792a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/index.rst
Expand Up @@ -25,3 +25,4 @@ Contents
web
readme/features
readme/configuration
readme/internationalization
18 changes: 18 additions & 0 deletions docs/source/readme/internationalization.rst
@@ -0,0 +1,18 @@
Internationalization
====================

Keg can optionally be installed with the ``morphi`` library to use ``babel`` for internationalization::

pip install keg[i18n]

The ``setup.cfg`` file is configured to handle the standard message extraction commands. For ease of development
and ensuring that all marked strings have translations, a tox environment is defined for testing i18n. This will
run commands to update and compile the catalogs, and specify any strings which need to be added.

The desired workflow here is to run tox, update strings in the PO files as necessary, run tox again
(until it passes), and then commit the changes to the catalog files.

.. code::
tox -e i18n

0 comments on commit 98a792a

Please sign in to comment.