class documentation

class JSONCatalog(JavaScriptCatalog):

View In Hierarchy

Return the selected language catalog as a JSON object.

Receive the same parameters as JavaScriptCatalog and return a response with a JSON object of the following format:

{
"catalog": {
# Translations catalog

}, "formats": {

# Language formats for date, time, etc.

}, "plural": '...' # Expression for plural forms, or null.

}

Method render​_to​_response Undocumented

Inherited from JavaScriptCatalog:

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
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.
def render_to_response(self, context, **response_kwargs):