title: Why my translations in django i18n don't work
body: <p>I've been following 3 different tutorials for text translation in django, and with none of them my translation has worked, however I was doing exactly the same steps as in the tutorials. Django just doesn't translate my text, it goes without any kind of error. My last try was with this course: <a href="https://www.youtube.com/watch?v=AlJ8cGbk8ps" rel="nofollow noreferrer">https://www.youtube.com/watch?v=AlJ8cGbk8ps</a>. But just to be sure I'm adding my code below</p>
  <p><strong>settings.py</strong></p>
  <pre><code># Internationalization
  # https://docs.djangoproject.com/en/4.0/topics/i18n/
  
  LANGUAGE_CODE = 'es'
  
  TIME_ZONE = 'UTC'
  
  USE_I18N = True
  
  USE_TZ = True
  </code></pre>
  <p><strong>views.py</strong></p>
  <pre><code>from django.utils.translation import gettext as _
  
  # Create your views here.
  def index(request):
      context = {
          'hello':_('Hello'),
      }
      
      return render(request, 'index.html', context)
  </code></pre>
  <p><strong>index.html</strong></p>
  <pre><code>{% load i18n %}
  
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;UTF-8&quot;&gt;
      &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
      &lt;title&gt;Document&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;h1&gt;{{ hello }}&lt;/h1&gt;
      &lt;h2&gt;{% trans &quot;My name is Dawid&quot; %}&lt;/h2&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>My locale folder looks like this:</p>
  <p><a href="https://i.stack.imgur.com/1cLiN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1cLiN.png" alt="Locale folder:" /></a></p>
  <p>I think I should also mention that I use virtual environment, but when I switched it off it doesn't work either.
  Whether I switch LANGUAGE_CODE to <em>es</em> or <em>pl</em> it takes no effect. I've compiled them too.</p>