Skip to content

fix(nodes): correct singular hop label in connection status#1055

Open
nikolya-prodigy wants to merge 1 commit into
meshtastic:mainfrom
nikolya-prodigy:fix/ru-hop-singular
Open

fix(nodes): correct singular hop label in connection status#1055
nikolya-prodigy wants to merge 1 commit into
meshtastic:mainfrom
nikolya-prodigy:fix/ru-hop-singular

Conversation

@nikolya-prodigy
Copy link
Copy Markdown
Contributor

@nikolya-prodigy nikolya-prodigy commented May 8, 2026

Summary

  • fix singular/plural selection for hop count in Nodes connection column
  • use existing translation key unit.hop.one for singular form
  • keep plural form on unit.hop.plural

Bug

For hopsAway = 1, UI could render the wrong key/form in Russian (for example: 1 прыжков ...).

Change

In packages/web/src/pages/Nodes/index.tsx:

  • (node.hopsAway ?? 0 > 1) -> (node.hopsAway ?? 0) > 1
  • t("unit.hops_one") -> t("unit.hop.one")

@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

@nikolya-prodigy is attempting to deploy a commit to the Meshtastic Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants