class documentation

class JavaScriptCatalog(View):

Known subclasses: django.views.i18n.JSONCatalog

View In Hierarchy

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.
domain: str =

Undocumented

packages =

Undocumented

def get(self, request, *args, **kwargs):

Undocumented

def get_catalog(self):

Undocumented

def get_context_data(self, **kwargs):

Undocumented

def get_paths(self, packages):

Undocumented

def get_plural(self):

Undocumented

def render_to_response(self, context, **response_kwargs):

Undocumented

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.