feat: 自定义外部国际化文件

This commit is contained in:
fit2cloud-chenyw
2024-12-24 14:44:39 +08:00
committed by ulleo
parent 57853fd89c
commit 2fe2e67a80
11 changed files with 107 additions and 24 deletions

View File

@@ -20,9 +20,11 @@ public class StaticResourceConstants {
public static String APPEARANCE_DIR = ensureSuffix(USER_HOME, FILE_SEPARATOR) + "appearance";
public static String REPORT_DIR = ensureSuffix(USER_HOME, FILE_SEPARATOR) + "report";
public static String PLUGIN_DIR = ensureSuffix(USER_HOME, FILE_SEPARATOR) + "plugin";
public static String I18N_DIR = ensureSuffix(USER_HOME, FILE_SEPARATOR) + "i18n/front";
public static String MAP_URL = "/map";
public static String GEO_URL = "/geo";
public static String I18N_URL = "/i18n";
/**
* Upload prefix.

View File

@@ -46,6 +46,7 @@ public class WhitelistUtils {
"/sysParameter/ui",
"/sysParameter/defaultLogin",
"/embedded/initIframe",
"/sysParameter/i18nOptions",
"/");
public static boolean match(String requestURI) {
@@ -84,6 +85,7 @@ public class WhitelistUtils {
|| StringUtils.startsWithAny(requestURI, "/typeface/defaultFont")
|| StringUtils.startsWithAny(requestURI, "/typeface/listFont")
|| StringUtils.startsWithAny(requestURI, "/exportCenter/download")
|| StringUtils.startsWithAny(requestURI, "/i18n/")
|| StringUtils.startsWithAny(requestURI, "/communicate/image/")
|| StringUtils.startsWithAny(requestURI, "/communicate/down/");
}