# default back to English @ "/" - internationalization

**URL:** <https://forum.djangoproject.com/t/default-back-to-english-internationalization/35881>\
**Category:** Using Django\
**Created:** [October 23, 2024, 10:13am UTC](https://forum.djangoproject.com/t/default-back-to-english-internationalization/35881 "2024-10-23T10:13:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juhjuh](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/juhjuh/32/21088_2.png) [@juhjuh](https://forum.djangoproject.com/u/juhjuh)\
**Post date:** [October 23, 2024, 10:13am UTC](https://forum.djangoproject.com/t/default-back-to-english-internationalization/35881/1 "2024-10-23T10:13:20Z")

</div>

Hello everyone,

I’ve got an app that runs on an iPad in our lobby - it’s basically part of a visitor manager system. The application offers to choose from 3 languages, English being the default.

When users have checked-in/out the app automatically redirects to “/” in order to have a smooth user experience. Additionally I’d like to change the language back to English if one of the other 2 languages were chosen.

I’ve tried to approach this via my index\_view and also via custom middleware, but I always ended up having one if two issues:

1. Changing the language works - but it doesn’t reset back to English on reload/redirect
2. I can’t change the language at all.

Anyone with a solution or a hint for me?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![leandrodesouzadev](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/leandrodesouzadev/32/8981_2.png) [@leandrodesouzadev](https://forum.djangoproject.com/u/leandrodesouzadev)\
**Post date:** [October 23, 2024, 10:48am UTC](https://forum.djangoproject.com/t/default-back-to-english-internationalization/35881/2 "2024-10-23T10:48:07Z")

</div>

Hello there!  
First of all it would be good for us to know your urls.py configuration, the one that have `i18n_patterns` probably.

---

<div class="post-metadata">

**Author:** ![juhjuh](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/juhjuh/32/21088_2.png) [@juhjuh](https://forum.djangoproject.com/u/juhjuh)\
**Post date:** [October 23, 2024, 11:17am UTC](https://forum.djangoproject.com/t/default-back-to-english-internationalization/35881/3 "2024-10-23T11:17:36Z")

</div>

```auto
from django.conf.urls.i18n import i18n_patterns
from django.views.i18n import set_language

urlpatterns = [
    ...
    path("", Guestbook.views.index, name="index"),
    path('i18n/', include('django.conf.urls.i18n')),
]

urlpatterns += i18n_patterns(
    path('set_language/', set_language, name='set_language'),
)

```
