mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Update Python and JS modules. Fixes #3154
This commit is contained in:
committed by
Dave Page
parent
fc886cf8bb
commit
be055ce57d
@@ -11,7 +11,7 @@
|
||||
|
||||
from flask import render_template, Response
|
||||
from flask import url_for
|
||||
from flask_babel import get_translations, gettext
|
||||
from flask_babelex import Domain, gettext
|
||||
|
||||
from pgadmin.utils import PgAdminModule
|
||||
from pgadmin.utils.ajax import bad_request
|
||||
@@ -64,9 +64,11 @@ def translations():
|
||||
"""Return a js file that will handle translations so Flask interpolation
|
||||
can be isolated
|
||||
"""
|
||||
domain = Domain()
|
||||
translations = domain.get_translations()
|
||||
template = render_template(
|
||||
"js/translations.js",
|
||||
translations=get_translations()._catalog
|
||||
translations=translations._catalog
|
||||
)
|
||||
return Response(
|
||||
response=template,
|
||||
|
||||
Reference in New Issue
Block a user