0

my settings :

LANGUAGE_CODE = 'fa'

TIME_ZONE = 'Asia/Tehran'

USE_I18N = True

USE_L10N = True

USE_TZ = True

# Languages

LANGUAGES = (
    ('fa', _('Persian')),
    ('en', _('English')),
    ('ar', _('Arabic')),
)

LOCALE_PATHS = [
    BASE_DIR / 'locale/',
]

i want at the beginning when server get start default language for everyone be "fa" but it's still "en" how can i change that ? everything about multi language and translation works well

2 Answers2

0

You can set the default language like this in your settings.py:

LANGUAGE_CODE = "ja" # <- default language
0

I had the same problem, but thankfully found the solution LINK.

If you don't know how to create custom middlewares, this tutorial can help you LINK.