|
@@ -52,7 +52,9 @@ class Server {
|
|
constructor(properties) {
|
|
constructor(properties) {
|
|
this.instance = (0, express_1.default)();
|
|
this.instance = (0, express_1.default)();
|
|
this.port = properties.port;
|
|
this.port = properties.port;
|
|
- this.i18n = i18n_1.i18nLoader.getInstance().setLocale(properties.locale);
|
|
|
|
|
|
+ this.i18n = i18n_1.i18nLoader.getInstance();
|
|
|
|
+ if (properties.locale)
|
|
|
|
+ this.i18n.setLocale(properties.locale);
|
|
this.logger = new logger_1.Logger();
|
|
this.logger = new logger_1.Logger();
|
|
this.httpHandlers = {};
|
|
this.httpHandlers = {};
|
|
this.i18nPath = properties.i18nPath;
|
|
this.i18nPath = properties.i18nPath;
|