diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 1c2c88325..d82d92d6a 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -230,5 +230,13 @@ "probability": "Probability", "riskLevels": "Risk levels", "cancel": "Cancel", - "save": "Save" + "save": "Save", + "currentAssessment": "Current assessment", + "scope": "Scope", + "assetsImpactedByTheRiskScenario": "Assets impacted by the risk scenario", + "ecistingMeasures": "Existing measures", + "theExistingSecurityMeasuresToManageThisRisk": "The existing security measures to manage this risk", + "currentRiskLevelGivenCurrentMeasures": "The current risk level given the current security measures", + "targetAssessment": "Target assessment", + "riskLevelWhenAllExtraMeasuresDone": "The risk level when all extra measures are done" } diff --git a/frontend/messages/fr.json b/frontend/messages/fr.json index d8cf2c16d..d5cf7a66f 100644 --- a/frontend/messages/fr.json +++ b/frontend/messages/fr.json @@ -230,5 +230,13 @@ "probability": "Probabilité", "riskLevels": "Niveaux de risque", "cancel": "Annuler", - "save": "Enregistrer" + "save": "Enregistrer", + "currentAssessment": "Évaluation actuelle", + "scope": "Périmètre", + "assetsImpactedByTheRiskScenario": "Biens sensibles impactés par le scénario de risque", + "ecistingMeasures": "Mesures existantes", + "theExistingSecurityMeasuresToManageThisRisk": "Les mesures de sécurité existantes pour gérer ce risque", + "currentRiskLevelGivenCurrentMeasures": "Niveau de risque courant compte tenu des mesures actuelles", + "targetAssessment": "Évaluation cible", + "riskLevelWhenAllExtraMeasuresDone": "Niveau de risque lorsque toutes les mesures supplémentaires sont appliquées" } diff --git a/frontend/src/lib/utils/locales.ts b/frontend/src/lib/utils/locales.ts index 195c3d353..c9b012707 100644 --- a/frontend/src/lib/utils/locales.ts +++ b/frontend/src/lib/utils/locales.ts @@ -12,7 +12,7 @@ export const LOCALE_MAP = { }; export function toCamelCase(str: string) { - return str.replace(/[_-]\w/g, match => match.charAt(1).toUpperCase()); + return str.replace(/[_-]\w/g, (match) => match.charAt(1).toUpperCase()); } export function capitalizeFirstLetter(str: string) { @@ -162,11 +162,13 @@ export function localItems(languageTag: string): LocalItems { associatedRiskAssessments: m.associatedRiskAssessments({ languageTag: languageTag }), associatedRiskScenarios: m.associatedRiskScenarios({ languageTag: languageTag }), associatedRiskAcceptances: m.associatedRiskAcceptances({ languageTag: languageTag }), - associatedComplianceAssessments: m.associatedComplianceAssessments({ languageTag: languageTag }), + associatedComplianceAssessments: m.associatedComplianceAssessments({ + languageTag: languageTag + }), associatedEvidences: m.associatedEvidences({ languageTag: languageTag }), associatedDomains: m.associatedDomains({ languageTag: languageTag }), associatedProjects: m.associatedProjects({ languageTag: languageTag }), - associatedUsers: m.associatedUsers({ languageTag: languageTag }), + associatedUsers: m.associatedUsers({ languageTag: languageTag }) }; return LOCAL_ITEMS; } diff --git a/frontend/src/routes/(app)/risk-scenarios/[id=uuid]/edit/+page.svelte b/frontend/src/routes/(app)/risk-scenarios/[id=uuid]/edit/+page.svelte index 25dc764c4..c02915c22 100644 --- a/frontend/src/routes/(app)/risk-scenarios/[id=uuid]/edit/+page.svelte +++ b/frontend/src/routes/(app)/risk-scenarios/[id=uuid]/edit/+page.svelte @@ -135,10 +135,10 @@ >
Project
+{m.project()}
{data.scenario.project.str} @@ -147,27 +147,19 @@ {form} options={getOptions({ objects: data.foreignKeys['risk_assessment'] })} field="risk_assessment" - label="RiskAssessment" + label={m.riskAssessments()} /> -Auditor
- {#if data.scenario.auditor} - {data.scenario.auditor.str} - {/if} - - -Version
+{m.version()}
{data.scenario.version}
Last update
+{m.updatedAt()}
{new Date(data.scenario.updated_at).toLocaleString()}
@@ -176,7 +168,7 @@ {form} options={data.treatmentChoices} field="treatment" - label="Treatment status" + label={m.treatmentStatus()} />