From 738225a28d2c39d707a35830dcf949a4668a8ccd Mon Sep 17 00:00:00 2001 From: jingrow Date: Mon, 29 Dec 2025 00:49:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=AD=E6=96=87=E7=BF=BB?= =?UTF-8?q?=E8=AF=91=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/src/utils/i18n.js | 3 +-- jcloud/auth.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) 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 = [