#25933: Allow un-prefixed default language in i18n_patterns
--------------------------------------+--------------------
     Reporter:  urbaniak              |      Owner:  nobody
         Type:  Uncategorized         |     Status:  new
    Component:  Internationalization  |    Version:  master
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 The idea is to allow having the default language urls un-prefixed.

 So adding a translations to existing site is more seamless - it does not
 require changing current urls, just adding new ones.

 That pattern with un-prefixed default language is pretty common - for
 example https://www.apple.com (which is en_US) and
 https://www.apple.com/fr/ (fr_FR).

 Any other language than the default one is prefixed as before using
 i18n_patterns.

 The idea for that is having a `prefix_default_language` param to`
 i18n_patterns`, which is `True` by default, to keep it compatible with
 current appriach. Setting it to `False` will turn on this "feature".

 Here's the code: https://github.com/django/django/pull/5823

--
Ticket URL: <https://code.djangoproject.com/ticket/25933>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.e75daaec1c64a3c864d2724c710c67a7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to