class JSONCatalog(JavaScriptCatalog):
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. |