From b36dddd2d28c4860384a694ed1b84170af9d5450 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Sat, 5 Oct 2024 07:21:29 +0100 Subject: [PATCH] fix(frontend): NLU Training I18n translation issue --- .../src/components/nlp/components/NlpTrainForm.tsx | 2 +- frontend/src/hooks/useTranslate.tsx | 11 +++++++---- frontend/src/i18n/i18n.types.ts | 7 ++++++- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/nlp/components/NlpTrainForm.tsx b/frontend/src/components/nlp/components/NlpTrainForm.tsx index e157f71c..cb9d595f 100644 --- a/frontend/src/components/nlp/components/NlpTrainForm.tsx +++ b/frontend/src/components/nlp/components/NlpTrainForm.tsx @@ -435,7 +435,7 @@ const NlpDatasetSample: FC = ({ > {!selection?.value ? t("button.select_some_text") - : t("button.add_nlp_entity", { defaultValue: selection.value })} + : t("button.add_nlp_entity", { 0: selection.value })}