From 4f8a4f2e3552755b1521a506c359ee272fd03122 Mon Sep 17 00:00:00 2001 From: Celine Sebe Date: Wed, 25 Feb 2026 14:44:16 +0100 Subject: [PATCH 1/3] [frontend]translations vocabularies --- opencti-platform/opencti-front/lang/front/de.json | 1 + opencti-platform/opencti-front/lang/front/en.json | 1 + opencti-platform/opencti-front/lang/front/es.json | 1 + opencti-platform/opencti-front/lang/front/fr.json | 1 + opencti-platform/opencti-front/lang/front/it.json | 1 + opencti-platform/opencti-front/lang/front/ja.json | 1 + opencti-platform/opencti-front/lang/front/ko.json | 1 + opencti-platform/opencti-front/lang/front/ru.json | 1 + opencti-platform/opencti-front/lang/front/zh.json | 1 + .../private/components/settings/VocabularyCategories.tsx | 9 +++++++-- 10 files changed, 16 insertions(+), 2 deletions(-) diff --git a/opencti-platform/opencti-front/lang/front/de.json b/opencti-platform/opencti-front/lang/front/de.json index 08ad4c1b26ab..19d128bebef8 100644 --- a/opencti-platform/opencti-front/lang/front/de.json +++ b/opencti-platform/opencti-front/lang/front/de.json @@ -255,6 +255,7 @@ "An entity has left a selected PIR": "Eine Entität hat ein ausgewähltes PIR verlassen", "An entity is linked to an entity from a selected PIR": "Eine Entität ist mit einer Entität aus einem ausgewählten PIR verknüpft", "An enumeration of security platform type": "Eine Aufzählung des Sicherheitsplattformtyps", + "An enumeration of SSH key types": "Eine Aufzählung von SSH-Schlüsseltypen", "An enumeration of Windows service start types": "Eine Aufzählung von Windows-Dienst-Starttypen", "An enumeration of Windows service statuses": "Eine Aufzählung von Windows-Dienstzuständen", "An enumeration of Windows service types": "Eine Aufzählung von Windows-Diensttypen", diff --git a/opencti-platform/opencti-front/lang/front/en.json b/opencti-platform/opencti-front/lang/front/en.json index 21a315c43447..f0ba247aec1e 100644 --- a/opencti-platform/opencti-front/lang/front/en.json +++ b/opencti-platform/opencti-front/lang/front/en.json @@ -255,6 +255,7 @@ "An entity has left a selected PIR": "An entity has left a selected PIR", "An entity is linked to an entity from a selected PIR": "An entity is linked to an entity from a selected PIR", "An enumeration of security platform type": "An enumeration of security platform type", + "An enumeration of SSH key types": "An enumeration of SSH key types", "An enumeration of Windows service start types": "An enumeration of Windows service start types", "An enumeration of Windows service statuses": "An enumeration of Windows service statuses", "An enumeration of Windows service types": "An enumeration of Windows service types", diff --git a/opencti-platform/opencti-front/lang/front/es.json b/opencti-platform/opencti-front/lang/front/es.json index 3284d43fa9ec..e57195774082 100644 --- a/opencti-platform/opencti-front/lang/front/es.json +++ b/opencti-platform/opencti-front/lang/front/es.json @@ -255,6 +255,7 @@ "An entity has left a selected PIR": "Una entidad ha abandonado un PIR seleccionado", "An entity is linked to an entity from a selected PIR": "Una entidad está vinculada a una entidad de un PIR seleccionado", "An enumeration of security platform type": "Una enumeración de tipo plataforma de seguridad", + "An enumeration of SSH key types": "Una enumeración de tipos de claves SSH", "An enumeration of Windows service start types": "Una enumeración de los tipos de inicio de servicio de Windows", "An enumeration of Windows service statuses": "Una enumeración de estados de servicio de Windows", "An enumeration of Windows service types": "Una enumeración de tipos de servicio Windows", diff --git a/opencti-platform/opencti-front/lang/front/fr.json b/opencti-platform/opencti-front/lang/front/fr.json index ae8361f8e123..7fa6c9e95f68 100644 --- a/opencti-platform/opencti-front/lang/front/fr.json +++ b/opencti-platform/opencti-front/lang/front/fr.json @@ -255,6 +255,7 @@ "An entity has left a selected PIR": "Une entité a quitté un PIR sélectionné", "An entity is linked to an entity from a selected PIR": "Une entité est liée à une entité d'un PIR sélectionné", "An enumeration of security platform type": "Une énumération de types de plates-formes de sécurité", + "An enumeration of SSH key types": "Une énumération de types de clés SSH", "An enumeration of Windows service start types": "Une énumération des types de démarrage des services Windows", "An enumeration of Windows service statuses": "Une énumération de statuts de services Windows", "An enumeration of Windows service types": "Une énumération des types de services Windows", diff --git a/opencti-platform/opencti-front/lang/front/it.json b/opencti-platform/opencti-front/lang/front/it.json index 6b5795090fc2..99cf10697870 100644 --- a/opencti-platform/opencti-front/lang/front/it.json +++ b/opencti-platform/opencti-front/lang/front/it.json @@ -255,6 +255,7 @@ "An entity has left a selected PIR": "Un'entità ha lasciato un PIR selezionato", "An entity is linked to an entity from a selected PIR": "Un'entità è collegata a un'entità di un PIR selezionato", "An enumeration of security platform type": "Un'enumerazione di tipi di piattaforme di sicurezza", + "An enumeration of SSH key types": "Un'enumerazione di tipi di chiavi SSH", "An enumeration of Windows service start types": "Un'enumerazione di tipi di avvio del servizio Windows", "An enumeration of Windows service statuses": "Un'enumerazione di stati del servizio Windows", "An enumeration of Windows service types": "Un'enumerazione di tipi di servizio Windows", diff --git a/opencti-platform/opencti-front/lang/front/ja.json b/opencti-platform/opencti-front/lang/front/ja.json index 4e93ed7cef22..8fc11e7da7aa 100644 --- a/opencti-platform/opencti-front/lang/front/ja.json +++ b/opencti-platform/opencti-front/lang/front/ja.json @@ -255,6 +255,7 @@ "An entity has left a selected PIR": "選択したPIRからエンティティが離脱した", "An entity is linked to an entity from a selected PIR": "エンティティは、選択されたPIRのエンティティにリンクされている。", "An enumeration of security platform type": "セキュリティ・プラットフォーム型の列挙", + "An enumeration of SSH key types": "SSH鍵タイプの列挙", "An enumeration of Windows service start types": "Windows サービス開始タイプの列挙", "An enumeration of Windows service statuses": "Windowsサービスステータスの列挙", "An enumeration of Windows service types": "Windows サービスタイプの列挙", diff --git a/opencti-platform/opencti-front/lang/front/ko.json b/opencti-platform/opencti-front/lang/front/ko.json index 9caf364ce4aa..35fd8b9cc3f8 100644 --- a/opencti-platform/opencti-front/lang/front/ko.json +++ b/opencti-platform/opencti-front/lang/front/ko.json @@ -255,6 +255,7 @@ "An entity has left a selected PIR": "엔티티가 선택한 PIR을 떠났습니다", "An entity is linked to an entity from a selected PIR": "엔티티가 선택한 PIR의 엔티티에 연결됩니다", "An enumeration of security platform type": "보안 플랫폼 유형의 열거", + "An enumeration of SSH key types": "SSH 키 유형 열거", "An enumeration of Windows service start types": "Windows 서비스 시작 유형 열거", "An enumeration of Windows service statuses": "Windows 서비스 상태의 열거형", "An enumeration of Windows service types": "Windows 서비스 유형 열거", diff --git a/opencti-platform/opencti-front/lang/front/ru.json b/opencti-platform/opencti-front/lang/front/ru.json index fe43d9f0dd3c..a43f7bef8b40 100644 --- a/opencti-platform/opencti-front/lang/front/ru.json +++ b/opencti-platform/opencti-front/lang/front/ru.json @@ -255,6 +255,7 @@ "An entity has left a selected PIR": "Сущность покинула выбранный PIR", "An entity is linked to an entity from a selected PIR": "Сущность связана с сущностью из выбранного PIR", "An enumeration of security platform type": "Перечисление типа платформы безопасности", + "An enumeration of SSH key types": "Перечисление типов ключей SSH", "An enumeration of Windows service start types": "Перечисление типов запуска служб Windows", "An enumeration of Windows service statuses": "Перечисление статусов служб Windows", "An enumeration of Windows service types": "Перечисление типов служб Windows", diff --git a/opencti-platform/opencti-front/lang/front/zh.json b/opencti-platform/opencti-front/lang/front/zh.json index bcc0a3896175..17ce9799ade5 100644 --- a/opencti-platform/opencti-front/lang/front/zh.json +++ b/opencti-platform/opencti-front/lang/front/zh.json @@ -255,6 +255,7 @@ "An entity has left a selected PIR": "一个实体离开了选定的 PIR", "An entity is linked to an entity from a selected PIR": "实体与所选 PIR 中的实体建立链接", "An enumeration of security platform type": "安全平台类型枚举", + "An enumeration of SSH key types": "SSH 密钥类型枚举", "An enumeration of Windows service start types": "Windows 服务启动类型枚举", "An enumeration of Windows service statuses": "Windows 服务状态枚举", "An enumeration of Windows service types": "Windows 服务类型枚举", diff --git a/opencti-platform/opencti-front/src/private/components/settings/VocabularyCategories.tsx b/opencti-platform/opencti-front/src/private/components/settings/VocabularyCategories.tsx index 4f8a64fb4e67..6d8e6742e643 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/VocabularyCategories.tsx +++ b/opencti-platform/opencti-front/src/private/components/settings/VocabularyCategories.tsx @@ -57,10 +57,15 @@ const VocabularyCategories = () => { isSortable: true, }, description: { - id: 'description', + id: t_i18n('description'), percentWidth: 60, isSortable: false, - render: (data: { category: VocabularyDefinition }) => defaultRender(data.category.description), + render: (data: { category: VocabularyDefinition }) => { + if (data.category.description) { + return defaultRender(t_i18n(`${data.category.description}`)); + } + return '-'; + }, }, }; From f0380e36fb14c6a51b559525492c78a24c48a3a9 Mon Sep 17 00:00:00 2001 From: Celine Sebe Date: Wed, 25 Feb 2026 17:02:03 +0100 Subject: [PATCH 2/3] [frontend]review --- .../src/private/components/settings/VocabularyCategories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opencti-platform/opencti-front/src/private/components/settings/VocabularyCategories.tsx b/opencti-platform/opencti-front/src/private/components/settings/VocabularyCategories.tsx index 6d8e6742e643..6209700bd665 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/VocabularyCategories.tsx +++ b/opencti-platform/opencti-front/src/private/components/settings/VocabularyCategories.tsx @@ -57,7 +57,7 @@ const VocabularyCategories = () => { isSortable: true, }, description: { - id: t_i18n('description'), + id: 'description', percentWidth: 60, isSortable: false, render: (data: { category: VocabularyDefinition }) => { From cc11bb08100e41682981cdd1bfabe38114fa9f0c Mon Sep 17 00:00:00 2001 From: Celine Sebe Date: Thu, 26 Feb 2026 10:43:07 +0100 Subject: [PATCH 3/3] [frontend]fix null --- .../src/private/components/settings/VocabularyCategories.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/opencti-platform/opencti-front/src/private/components/settings/VocabularyCategories.tsx b/opencti-platform/opencti-front/src/private/components/settings/VocabularyCategories.tsx index 6209700bd665..98b7f0978e91 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/VocabularyCategories.tsx +++ b/opencti-platform/opencti-front/src/private/components/settings/VocabularyCategories.tsx @@ -61,10 +61,7 @@ const VocabularyCategories = () => { percentWidth: 60, isSortable: false, render: (data: { category: VocabularyDefinition }) => { - if (data.category.description) { - return defaultRender(t_i18n(`${data.category.description}`)); - } - return '-'; + return defaultRender(data.category.description ? t_i18n(data.category.description) : undefined); }, }, };