Merge branch 'RED-8263' into 'master'

RED-8263: display actual values instead of placeholders in translations.

See merge request redactmanager/red-ui!254
This commit is contained in:
Dan Percic 2024-01-16 12:04:20 +01:00
commit 0f71576bb3
5 changed files with 44 additions and 44 deletions

View File

@ -151,7 +151,7 @@ export const getRemoveRedactionOptions = (
const translations = isDocumine ? removeAnnotationTranslations : removeRedactionTranslations;
const { permissions, redactions, applyToAllDossiers, isApprover, falsePositiveContext } = data;
const isBulk = redactions.length > 1;
console.log(redactions[0].typeLabel);
const options: DetailsRadioOption<RemoveRedactionOption>[] = [];
if (permissions.canRemoveOnlyHere) {
options.push({

View File

@ -696,7 +696,7 @@
"select-dossier": "Dossier auswählen",
"select-dossier-template": "Dossiervorlage auswählen"
},
"compare-error": " '{type}' type does not exist in '{template)' template.",
"compare-error": " ''{type}'' type does not exist in ''{template}'' template.",
"download": "Download current entries",
"error": {
"400": "Cannot update dictionary because at least one of the newly added words where recognized as a general term that appear too often in texts.",
@ -2012,18 +2012,18 @@
"list-item-false-positive": "",
"options": {
"false-positive": {
"description": "'{value}' is not a '{type}' in this context: '{context}'.",
"description": "''{value}'' is not a ''{type}'' in this context: ''{context}''.",
"description-bulk": "",
"label": "False positive"
},
"in-dossier": {
"description": "Do not annotate '{value}' as '{type}' in any dossier.",
"description": "Do not annotate ''{value}'' as ''{type}'' in any dossier.",
"description-bulk": "",
"label": "No longer annotate as '{type}'",
"label": "No longer annotate as ''{type}''",
"label-bulk": ""
},
"only-here": {
"description": "Do not annotate '{value}' at this position in the current document.",
"description": "Do not annotate ''{value}'' at this position in the current document.",
"description-bulk": "Do not annotate the selected terms at this position in the current document.",
"label": "Remove here"
}
@ -2043,29 +2043,29 @@
"comment": "Comment",
"comment-placeholder": "Add remarks or mentions...",
"list-item": "{text}",
"list-item-false-positive": "'{text}' in the context: '{context}'",
"list-item-false-positive": "''{text}'' in the context: ''{context}''",
"options": {
"do-not-recommend": {
"description": "Do not recommend '{value}' as {type} in any document of the current dossier.",
"description": "Do not recommend ''{value}'' as {type} in any document of the current dossier.",
"description-bulk": "Do not recommend the selected terms in any document of the current dossier.",
"extraOptionLabel": "Apply to all active and future dossiers",
"label": "Remove from dossier"
},
"false-positive": {
"description": "'{value}' is not a {type} in this context: '{context}'.",
"description": "''{value}'' is not a {type} in this context: ''{context}''.",
"description-bulk": "Do not redact the selected terms in their respective context.",
"extraOptionLabel": "Apply to all active and future dossiers",
"label": "False positive"
},
"in-dossier": {
"description": "Do not {type, select, hint{annotate} other{redact}} '{value}' in any document of the current dossier.",
"description": "Do not {type, select, hint{annotate} other{redact}} ''{value}'' in any document of the current dossier.",
"description-bulk": "Do not redact the selected terms as their respective types in any dossier.",
"extraOptionLabel": "Apply to all active and future dossiers",
"label": "Remove from dossier",
"label-bulk": "No longer redact in any dossier"
},
"only-here": {
"description": "Do not {type, select, hint{annotate} other{redact}} '{value}' at this position in the current document.",
"description": "Do not {type, select, hint{annotate} other{redact}} ''{value}'' at this position in the current document.",
"description-bulk": "Do not redact the selected terms at this position in the current document.",
"label": "Remove here"
}
@ -2470,4 +2470,4 @@
}
},
"yesterday": "Gestern"
}
}

View File

@ -274,7 +274,7 @@
"message": {
"dictionary": {
"add": {
"conflict-error": "Cannot add '{content}' to the {dictionaryName} dictionary because it was recognized as a general term that appears too often in texts.",
"conflict-error": "Cannot add ''{content}'' to the {dictionaryName} dictionary because it was recognized as a general term that appears too often in texts.",
"error": "Failed to add entry to dictionary: {error}",
"success": "Entry added to dictionary. Changes will be visible after reanalysis."
},
@ -690,7 +690,7 @@
"dev-mode": "DEV",
"dictionary": "Type",
"dictionary-overview": {
"compare-error": " '{type}' type does not exist in '{template)' template.",
"compare-error": " ''{type}'' type does not exist in ''{template}'' template.",
"compare": {
"compare": "Compare",
"select-dictionary": "Select dictionary",
@ -2012,18 +2012,18 @@
"list-item-false-positive": "",
"options": {
"false-positive": {
"description": "'{value}' is not a '{type}' in this context: '{context}'.",
"description": "''{value}'' is not a ''{type}'' in this context: ''{context}''.",
"description-bulk": "",
"label": "False positive"
},
"in-dossier": {
"description": "Do not annotate '{value}' as '{type}' in any dossier.",
"description": "Do not annotate ''{value}'' as ''{type}'' in any dossier.",
"description-bulk": "",
"label": "No longer annotate as '{type}'",
"label": "No longer annotate as ''{type}''",
"label-bulk": ""
},
"only-here": {
"description": "Do not annotate '{value}' at this position in the current document.",
"description": "Do not annotate ''{value}'' at this position in the current document.",
"description-bulk": "Do not annotate the selected terms at this position in the current document.",
"label": "Remove here"
}
@ -2043,29 +2043,29 @@
"comment": "Comment",
"comment-placeholder": "Add remarks or mentions...",
"list-item": "{text}",
"list-item-false-positive": "'{text}' in the context: '{context}'",
"list-item-false-positive": "''{text}'' in the context: ''{context}''",
"options": {
"do-not-recommend": {
"description": "Do not recommend '{value}' as {type} in any document of the current dossier.",
"description": "Do not recommend ''{value}'' as {type} in any document of the current dossier.",
"description-bulk": "Do not recommend the selected terms in any document of the current dossier.",
"extraOptionLabel": "Apply to all active and future dossiers",
"label": "Remove from dossier"
},
"false-positive": {
"description": "'{value}' is not a {type} in this context: '{context}'.",
"description": "''{value}'' is not a {type} in this context: ''{context}''.",
"description-bulk": "Do not redact the selected terms in their respective context.",
"extraOptionLabel": "Apply to all active and future dossiers",
"label": "False positive"
},
"in-dossier": {
"description": "Do not {type, select, hint{annotate} other{redact}} '{value}' in any document of the current dossier.",
"description": "Do not {type, select, hint{annotate} other{redact}} ''{value}'' in any document of the current dossier.",
"description-bulk": "Do not redact the selected terms as their respective types in any dossier.",
"extraOptionLabel": "Apply to all active and future dossiers",
"label": "Remove from dossier",
"label-bulk": "No longer redact in any dossier"
},
"only-here": {
"description": "Do not {type, select, hint{annotate} other{redact}} '{value}' at this position in the current document.",
"description": "Do not {type, select, hint{annotate} other{redact}} ''{value}'' at this position in the current document.",
"description-bulk": "Do not redact the selected terms at this position in the current document.",
"label": "Remove here"
}
@ -2470,4 +2470,4 @@
}
},
"yesterday": "Yesterday"
}
}

View File

@ -2009,21 +2009,21 @@
"comment": "Comment",
"comment-placeholder": "Add remarks or mentions ...",
"list-item": "{text}",
"list-item-false-positive": "\"{text}\" in the context: \"{context}\"",
"list-item-false-positive": "''{text}'' in the context: ''{context}''",
"options": {
"false-positive": {
"description": "\"{value}\" is not a \"{type}\" in this context: \"{context}\".",
"description": "''{value}'' is not a ''{type}'' in this context: ''{context}''.",
"description-bulk": "The selected items should not be annotated in their respective contexts.",
"label": "False positive"
},
"in-dossier": {
"description": "Do not annotate \"{value}\" as \"{type}\" in any dossier.",
"description": "Do not annotate ''{value}'' as ''{type}'' in any dossier.",
"description-bulk": "Do not annotate the selected terms as their respective types in any dossier.",
"label": "No longer annotate as \"{type}\"",
"label": "No longer annotate as ''{type}''",
"label-bulk": "No longer annotate in any dossier"
},
"only-here": {
"description": "Do not annotate \"{value}\" at this position in the current document.",
"description": "Do not annotate ''{value}'' at this position in the current document.",
"description-bulk": "Do not annotate the selected terms at this position in the current document.",
"label": "Remove here"
}
@ -2046,26 +2046,26 @@
"list-item-false-positive": "",
"options": {
"do-not-recommend": {
"description": "Do not recommend \"{value}\" as {type} in any document of the current dossier.",
"description": "Do not recommend ''{value}'' as {type} in any document of the current dossier.",
"description-bulk": "Do not recommend the selected values as their respective types in any document of the current dossier.",
"extraOptionLabel": "Apply to all dossiers",
"label": "Remove from dossier"
},
"false-positive": {
"description": "\"{value}\" is not a {type} in this context: \"{context}\".",
"description": "''{value}'' is not a {type} in this context: ''{context}''.",
"description-bulk": "",
"extraOptionLabel": "Apply to all dossiers",
"label": "False positive"
},
"in-dossier": {
"description": "Do not {type} \"{value}\" in any document of the current dossier.",
"description": "Do not {type} ''{value}'' in any document of the current dossier.",
"description-bulk": "",
"extraOptionLabel": "Apply to all dossiers",
"label": "Remove from dossier",
"label-bulk": ""
},
"only-here": {
"description": "Do not {type} \"{value}\" at this position in the current document.",
"description": "Do not {type} ''{value}'' at this position in the current document.",
"description-bulk": "",
"label": "Remove here"
}
@ -2470,4 +2470,4 @@
}
},
"yesterday": "Gestern"
}
}

View File

@ -2009,21 +2009,21 @@
"comment": "Comment",
"comment-placeholder": "Add remarks or mentions ...",
"list-item": "{text}",
"list-item-false-positive": "\"{text}\" in the context: \"{context}\"",
"list-item-false-positive": "''{text}'' in the context: ''{context}''",
"options": {
"false-positive": {
"description": "\"{value}\" is not a \"{type}\" in this context: \"{context}\".",
"description": "''{value}'' is not a ''{type}'' in this context: ''{context}''.",
"description-bulk": "The selected items should not be annotated in their respective contexts.",
"label": "False positive"
},
"in-dossier": {
"description": "Do not annotate \"{value}\" as \"{type}\" in any dossier.",
"description": "Do not annotate ''{value}'' as ''{type}'' in any dossier.",
"description-bulk": "Do not annotate the selected terms as their respective types in any dossier.",
"label": "No longer annotate as \"{type}\"",
"label": "No longer annotate as ''{type}''",
"label-bulk": "No longer annotate in any dossier"
},
"only-here": {
"description": "Do not annotate \"{value}\" at this position in the current document.",
"description": "Do not annotate ''{value}'' at this position in the current document.",
"description-bulk": "Do not annotate the selected terms at this position in the current document.",
"label": "Remove here"
}
@ -2046,26 +2046,26 @@
"list-item-false-positive": "",
"options": {
"do-not-recommend": {
"description": "Do not recommend \"{value}\" as {type} in any document of the current dossier.",
"description": "Do not recommend ''{value}'' as {type} in any document of the current dossier.",
"description-bulk": "Do not recommend the selected values as their respective types in any document of the current dossier.",
"extraOptionLabel": "Apply to all dossiers",
"label": "Remove from dossier"
},
"false-positive": {
"description": "\"{value}\" is not a {type} in this context: \"{context}\".",
"description": "''{value}'' is not a {type} in this context: ''{context}''.",
"description-bulk": "",
"extraOptionLabel": "Apply to all dossiers",
"label": "False positive"
},
"in-dossier": {
"description": "Do not {type} \"{value}\" in any document of the current dossier.",
"description": "Do not {type} ''{value}'' in any document of the current dossier.",
"description-bulk": "",
"extraOptionLabel": "Apply to all dossiers",
"label": "Remove from dossier",
"label-bulk": ""
},
"only-here": {
"description": "Do not {type} \"{value}\" at this position in the current document.",
"description": "Do not {type} ''{value}'' at this position in the current document.",
"description-bulk": "",
"label": "Remove here"
}
@ -2470,4 +2470,4 @@
}
},
"yesterday": "Yesterday"
}
}