wangrong
2026-08-30 761e5c5fa871959f60e15c971c8d83f2b53d0af5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package io.dataease.i18n;
 
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
 
@Component
@Order(1000)
public class DeI18nStarter implements ApplicationRunner {
 
    @Value("${dataease.path.i18n:file:/opt/dataease2.0/data/i18n/custom}")
    private String i18nPath;
 
    @Override
    public void run(ApplicationArguments args) throws Exception {
        DynamicI18nUtils.addOrUpdate(i18nPath);
    }
 
}