Junjie
昨天 66a9fc7a0065c4b1f0d488018659da98ee8594e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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;
    }
}