Skip to content

Commit

Permalink
[frontend] refact
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 committed Jul 24, 2024
1 parent 5d466b7 commit 12d4d46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { ExpectationInput } from './Expectation';

export const infoMessage = (type: string, t: (key: string) => string) => {
if (type === 'ARTICLE') {
return t('This expectation is handled automatically by the platform and triggered when team reads articles');
return t('This expectation is handled automatically by the platform and triggered when target reads the articles');
}
return '';
};
Expand Down
4 changes: 2 additions & 2 deletions openbas-front/src/utils/Localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ const i18n = {
'Each team should submit a text response':
'Chaque équipe doit soumettre une réponse texte',
// -- Expectation start --
'This expectation is handled automatically by the platform and triggered when team reads articles': 'Cet attendu est géré automatiquement par la plateforme et déclenché lorsque une équipe lit les articles',
'This expectation is handled automatically by the platform and triggered when target reads the articles': 'Cet attendu est géré automatiquement par la plateforme et déclenché lorsque une cible lit les articles',
'Add expectations': 'Ajouter des attendus',
'Add expectation in this inject': 'Ajouter des attendus dans ce stimuli',
'Update the expectation': 'Modifier l\'attendu',
Expand Down Expand Up @@ -1198,7 +1198,7 @@ const i18n = {
REGEXP: 'Regular expression',
'-': 'None',
MANUAL: 'Manual',
ARTICLE: 'Automatic - Triggered when team reads articles',
ARTICLE: 'Automatic - Triggered when target reads the articles',
DETECTION: 'Automatic - Detection: Triggered when inject is processed',
PREVENTION: 'Automatic - Prevention: Triggered when inject is processed',
TYPE_ARTICLE: 'Article',
Expand Down

0 comments on commit 12d4d46

Please sign in to comment.