Added spanish version
MODIFY
README.md
README.md
@@ -416,7 +416,8 @@ Here are the default delivered locales:
"default": "en_US",
"supported": [
"en_US",
- "fr_FR"
+ "fr_FR",
+ "es_MX"
]
},
```

MODIFY
docker/config-standalone.json
docker/config-standalone.json
"default": "en_US",
"supported": [
"en_US",
- "fr_FR"
+ "fr_FR",
+ "es_MX"
]
},
"Migration": {

MODIFY
docker/config.json
docker/config.json
"default": "en_US",
"supported": [
"en_US",
- "fr_FR"
+ "fr_FR",
+ "es_MX"
]
},
"Migration": {

MODIFY
src/assets/config-template-http.json
src/assets/config-template-http.json
"default": "en_US",
"supported": [
"en_US",
- "fr_FR"
+ "fr_FR",
+ "es_MX"
]
},
"Migration": {

MODIFY
src/assets/config-template-https.json
src/assets/config-template-https.json
"default": "en_US",
"supported": [
"en_US",
- "fr_FR"
+ "fr_FR",
+ "es_MX"
]
},
"Migration": {

MODIFY
src/integration/pricing/export/convergent-charging/index.ts
src/integration/pricing/export/convergent-charging/index.ts
-export { default } from '../../convergent-charging';
+export { default } from '../../dummy/DummyPricingIntegration';

MODIFY
src/integration/refund/export/concur/index.ts
src/integration/refund/export/concur/index.ts
-export { default } from '../../concur';
+export { default } from '../../dummy/DummyRefundIntegration';

MODIFY
src/integration/smart-charging/export/sap-smart-charging/index.ts
src/integration/smart-charging/export/sap-smart-charging/index.ts
-export { default } from '../../sap-smart-charging';
+export { default } from '../../dummy/DummySmartChargingIntegration';

MODIFY
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIMapping.ts
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIMapping.ts
@@ -278,8 +278,11 @@ export default class OCPIMapping {
if (language === 'fr') {
return 'fr_FR';
}
+ if(language === 'en') {
return 'en_US';
}
+ return 'es_MX';
+ }
//
/**

MODIFY
src/utils/Constants.ts
src/utils/Constants.ts
@@ -54,8 +54,8 @@ export default class Constants {
public static readonly PWD_NUMBER_RE = /([\d])/g; // Cannot store regex in enum
public static readonly PWD_SPECIAL_CHAR_RE = /([!#$%^&*.?-])/g; // Cannot store regex in enum
- public static readonly SUPPORTED_LOCALES = ['en_US', 'fr_FR'];
- public static readonly SUPPORTED_LANGUAGES = ['en', 'fr'];
+ public static readonly SUPPORTED_LOCALES = ['en_US', 'fr_FR', 'es_MX'];
+ public static readonly SUPPORTED_LANGUAGES = ['en', 'fr', 'es'];
public static readonly DEFAULT_LOCALE = 'en_US';
public static readonly DEFAULT_LANGUAGE = 'en';

MODIFY
src/utils/I18nManager.ts
src/utils/I18nManager.ts
@@ -23,10 +23,12 @@ export default class I18nManager {
// Get the supported locales for moment
require('moment/locale/fr');
require('moment/locale/de');
+ require('moment/locale/es');
require('moment/locale/en-gb');
// Get translation files
i18n.translations['en'] = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/i18n/en.json`, 'utf8'));
i18n.translations['fr'] = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/i18n/fr.json`, 'utf8'));
+ i18n.translations['es'] = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/i18n/es.json`, 'utf8'));
// Default
i18n.locale = Constants.DEFAULT_LANGUAGE;
moment.locale(Constants.DEFAULT_LANGUAGE);

Added spanish version