From 6e49de805fce158c331b8db4192bbad9904fb760 Mon Sep 17 00:00:00 2001 From: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:31:37 +0100 Subject: [PATCH] Textarea: translations (#3302) --- .../src/form/form-progress/FormProgress.tsx | 4 +- .../core/react/src/form/textarea/Textarea.tsx | 18 ++++----- .../src/form/textarea/TextareaCounter.tsx | 38 +++++++++++++++---- .../src/form/textarea/textarea.stories.tsx | 7 +--- .../react/src/progress-bar/ProgressBar.tsx | 8 ++-- .../react/src/util/i18n/i18n.context.test.tsx | 10 ++--- .../core/react/src/util/i18n/i18n.context.ts | 10 ++--- .../core/react/src/util/i18n/locales/en.ts | 5 +++ .../core/react/src/util/i18n/locales/nb.ts | 6 +++ .../core/react/src/util/i18n/locales/nn.ts | 5 +++ 10 files changed, 68 insertions(+), 43 deletions(-) diff --git a/@navikt/core/react/src/form/form-progress/FormProgress.tsx b/@navikt/core/react/src/form/form-progress/FormProgress.tsx index 40bae1eb71..2bc42de80d 100644 --- a/@navikt/core/react/src/form/form-progress/FormProgress.tsx +++ b/@navikt/core/react/src/form/form-progress/FormProgress.tsx @@ -105,9 +105,7 @@ export const FormProgress = forwardRef( - {translate("step", { - replacements: { activeStep, totalSteps }, - })} + {translate("step", { activeStep, totalSteps })}