Skip to content

Commit

Permalink
fix: add missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Feb 26, 2024
1 parent 98b3055 commit f98c933
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions frontend/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -42,6 +43,7 @@
"securityMeasures": "Security measures",
"assets": "Assets",
"asset": "Asset",
"policy": "Policy",
"policies": "Policies",
"riskMatrices": "Risk matrices",
"riskAssessments": "Risk assessments",
Expand Down
2 changes: 2 additions & 0 deletions frontend/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/Forms/ModelForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lib/utils/locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
Expand Down

0 comments on commit f98c933

Please sign in to comment.