修复中文翻译不生效的问题

This commit is contained in:
jingrow 2025-12-29 00:49:19 +08:00
parent 9e2ae680ec
commit 738225a28d
2 changed files with 2 additions and 2 deletions

View File

@ -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 || {};

View File

@ -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 = [