From 13b31b2ca2a5f8600002a042b536c9d5529842e3 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期一, 09 三月 2026 19:21:18 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/common/i18n/I18nProperties.java |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/common/i18n/I18nProperties.java b/src/main/java/com/zy/common/i18n/I18nProperties.java
new file mode 100644
index 0000000..c452b13
--- /dev/null
+++ b/src/main/java/com/zy/common/i18n/I18nProperties.java
@@ -0,0 +1,52 @@
+package com.zy.common.i18n;
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.stereotype.Component;
+
+import java.util.Arrays;
+import java.util.List;
+
+@Component
+@ConfigurationProperties(prefix = "app.i18n")
+public class I18nProperties {
+
+    private String defaultLocale = "zh-CN";
+
+    private List<String> supportedLocales = Arrays.asList("zh-CN", "en-US");
+
+    private String packPath = "./stock/out/wcs/i18n";
+
+    private long refreshSeconds = 10;
+
+    public String getDefaultLocale() {
+        return defaultLocale;
+    }
+
+    public void setDefaultLocale(String defaultLocale) {
+        this.defaultLocale = defaultLocale;
+    }
+
+    public List<String> getSupportedLocales() {
+        return supportedLocales;
+    }
+
+    public void setSupportedLocales(List<String> supportedLocales) {
+        this.supportedLocales = supportedLocales;
+    }
+
+    public String getPackPath() {
+        return packPath;
+    }
+
+    public void setPackPath(String packPath) {
+        this.packPath = packPath;
+    }
+
+    public long getRefreshSeconds() {
+        return refreshSeconds;
+    }
+
+    public void setRefreshSeconds(long refreshSeconds) {
+        this.refreshSeconds = refreshSeconds;
+    }
+}

--
Gitblit v1.9.1