diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 1c2c88325..803985aa8 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -14,6 +14,7 @@ "addDomain": "New domain", "addProject": "New project", "addUser": "New user", + "addPolicy": "New policy", "associatedThreats": "Associated threats", "associatedSecurityFunctions": "Associated security functions", "associatedSecurityMeasures": "Associated security measures", @@ -42,6 +43,7 @@ "securityMeasures": "Security measures", "assets": "Assets", "asset": "Asset", + "policy": "Policy", "policies": "Policies", "riskMatrices": "Risk matrices", "riskAssessments": "Risk assessments", diff --git a/frontend/messages/fr.json b/frontend/messages/fr.json index d8cf2c16d..c0faee951 100644 --- a/frontend/messages/fr.json +++ b/frontend/messages/fr.json @@ -14,6 +14,7 @@ "addDomain": "Ajouter un domaine", "addProject": "Ajouter un projet", "addUser": "Ajouter un utilisateur", + "addPolicy": "Ajouter une politique", "associatedThreats": "Menaces associées", "associatedSecurityFunctions": "Fonctions de sécurité associées", "associatedSecurityMeasures": "Mesures de sécurité associées", @@ -42,6 +43,7 @@ "securityMeasures": "Mesures de sécurité", "assets": "Biens sensibles", "asset": "Bien sensible", + "policy": "Politique", "policies": "Politiques", "riskMatrices": "Matrices de risque", "riskAssessments": "Évaluations de risque", diff --git a/frontend/src/lib/components/Forms/ModelForm.svelte b/frontend/src/lib/components/Forms/ModelForm.svelte index a371870a8..1812ecd9b 100644 --- a/frontend/src/lib/components/Forms/ModelForm.svelte +++ b/frontend/src/lib/components/Forms/ModelForm.svelte @@ -61,7 +61,7 @@ suggestions: suggestions['security_function'] })} field="security_function" - label="Security function" + label={m.securityFunction()} on:change={async (e) => { if (e.detail) { await fetch(`/security-functions/${e.detail}`) diff --git a/frontend/src/lib/utils/locales.ts b/frontend/src/lib/utils/locales.ts index 195c3d353..d375032ab 100644 --- a/frontend/src/lib/utils/locales.ts +++ b/frontend/src/lib/utils/locales.ts @@ -155,6 +155,7 @@ export function localItems(languageTag: string): LocalItems { addDomain: m.addDomain({ languageTag: languageTag }), addProject: m.addProject({ languageTag: languageTag }), addUser: m.addUser({ languageTag: languageTag }), + addPolicy: m.addPolicy({ languageTag: languageTag }), associatedThreats: m.associatedThreats({ languageTag: languageTag }), associatedSecurityFunctions: m.associatedSecurityFunctions({ languageTag: languageTag }), associatedSecurityMeasures: m.associatedSecurityMeasures({ languageTag: languageTag }),