Skip to content

i18n: missing Instance translation for the app logs field label - #43312

Merged
ggazzo merged 3 commits into
RocketChat:developfrom
Kulraj69:fix-43290-app-logs-instance-label
Oct 30, 2026
Merged

ggazzo merged 3 commits into
RocketChat:developfrom
Kulraj69:fix-43290-app-logs-instance-label

Conversation

@Kulraj69

@Kulraj69 Kulraj69 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes

In the Marketplace app logs view, AppLogsItem passes the literal string 'Instance' as the AppsLogItemField label, so that label stayed English while its siblings (Total_time, Time, Event) go through t(). It now uses t('Instance'), a key that already exists in the base locale. A changeset is included.

Issue(s)

Fixes #43290

Steps to test or reproduce

  1. Set the interface language to Portuguese (Brazil).
  2. Go to Administration > Marketplace > an installed app > Logs and open an entry that has an instance id.
  3. Expected: the label reads "Instância" (Instance in packages/i18n/src/locales/pt-BR.i18n.json), like the neighbouring labels.

I could not run the component tests or the app here (they need the full monorepo install), so step 3 is the expected behaviour, not an observed run. What I did check: the file still transforms (npx esbuild AppLogsItem.tsx, exit 0), and the Instance key exists in en.i18n.json.

No automated test is added: the existing AppLogsItem.spec.tsx covers story accessibility, and I cannot run jest here to verify a new assertion. I can add a label assertion if you want one.

Further comments

dionisio-bot asks for a QA-assured label and a milestone; both look maintainer-side, so this PR is ready for triage.

Summary by CodeRabbit

  • Bug Fixes
    • The “Instance” label in Marketplace app logs now follows the selected language.

@Kulraj69
Kulraj69 requested a review from a team as a code owner October 29, 2026 19:30
@dionisio-bot

dionisio-bot Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

@changeset-bot

changeset-bot Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 32fd368

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cubic-dev-ai cubic-dev-ai Bot left a comment

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.

No issues found across 1 file

You’re at about 94% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].

View guided diff | Re-trigger cubic

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 84993154-c20e-44af-9660-791dd2313e7e
Commits

Reviewing files that changed from the base of the PR and between 6ee7f72 and 0ac5dd7.

Files selected for processing: 1
  • .changeset/app-logs-instance-label.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

Recent review details
Additional comments: 1
.changeset/app-logs-instance-label.md: 1

1-5: LGTM!

Walkthrough

The Marketplace app logs view now passes the instance field label through the translation function using the existing Instance key. A patch changeset records the fix.

Changes

Marketplace app logs

Layer / File(s) Summary
Translate the instance label
apps/meteor/client/views/marketplace/AppDetailsPage/tabs/AppLogs/AppLogsItem.tsx, .changeset/app-logs-instance-label.md
The instance field label now uses t('Instance') instead of a hard-coded string. A patch changeset describes the localization fix.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested labels: type: bug

Suggested reviewers: tassoevan

Merge Risk: Minimal · previous review 0ac5d

The Marketplace app logs Instance label is ready to merge with localized behavior.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check Passed Issue #43290 requires the Marketplace app logs "Instance" field label to use the existing translation key, so it displays the localized value like the sibling labels. The whole-PR diff (merge base to …
Out of Scope Changes check Passed The whole-PR diff contains one code change in AppLogsItem.tsx (one line) that implements the issue objective. The changeset .changeset/app-logs-instance-label.md is a patch note for the same fix a…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Title check Passed The title names the change: the Instance field label in Marketplace app logs now uses a translation key (t('Instance')) instead of a hard-coded string, so the label localizes. It matches the AppLogsIt…
Full details: Linked Issues check

Explanation

Issue #43290 requires the Marketplace app logs "Instance" field label to use the existing translation key, so it displays the localized value like the sibling labels. The whole-PR diff (merge base to reviewed head) changes AppLogsItem.tsx from label='Instance' to label={t('Instance')} on the AppsLogItemField rendered when props.instanceId is set. This matches the issue's expected implementation exactly. The sibling labels (Total_time, Time, Event) already use t(), so the label is now consistent with them. The issue and PR description state that the Instance key exists in en.i18n.json and pt-BR.i18n.json. This review did not independently read those locale files, so key existence rests on that statement. The issue text says an automated regression test was added. That statement describes completed work, not an acceptance criterion. The PR adds no test, and no coding requirement mandates one. Component tests were not run, so the rendered Portuguese output is not observed.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff contains one code change in AppLogsItem.tsx (one line) that implements the issue objective. The changeset .changeset/app-logs-instance-label.md is a patch note for the same fix and is related to this PR. No unrelated app-log behavior, translation data, or other Marketplace code appears in the reviewed summary. The change since the previous reviewed head does not alter the conclusion, because the whole-PR diff still shows only this label change.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

Full details: Title check

Explanation

The title names the change: the Instance field label in Marketplace app logs now uses a translation key (t('Instance')) instead of a hard-coded string, so the label localizes. It matches the AppLogsItem.tsx change and the added changeset, which describes the same fix. It is specific and scannable.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Errors were encountered while retrieving linked issues.

Errors: 1
  • JIRA integration encountered authorization issues. Please disconnect and reconnect the integration in the CodeRabbit UI.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dougfabris dougfabris changed the title fix: use the Instance translation for the app logs field label i18n: missing Instance translation for the app logs field label Oct 30, 2026
@dougfabris dougfabris added this to the 9.1.0 milestone Oct 30, 2026
@dougfabris dougfabris added the stat: QA assured Means it has been tested and approved by a company insider label Oct 30, 2026
@dionisio-bot dionisio-bot Bot added the stat: ready to merge PR tested and approved waiting for merge label Oct 30, 2026
@codecov

codecov Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.41%. Comparing base (e165dc9) to head (32fd368).
⚠️ Report is 37 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #43312      +/-   ##
===========================================
+ Coverage    72.37%   72.41%   +0.04%     
===========================================
  Files         5393     5393              
  Lines       232650   232776     +126     
  Branches     44533    44766     +233     
===========================================
+ Hits        168376   168571     +195     
+ Misses       59734    59683      -51     
+ Partials      4540     4522      -18     
Flag Coverage Δ
e2e 62.65% <0.00%> (-0.01%) ⬇️
e2e-api 49.29% <ø> (+0.35%) ⬆️
unit 72.19% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dougfabris dougfabris modified the milestones: 9.1.0, 9.0.0 Oct 30, 2026
@dionisio-bot dionisio-bot Bot removed the stat: ready to merge PR tested and approved waiting for merge label Oct 30, 2026
@dougfabris dougfabris modified the milestones: 9.0.0, 9.1.0 Oct 30, 2026
@dionisio-bot dionisio-bot Bot added the stat: ready to merge PR tested and approved waiting for merge label Oct 30, 2026
@ggazzo
ggazzo merged commit 366b369 into RocketChat:develop Oct 30, 2026
67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge type: bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants