|
@@ -30,7 +30,9 @@ class Server {
|
|
|
public constructor(properties: ServerProperties) {
|
|
|
this.instance = express();
|
|
|
this.port = properties.port;
|
|
|
- this.i18n = i18nLoader.getInstance().setLocale(properties.locale);
|
|
|
+ this.i18n = i18nLoader.getInstance();
|
|
|
+ if(properties.locale)
|
|
|
+ this.i18n.setLocale(properties.locale);
|
|
|
this.logger = new Logger();
|
|
|
this.httpHandlers = {};
|
|
|
this.i18nPath = properties.i18nPath;
|