Skip to content

Commit

Permalink
Merge pull request #1427 from nsbno/notification-text
Browse files Browse the repository at this point in the history
Add text for multiple notifications
  • Loading branch information
hanrog authored Dec 19, 2024
2 parents 549e445 + 89d1702 commit a23c364
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/warm-beans-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vygruppen/spor-react": patch
---

Text for multiple notifications
4 changes: 2 additions & 2 deletions packages/spor-react/src/alert/ServiceAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ const texts = createTexts({
notification: (notification) => {
const numNotification = Number(notification);
return {
nb: `${numNotification} varsel`,
nn: `${numNotification} varsel`,
nb: `${numNotification} ${numNotification > 1 ? "varsler" : "varsel"}`,
nn: `${numNotification} ${numNotification > 1 ? "varslar" : "varsel"}`,
sv: `${numNotification} ${numNotification > 1 ? "underrättelser" : "underrättelse"}`,
en: `${numNotification} ${numNotification > 1 ? "notifications" : "notification"}`,
};
Expand Down

0 comments on commit a23c364

Please sign in to comment.