InstallationΒΆ
Install Django Translations using pip:
$ pip install django-translations
Add
translations
to theINSTALLED_APPS
in the settings of your project:INSTALLED_APPS += [ 'translations', ]
Run
migrate
:$ python manage.py migrate
Configure Django internationalization and localization settings:
USE_I18N = True # use internationalization USE_L10N = True # use localization MIDDLEWARE += [ # locale middleware 'django.middleware.locale.LocaleMiddleware', ] LANGUAGE_CODE = 'en-us' # default (fallback) language LANGUAGES = ( # supported languages ('en', 'English'), ('en-gb', 'English (Great Britain)'), ('de', 'German'), ('tr', 'Turkish'), )
Please note that these settings are for Django itself.