How to fix the error of missing translations for any product?

If there are no translations for any product, you need to generate po-files, translate them, and then generate mo-files:

  1. Go to the product directory where folder locale is located.

  2. Then we generate po-files for Russian language. To generate django.po we run the command:

    django-admin makemessages -d django -l ru
    
  3. To generate djangojs.po we run the command:

    django-admin makemessages -d djangojs -l ru
    
  4. Next, we translate po-files.

  5. To generate mo-files for all po-files, run the command:

    django-admin compilemessages
    
  6. As result, we get files *.mo.