mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
695cfc1f26
the javascript_catalog view which sends out a JavaScript code library with functions that mimic the gettext interface, plus an array of translation strings. At first glance, it works well and everything is fine. But, because javascript_catalog view is generating JavaScript catalog dynamically on each request, it's adding an overhead that can be an issue with site growth. WWW: https://github.com/zyegfryed/django-statici18n PR: 203935 Submitted by: Ultima Approved by: mat (mentor) Differential Revision: D4641
12 lines
503 B
Plaintext
12 lines
503 B
Plaintext
When dealing with internationalization in JavaScript code, Django provides
|
|
the javascript_catalog view which sends out a JavaScript code library with
|
|
functions that mimic the gettext interface, plus an array of translation
|
|
strings.
|
|
|
|
At first glance, it works well and everything is fine. But, because
|
|
javascript_catalog view is generating JavaScript catalog dynamically
|
|
on each request, it's adding an overhead that can be an issue with site
|
|
growth.
|
|
|
|
WWW: https://github.com/zyegfryed/django-statici18n
|