Skip to content

fix: localize ticket detail UI - #3707

Open
detesterpaul wants to merge 2 commits into
frappe:developfrom
detesterpaul:fix/localize-ticket-ui-develop
Open

fix: localize ticket detail UI#3707
detesterpaul wants to merge 2 commits into
frappe:developfrom
detesterpaul:fix/localize-ticket-ui-develop

Conversation

@detesterpaul

Copy link
Copy Markdown

Summary

Route additional ticket-detail UI strings through the existing translation
helper so localized Helpdesk installations do not fall back to English for
common agent-facing actions and SLA details.

Changes

  • Translate Reply / Comment controls and comment editor labels
  • Translate ticket activity tabs (Activity, Emails, Comments, Calls)
  • Translate the fallback activity text viewed this
  • Translate SLA card labels and details
  • Replace the hardcoded Overdue by ${...} text with a placeholder-based
    translation string
  • Translate the on-hold SLA state

Why

Several common ticket-detail strings were still hardcoded in English even when
translations existed in the locale catalogue. This caused mixed-language UI on
localized installations.

Testing

Tested on:

  • Frappe 16.31.0
  • Helpdesk 1.29.0
  • Dutch (nl)

Verified that the affected labels render through the translation catalogue and
that the production frontend build succeeds.

@greptile-apps

greptile-apps Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5

The PR is not yet safe to merge because localized mobile view events remain incorrectly grouped.

The desktop comparison is fixed, but MobileTicketAgent still constructs translated “viewed this” content and compares it against the English literal.

Files Needing Attention: desk/src/components/ticket-agent/TicketActivityPanel.vue and desk/src/pages/ticket/MobileTicketAgent.vue

Prompt To Fix All With AI
### Issue 1
desk/src/components/ticket-agent/TicketActivityPanel.vue:218
**Mobile activity grouping stays untranslated**

When a mobile user views consecutive ticket-view events in a locale translating `viewed this`, the mobile activity path constructs translated content but compares it with the English literal, causing those events to be folded into a “+N changes” group.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Reviews (2): Last reviewed commit: "fix: preserve localized activity groupin..." | Re-trigger Greptile

Comment thread desk/src/components/ticket-agent/TicketActivityPanel.vue
@mergify

mergify Bot commented Aug 19, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

nextActivity &&
nextActivity.user === currentActivity.user &&
nextActivity.content !== "viewed this" &&
nextActivity.content !== __("viewed this") &&

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Mobile activity grouping stays untranslated

When a mobile user views consecutive ticket-view events in a locale translating viewed this, the mobile activity path constructs translated content but compares it with the English literal, causing those events to be folded into a “+N changes” group.

Knowledge Base Used: Desk Ticket UI

Prompt To Fix With AI
This is a comment left during a code review.
Path: desk/src/components/ticket-agent/TicketActivityPanel.vue
Line: 218

Comment:
**Mobile activity grouping stays untranslated**

When a mobile user views consecutive ticket-view events in a locale translating `viewed this`, the mobile activity path constructs translated content but compares it with the English literal, causing those events to be folded into a “+N changes” group.

**Knowledge Base Used:** [Desk Ticket UI](https://app.greptile.com/frappe/-/custom-context/knowledge-base/frappe/helpdesk/-/docs/desk-ticket-ui.md)

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

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