Skip to content

Conversation

@amannn
Copy link
Owner

@amannn amannn commented Jan 1, 2026

Corrects message description merging logic to ensure "first description wins" behavior.

The previous merging logic for message descriptions would overwrite an existing description if a later-processed file also had one, violating the intended "first description wins" rule. This change ensures that if a description already exists from a previously processed file, it is preserved.


Open in Cursor Open in Web

Previously, when a message ID appeared in multiple files with different descriptions,
the description from the last processed file would overwrite earlier ones.
This change updates the merging logic to preserve the existing description if present,
ensuring that the first description encountered (e.g. from the first file processed)
is used.

This aligns with the requirement "first description wins".
The test case expectation is updated to match "Description from FileY" (FileY processed first).
@cursor
Copy link

cursor bot commented Jan 1, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link

vercel bot commented Jan 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
next-intl-docs Ready Ready Preview, Comment Jan 1, 2026 9:52am
next-intl-example-app-router Ready Ready Preview, Comment Jan 1, 2026 9:52am
next-intl-example-app-router-without-i18n-routing Ready Ready Preview, Comment Jan 1, 2026 9:52am

@amannn amannn changed the title Extractor description logic fix fix: Extractor description logic fix Jan 1, 2026
@amannn amannn closed this Jan 1, 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.

3 participants