Skip to content

Bug: Instance label in the Marketplace app-logs view is not translated #43290

Closed

Description

@lakshaydevoo-arch

Description:

In the Marketplace app details → Logs tab, each log row shows a set of labelled fields. Three of those labels ("Total time", "Time", "Event") are passed through the translator, but the "Instance" field's label is a hardcoded string literal.

AppLogsItemField renders its label prop directly (no t() call), so the caller is responsible for translating it. Because AppLogsItem.tsx passes label='Instance', the raw string is injected into the DOM and the existing "Instance" translation key is never used.

Non-English users therefore always see the English word "Instance" (e.g. Portuguese (Brazil) should show "Instância"), unlike the sibling labels.

Steps to reproduce:

  1. Set the interface language to Portuguese (Brazil).
  2. Navigate to Administration → Marketplace → an installed app → Logs.
  3. Find a log entry containing an instance ID.
  4. Observe that the field label displays "Instance" instead of the localized "Instância".

Expected behavior:

The "Instance" field label should use the existing translation key and display the appropriate localized value, consistent with the other log field labels.

Actual behavior:

The field label remains "Instance" regardless of the selected interface language.

Server Setup Information:

  • Version of Rocket.Chat Server: Development source (version not specified)

The issue was identified through source-code inspection and reproduced using an automated component test. No running server deployment was used for verification.

Client Setup Information:

  • Testing environment: Jest / React Testing Library
  • Operating System: macOS

Additional context:

The issue originates in:

apps/meteor/client/views/marketplace/AppDetailsPage/tabs/AppLogs/AppLogsItem.tsx

Current implementation:

label='Instance'

Expected implementation:

label={t('Instance')}

The translation key already exists in:

  • packages/i18n/src/locales/en.i18n.json
  • packages/i18n/src/locales/pt-BR.i18n.json

AppLogsItemField renders the provided label directly, while the adjacent field labels already use t().

An automated regression test was added to verify that the "Instance" label uses the translation function. The test passes with the fix applied.

I have implemented the fix and can submit a pull request referencing this issue.

Relevant logs:

No runtime errors are associated with this issue. The problem is caused by a hardcoded label in the frontend component.

Activity

  1. punamkumari-hash commented on Oct 30, 2026

    @punamkumari-hash

    Hi! That's great. Please go ahead and work on this issue. Make sure you understand the problem thoroughly and explore a suitable solution. All the best!

  2. lakshaydevoo-arch commented on Oct 30, 2026

    @lakshaydevoo-arch
    ContributorAuthor

    Hi @punamkumari-hash already pushed a PR and waiting for maintainers to review.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions