Skip to content

Commit

Permalink
[frontend] Translation when creating a report(#6680)
Browse files Browse the repository at this point in the history
Signed-off-by: Celine Sebe <celine.sebe@filigran.io>
  • Loading branch information
CelineSebe committed Apr 16, 2024
1 parent 3ad8cfa commit a2de6cb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions opencti-platform/opencti-front/lang/front/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,7 @@
"N/A": "N/A",
"Name": "Name",
"name": "name",
"Name must be at least 2 characters": "Der Name muss mindestens 2 Zeichen lang sein",
"Narrative": "Erzählung",
"Narratives": "Erzählungen",
"Nationality": "Staatsangehörigkeit",
Expand Down
1 change: 1 addition & 0 deletions opencti-platform/opencti-front/lang/front/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,7 @@
"N/A": "N/A",
"Name": "Name",
"name": "name",
"Name must be at least 2 characters": "Name must be at least 2 characters",
"Narrative": "Narrative",
"Narratives": "Narratives",
"Nationality": "Nationality",
Expand Down
1 change: 1 addition & 0 deletions opencti-platform/opencti-front/lang/front/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,7 @@
"N/A": "N/A",
"Name": "Nombre",
"name": "Nombre",
"Name must be at least 2 characters": "El nombre debe tener al menos 2 caracteres",
"Narrative": "Narrativa",
"Narratives": "Narrativas",
"Nationality": "Nacionalidad",
Expand Down
1 change: 1 addition & 0 deletions opencti-platform/opencti-front/lang/front/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,7 @@
"N/A": "N/A",
"Name": "Nom",
"name": "Nom",
"Name must be at least 2 characters": "Le nom doit avoir au moins deux caractères",
"Narrative": "Narratif",
"Narratives": "Narratifs",
"Nationality": "Nationalité",
Expand Down
1 change: 1 addition & 0 deletions opencti-platform/opencti-front/lang/front/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,7 @@
"N/A": "該当なし",
"Name": "名前",
"name": "名前",
"Name must be at least 2 characters": "名前は少なくとも2文字必要です。",
"Narrative": "ナラティブ",
"Narratives": "ナラティブ",
"Nationality": "国籍",
Expand Down
1 change: 1 addition & 0 deletions opencti-platform/opencti-front/lang/front/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,7 @@
"N/A": "不适用",
"Name": "名称",
"name": "名称",
"Name must be at least 2 characters": "名称必须至少为2个字符",
"Narrative": "叙述",
"Narratives": "叙述",
"Nationality": "国籍",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const ReportCreationForm: FunctionComponent<ReportFormProps> = ({
const navigate = useNavigate();
const [mapAfter, setMapAfter] = useState<boolean>(false);
const basicShape = {
name: Yup.string().min(2).required(t_i18n('This field is required')),
name: Yup.string().min(2, t_i18n('Name must be at least 2 characters')).required(t_i18n('This field is required')),
published: Yup.date()
.typeError(t_i18n('The value must be a datetime (yyyy-MM-dd hh:mm (a|p)m)'))
.required(t_i18n('This field is required')),
Expand Down

0 comments on commit a2de6cb

Please sign in to comment.