Skip to content

Commit

Permalink
🐛 Fikset i18n for textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Jun 28, 2023
1 parent 45970ac commit 718b320
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-cups-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@navikt/ds-react": patch
---

Textarea: Fikset i18n for counter
4 changes: 2 additions & 2 deletions @navikt/core/react/src/form/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ export const Counter = ({ maxLength, currentLength, size, i18n }) => {
size={size}
>
{difference < 0
? `${Math.abs(difference)} ${i18n?.counterLeft ?? "tegn for mye"}`
: `${difference} ${i18n?.counterTooMuch ?? "tegn igjen"}`}
? `${Math.abs(difference)} ${i18n?.counterTooMuch ?? "tegn for mye"}`
: `${difference} ${i18n?.counterLeft ?? "tegn igjen"}`}
</BodyShort>
);
};
Expand Down

0 comments on commit 718b320

Please sign in to comment.