Как автоматически переводить на другой язык, если msgid и msgstr слова не указаны в .mo или .po файле в django?
Я использую i18n для перевода english на hindi язык
settings.py
if LANG_ENABLE:
LANGUAGES = [
('en', 'English'),
('hi', 'Hindi'),
]
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
urls.py
urlpatterns += i18n_patterns(
# Include urls for mamber
path('members/', include('member.urls')),
# Include urls for about us
path('about-us/', include('about_us.urls')),
)
i have run
```django-admin makemessage -l hi```
a folder locale/hi/LC_MESSAGES with ```django.mo``` and ```django.po``` has been created
1. there are few words which i have added in .po file under ```msgid``` and ```msgstr``` for translation
2. there are few words which {% trans %} convert to hindi by itself. (there translation are not added in ```.mo``` ```.po``` file
3. and other words are not getting translated( which i have not added in ```.mo``` ```.po``` file
can i do something like if no translation provided in .mo and .po then it should automatically convert to other language(hindi language).
It is working few few words but not for whole page.
How can i achieve this.