From 321f224be3ed6e60ad68594ea28f73734422d90d Mon Sep 17 00:00:00 2001
From: whycxzp <glperry@163.com>
Date: 星期四, 11 一月 2024 09:38:39 +0800
Subject: [PATCH] 后台国际化

---
 src/main/java/com/whyc/constant/YamlProperties.java |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/whyc/constant/YamlProperties.java b/src/main/java/com/whyc/constant/YamlProperties.java
index fbc52b4..35349df 100644
--- a/src/main/java/com/whyc/constant/YamlProperties.java
+++ b/src/main/java/com/whyc/constant/YamlProperties.java
@@ -25,24 +25,26 @@
     /**绯荤粺杩愯妯″紡*/
     public static Integer runModel;
 
-
+    public static String i18nLanguage;
 
     @Value("${spring.profiles.active}")
-    public void setProfileType(String profileType) {
+    private void setProfileType(String profileType) {
         YamlProperties.profileType = profileType;
     }
 
     @Value("${system.type}")
-    public void setSystemType(Integer systemType) {
+    private void setSystemType(Integer systemType) {
         YamlProperties.systemType = systemType;
     }
 
 
     @Value("${configFile.type}")
-    public void setRunModel(Integer runModel) {
+    private void setRunModel(Integer runModel) {
         YamlProperties.runModel = runModel;
     }
 
-
-
+    @Value("${configFile.i18nLanguage}")
+    private void setI18nLanguage(String i18nLanguage) {
+        YamlProperties.i18nLanguage = i18nLanguage;
+    }
 }

--
Gitblit v1.9.1