Closed sveetch closed 1 year ago
Done in 0.5.3-pre.3, views have been changed so they use the language code from either request if it have related attribute LANGUAGE_CODE
, else fallback on settings.LANGUAGE_CODE
. This work automatically so no need to configure anything special.
However, the language is still showing from admin forms.
Is your feature request related to a problem? Please describe. Actually Lotus is not really ready to work on a non i18n project. More precisely, it is almost required to be mount on a i18n url pattern.
Describe the solution you'd like Not everyone needs to use translated article or to serve different languages. Although it is a major feature from Lotus, it may be expected to be used without using i18n on url pattern or else.
I don't know yet how to do this technically, since all querysets require a language prefix, something will need to simulate the language middleware which set language to request context and just use the defaut language from settings.
Also, a settings could exists to disable the translation behavior like to hide the "original" field in admin.
Describe alternatives you've considered Not any.