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;
|
}
|
}
|