Return the selected language catalog as a JavaScript library.
Receive the list of packages to check for translations in the packages
kwarg either from the extra dictionary passed to the path() function or as
a plus-sign delimited string from the request. Default is 'django.conf'.
You can override the gettext domain for this view, but usually you don't want to do that as JavaScript messages go to the djangojs domain. This might be needed if you deliver your JavaScript source from Django templates.
Class Variable | domain |
Undocumented |
Class Variable | packages |
Undocumented |
Method | get |
Undocumented |
Method | get_catalog |
Undocumented |
Method | get_context_data |
Undocumented |
Method | get_paths |
Undocumented |
Method | get_plural |
Undocumented |
Method | render_to_response |
Undocumented |
Instance Variable | translation |
Undocumented |
Property | _num_plurals |
Return the number of plurals for this catalog language, or 2 if no plural string is available. |
Property | _plural_string |
Return the plural string (including nplurals) for this catalog language, or None if no plural string is available. |
django.views.i18n.JSONCatalog
Undocumented