Skip to content

tailscale: translate the peer "last seen" time - #3922

Merged
purian23 merged 1 commit into
duxlabs-dev:masterfrom
Conava:tailscale-last-seen-i18n
Oct 26, 2026
Merged

purian23 merged 1 commit into
duxlabs-dev:masterfrom
Conava:tailscale-last-seen-i18n

Conversation

@Conava

@Conava Conava commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Description

The "last seen" time of offline Tailscale peers in the Control Center was always English ("last seen 5 minutes ago"), because the go backend built the text, instead of handing it over to QML like everything else. It now sends the timestamp, and the widget formats it as "5m ago", "3h ago" or "2d ago". Minutes reuse the existing "%1m ago" term, hours and days add two new ones.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dlx-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

The backend formatted lastSeen as English text ("5 minutes ago"), which
the Control Center showed as is in every language. Send the timestamp
instead and format it in the widget as "5m ago", "3h ago" or "2d ago".
Minutes reuse the existing "%1m ago" term; hours and days add two.
@purian23
purian23 merged commit 0691242 into duxlabs-dev:master Oct 26, 2026
4 checks passed
bbedward pushed a commit that referenced this pull request Oct 26, 2026
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