diff --git a/dashboard/src/utils/i18n.js b/dashboard/src/utils/i18n.js index 5c154f2..a698b5c 100644 --- a/dashboard/src/utils/i18n.js +++ b/dashboard/src/utils/i18n.js @@ -28,8 +28,7 @@ export async function loadTranslations(locale = 'en') { const promise = jingrowRequest({ url: '/api/action/jingrow.translate.get_app_translations', - method: 'GET', - params: { _lang: locale } + method: 'GET' }) .then((response) => { translations.value = response || {}; diff --git a/jcloud/auth.py b/jcloud/auth.py index 3fb8cf1..cd28a65 100644 --- a/jcloud/auth.py +++ b/jcloud/auth.py @@ -47,6 +47,7 @@ ALLOWED_PATHS = [ "/api/action/jingrow.core.pagetype.user.user.test_password_strength", "/api/action/jingrow.core.pagetype.user.user.update_password", "/api/action/get_central_migration_data", + "/api/action/jingrow.translate.get_app_translations", ] ALLOWED_WILDCARD_PATHS = [