Django Internationalization gettext() Not Создание файлов сообщений из исходного кода JavaScript

I am working with django internationalization. I did all setup its working fine in templates and .py files.
I tried to create a translation text in .js file I setup that like This documentaion.
After the setup I used the gettext() in my js file is not showing the error in console.
Then I use the command to create messages file django.po using this command django-admin makemessages -d djangojs -l ta and the translation text not added in django.po file.

urls.py

urlpatterns = i18n_patterns(
    ...,
    path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'),
    prefix_default_language=False
)

js файл

    console.log(gettext('Javascrit gettext')) //Print the text in console it was working.
Вернуться на верх