Commit 0a8d5ae0 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

fix: translate new notification type

parent a3d1a1c3
......@@ -767,29 +767,35 @@ export namespace Enums {
export type TypeEnum =
"ACCESS_DATASET_REQUEST"
| "JOIN_ORGUNIT_REQUEST"
| "VALIDATE_DEPOSIT_REQUEST"
| "CREATED_DEPOSIT_INFO"
| "IN_ERROR_DEPOSIT_INFO"
| "CREATE_ORGUNIT_REQUEST"
| "IN_ERROR_SIP_INFO"
| "IN_ERROR_AIP_INFO"
| "VALIDATE_DEPOSIT_REQUEST"
| "MY_APPROVED_DEPOSIT_INFO"
| "MY_COMPLETED_DEPOSIT_INFO"
| "MY_INDIRECT_COMPLETED_DEPOSIT_INFO"
| "CREATED_DEPOSIT_INFO"
| "IN_ERROR_DEPOSIT_INFO"
| "IN_ERROR_DIP_INFO"
| "IN_ERROR_DOWNLOADED_AIP_INFO"
| "APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST"
| "APPROVE_DISPOSAL_REQUEST";
| "APPROVE_DISPOSAL_REQUEST"
| "APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST";
export const TypeEnum = {
ACCESS_DATASET_REQUEST: "ACCESS_DATASET_REQUEST" as TypeEnum,
JOIN_ORGUNIT_REQUEST: "JOIN_ORGUNIT_REQUEST" as TypeEnum,
VALIDATE_DEPOSIT_REQUEST: "VALIDATE_DEPOSIT_REQUEST" as TypeEnum,
CREATED_DEPOSIT_INFO: "CREATED_DEPOSIT_INFO" as TypeEnum,
IN_ERROR_DEPOSIT_INFO: "IN_ERROR_DEPOSIT_INFO" as TypeEnum,
CREATE_ORGUNIT_REQUEST: "CREATE_ORGUNIT_REQUEST" as TypeEnum,
IN_ERROR_SIP_INFO: "IN_ERROR_SIP_INFO" as TypeEnum,
IN_ERROR_AIP_INFO: "IN_ERROR_AIP_INFO" as TypeEnum,
VALIDATE_DEPOSIT_REQUEST: "VALIDATE_DEPOSIT_REQUEST" as TypeEnum,
MY_APPROVED_DEPOSIT_INFO: "MY_APPROVED_DEPOSIT_INFO" as TypeEnum,
MY_COMPLETED_DEPOSIT_INFO: "MY_COMPLETED_DEPOSIT_INFO" as TypeEnum,
MY_INDIRECT_COMPLETED_DEPOSIT_INFO: "MY_INDIRECT_COMPLETED_DEPOSIT_INFO" as TypeEnum,
CREATED_DEPOSIT_INFO: "CREATED_DEPOSIT_INFO" as TypeEnum,
IN_ERROR_DEPOSIT_INFO: "IN_ERROR_DEPOSIT_INFO" as TypeEnum,
IN_ERROR_DIP_INFO: "IN_ERROR_DIP_INFO" as TypeEnum,
IN_ERROR_DOWNLOADED_AIP_INFO: "IN_ERROR_DOWNLOADED_AIP_INFO" as TypeEnum,
APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST: "APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST" as TypeEnum,
APPROVE_DISPOSAL_REQUEST: "APPROVE_DISPOSAL_REQUEST" as TypeEnum,
APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST: "APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST" as TypeEnum,
};
export const TypeEnumTranslate: KeyValue[] = [
{
......@@ -800,29 +806,41 @@ export namespace Enums {
key: TypeEnum.JOIN_ORGUNIT_REQUEST,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.joinOrgUnitRequest"),
},
{
key: TypeEnum.CREATE_ORGUNIT_REQUEST,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.createOrgUnitRequest"),
},
{
key: TypeEnum.IN_ERROR_SIP_INFO,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.inErrorSipInfo"),
},
{
key: TypeEnum.IN_ERROR_AIP_INFO,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.inErrorAipInfo"),
},
{
key: TypeEnum.VALIDATE_DEPOSIT_REQUEST,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.validateDepositRequest"),
},
{
key: TypeEnum.CREATED_DEPOSIT_INFO,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.createdDepositInfo"),
key: TypeEnum.MY_APPROVED_DEPOSIT_INFO,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.myApprovedDepositInfo"),
},
{
key: TypeEnum.IN_ERROR_DEPOSIT_INFO,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.inErrorDepositInfo"),
key: TypeEnum.MY_COMPLETED_DEPOSIT_INFO,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.myCompletedDepositInfo"),
},
{
key: TypeEnum.CREATE_ORGUNIT_REQUEST,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.createOrgUnitRequest"),
key: TypeEnum.MY_INDIRECT_COMPLETED_DEPOSIT_INFO,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.myIndirectCompletedDepositInfo"),
},
{
key: TypeEnum.IN_ERROR_SIP_INFO,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.inErrorSipInfo"),
key: TypeEnum.CREATED_DEPOSIT_INFO,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.createdDepositInfo"),
},
{
key: TypeEnum.IN_ERROR_AIP_INFO,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.inErrorAipInfo"),
key: TypeEnum.IN_ERROR_DEPOSIT_INFO,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.inErrorDepositInfo"),
},
{
key: TypeEnum.IN_ERROR_DIP_INFO,
......@@ -832,14 +850,14 @@ export namespace Enums {
key: TypeEnum.IN_ERROR_DOWNLOADED_AIP_INFO,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.inErrorDownloadedAipInfo"),
},
{
key: TypeEnum.APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.approveDisposalByOrgunitRequest"),
},
{
key: TypeEnum.APPROVE_DISPOSAL_REQUEST,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.approveDisposalRequest"),
},
{
key: TypeEnum.APPROVE_DISPOSAL_BY_ORGUNIT_REQUEST,
value: MARK_AS_TRANSLATABLE("notification.enum.notificationType.approveDisposalByOrgunitRequest"),
},
];
}
......
......@@ -1629,6 +1629,9 @@
"inErrorDownloadedAipInfo": "Fehler AIP-Download",
"inErrorSipInfo": "SIP-Fehler",
"joinOrgUnitRequest": "Antrag Beitritt zu einer Organisationseinheit",
"myApprovedDepositInfo": "notification.enum.notificationType.myApprovedDepositInfo",
"myCompletedDepositInfo": "notification.enum.notificationType.myCompletedDepositInfo",
"myIndirectCompletedDepositInfo": "notification.enum.notificationType.myIndirectCompletedDepositInfo",
"validateDepositRequest": "Antrag auf Validierung einer Datenablage"
}
},
......
......@@ -1629,6 +1629,9 @@
"inErrorDownloadedAipInfo": "AIP download in error",
"inErrorSipInfo": "SIP in error",
"joinOrgUnitRequest": "Organizational unit membership request",
"myApprovedDepositInfo": "Deposit approved",
"myCompletedDepositInfo": "Deposit completed",
"myIndirectCompletedDepositInfo": "Deposit for which you are a contributor completed",
"validateDepositRequest": "Deposit approval request"
}
},
......@@ -2156,4 +2159,4 @@
"title": "User guide",
"tooltipClose": "Close user guide"
}
}
\ No newline at end of file
}
......@@ -1629,6 +1629,9 @@
"inErrorDownloadedAipInfo": "AIP téléchargé en erreur",
"inErrorSipInfo": "SIP en erreur",
"joinOrgUnitRequest": "Demande pour rejoindre une unité organisationnelle",
"myApprovedDepositInfo": "Dépôt approuvé",
"myCompletedDepositInfo": "Dépôt complété",
"myIndirectCompletedDepositInfo": "Dépôt dont vous être contributeur complété",
"validateDepositRequest": "Demande de validation d'un dépôt"
}
},
......@@ -2156,4 +2159,4 @@
"title": "Guide d'utilisation",
"tooltipClose": "Fermer le guide d'utilisation"
}
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment