mirror of https://github.com/django/django.git
Fixed typo in translation import statement
This commit is contained in:
parent
69ddc1b3da
commit
b0bd1f0e19
|
@ -1779,7 +1779,7 @@ To help write more concise code, there is also a context manager
|
|||
``django.utils.translation.override()`` that stores the current language on
|
||||
enter and restores it on exit. With it, the above example becomes::
|
||||
|
||||
from django.utils import tranlations
|
||||
from django.utils import translation
|
||||
|
||||
def welcome_translated(language):
|
||||
with translation.override(language):
|
||||
|
|
Loading…
Reference in New Issue