/<country>/<language>/ URL scheme, like Django's i18n_patterns.
Django’s [i18n_patterns] prefixes URLs with a language code which may
contain a variant e.g.
o18n_patterns is similar but it prefixes URLs with a country code and a
language code e.g.
This is useful for websites that are mainly segmented by country rather than by language.
Some countries have a main language. In that case, the URL for the main
language only contains the country e.g.
/us. URLs for other languages
contain the country and the language e.g.
Some countries don’t have a main language — and it may be a sensitive topic!
In that case, all URLs contain the country and the language e.g.
Unlike i18_patterns, o18n_patterns doesn’t attempt to determine the country and language and automatically redirect the user to the appropriate URL.
If an URL doesn’t match a valid country and language combination, it doesn’t resolve with o18n_patterns and no country is activated. Vice-versa, if no country is active, reversing an URL raises an exception.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|django_o18n-1.0-py2.py3-none-any.whl (10.0 kB) Copy SHA256 Checksum SHA256||3.4||Wheel||Jul 1, 2014|
|django-o18n-1.0.tar.gz (9.8 kB) Copy SHA256 Checksum SHA256||–||Source||Jul 1, 2014|