Simplify i18n messages for translation
MODIFY
src/assets/i18n/de.json
src/assets/i18n/de.json
},
"accountVerificationNotification": {
"title": "Account verified",
- "body": "Your account has been verified{{activated}}with success. {{needAdminActivation}}",
- "activated": " and activated ",
- "needAdminActivation": "An administrator will check and activate your account."
+ "bodyVerified": "Your account has been verified with success. An administrator will check and activate your account.",
+ "bodyVerifiedAndActivated": "Your account has been verified and activated with success."
}
},
"siteArea": "Standortbereich",

MODIFY
src/assets/i18n/en.json
src/assets/i18n/en.json
},
"accountVerificationNotification": {
"title": "Account verified",
- "body": "Your account has been verified{{activated}}with success. {{needAdminActivation}}",
- "activated": " and activated ",
- "needAdminActivation": "An administrator will check and activate your account."
+ "bodyVerified": "Your account has been verified with success. An administrator will check and activate your account.",
+ "bodyVerifiedAndActivated": "Your account has been verified and activated with success."
}
},
"siteArea": "Site Area",

MODIFY
src/assets/i18n/es.json
src/assets/i18n/es.json
},
"accountVerificationNotification": {
"title": "Account verified",
- "body": "Your account has been verified{{activated}}with success. {{needAdminActivation}}",
- "activated": " and activated ",
- "needAdminActivation": "An administrator will check and activate your account."
+ "bodyVerified": "Your account has been verified with success. An administrator will check and activate your account.",
+ "bodyVerifiedAndActivated": "Your account has been verified and activated with success."
}
},
"siteArea": "Zona",

MODIFY
src/assets/i18n/it.json
src/assets/i18n/it.json
},
"accountVerificationNotification": {
"title": "Account verified",
- "body": "Your account has been verified{{activated}}with success. {{needAdminActivation}}",
- "activated": " and activated ",
- "needAdminActivation": "An administrator will check and activate your account."
+ "bodyVerified": "Your account has been verified with success. An administrator will check and activate your account.",
+ "bodyVerifiedAndActivated": "Your account has been verified and activated with success."
}
},
"siteArea": "Site Area",

MODIFY
src/assets/i18n/pt.json
src/assets/i18n/pt.json
},
"accountVerificationNotification": {
"title": "Account verified",
- "body": "Your account has been verified{{activated}}with success. {{needAdminActivation}}",
- "activated": " and activated ",
- "needAdminActivation": "An administrator will check and activate your account."
+ "bodyVerified": "Your account has been verified with success. An administrator will check and activate your account.",
+ "bodyVerifiedAndActivated": "Your account has been verified and activated with success."
}
},
"siteArea": "Area de Site",

MODIFY
src/notification/remote-push-notification/RemotePushNotificationTask.ts
src/notification/remote-push-notification/RemotePushNotificationTask.ts
@@ -350,9 +350,12 @@ export default class RemotePushNotificationTask implements NotificationTask {
const i18nManager = I18nManager.getInstanceForLocale(user.locale);
// Get Message Text
const title = i18nManager.translate('notifications.accountVerificationNotification.title');
- const body = i18nManager.translate('notifications.accountVerificationNotification.body',
- { activated: data.userStatus === UserStatus.ACTIVE ? i18nManager.translate('notifications.accountVerificationNotification.activated') : ' ' ,
- needAdminActivation: data.userStatus === UserStatus.INACTIVE ? i18nManager.translate('notifications.accountVerificationNotification.needAdminActivation') : '' });
+ let body: string;
+ if (data.userStatus === UserStatus.ACTIVE) {
+ body = i18nManager.translate('notifications.accountVerificationNotification.bodyVerifiedAndActivated');
+ } else {
+ body = i18nManager.translate('notifications.accountVerificationNotification.bodyVerified');
+ }
// Send Notification
return this.sendRemotePushNotificationToUser(tenant, UserNotificationType.ACCOUNT_VERIFICATION_NOTIFICATION, title, body, user, null,
severity

Simplify i18n messages for translation