Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add Transifex commands to customization docs
Patryk Zawadzki27c30f4e7d4f
diff --git a/docs/customization.rst b/docs/customization.rstindex 6add8009ec..51ffb8e6c9 100644--- a/docs/customization.rst+++ b/docs/customization.rst@@ -9,6 +9,7 @@ Customizing Saleorcustomization/emailscustomization/frontendcustomization/backend+ customization/i18ncustomization/testscustomization/cicustomization/pypydiff --git a/docs/customization/i18n.rst b/docs/customization/i18n.rstnew file mode 100644index 0000000000..35c1291d08--- /dev/null+++ b/docs/customization/i18n.rst@@ -0,0 +1,49 @@+Internationalization+====================++Pulling Translations From Transifex+-----------------------------------++First make sure you have the Transifex command-line client installed:++.. code-block:: console++ $ pip install transifex-client++Then use the ``pull`` command to pull translations:++.. code-block:: console++ $ tx pull++.. note::++ To create locale directories for newly created translations you will need to call ``tx pull`` with the ``--all`` flag.+++Compiling Message Catalogs+--------------------------++This is required for Django to see the translations.++.. code-block:: console++ $ python manage.py compilemessages+++Extracting Messages to Translate+--------------------------------++This will update the English language files with messages that appear in your code.++For the backend code and templates:++.. code-block:: console++ $ python manage.py makemessages -l en --extension=email,html,py,txt --ignore="templates/templated_email/compiled/*"++For JavaScript code:++.. code-block:: console++ $ python manage.py makemessages -l en -d djangojs --ignore="_build/*" --ignore="node_modules/*" --ignore="saleor/static/assets/*"