Skip to content

Commit

Permalink
Added translations for waves reply form button
Browse files Browse the repository at this point in the history
  • Loading branch information
dkildar committed Jan 6, 2025
1 parent 952b528 commit cc5932f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -2543,6 +2543,8 @@
"who-to-follow": "Who to follow",
"who-to-follow-hint": "Want to be here too? Be active and track yourself in Discover/Leaderboards.",
"reply-to": "Replying to",
"edit-wave": "Edit wave"
"edit-wave": "Edit wave",
"reply": "Reply",
"replying": "Replying..."
}
}
6 changes: 6 additions & 0 deletions src/features/waves/components/wave-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,17 @@ const WaveFormComponent = ({
(text?.length ?? 0) <= 255 &&
i18next.t("decks.threads-form.login-and-publish")}
{activeUser &&
!replySource &&
!entry &&
(text?.length ?? 0) <= 255 &&
(isPending
? i18next.t("decks.threads-form.publishing")
: i18next.t("decks.threads-form.publish"))}
{activeUser &&
replySource &&
!entry &&
(text?.length ?? 0) <= 255 &&
(isPending ? i18next.t("waves.replying") : i18next.t("waves.reply"))}
{(text?.length ?? 0) > 255 &&
!entry &&
i18next.t("decks.threads-form.create-regular-post")}
Expand Down

0 comments on commit cc5932f

Please sign in to comment.