Skip to content

fix(docs): use updated translation bundle paths to generate translations.json #11219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented Jan 7, 2025

Related Issue: #10731

Summary

Updates generateT9nDocsJSON.ts to reference the updated translations bundle file name (see #11054).

@jcfranco jcfranco requested a review from benelan as a code owner January 7, 2025 20:09
@jcfranco jcfranco added the no changelog entry Use the commit override to avoid a changelog entry label Jan 7, 2025
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Jan 7, 2025
@jcfranco jcfranco added the skip visual snapshots Pull requests that do not need visual regression testing. label Jan 7, 2025
Copy link
Contributor

@anveshmekala anveshmekala left a comment

Choose a reason for hiding this comment

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

🥇

@@ -24,7 +24,7 @@
Object.keys(messagesFileMain).forEach((key) => (data[component][key] = {}));

const messagesFilenames = (await readdir(t9nPath, { withFileTypes: true })).map((dirent) => dirent.name);
const messagesFilenameRegex = new RegExp(`${component}\\.t9n\\.(.*)\\.json`);
const messagesFilenameRegex = new RegExp(`messages\\.(.*)\\.json`);
Copy link
Contributor

Choose a reason for hiding this comment

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

Sidenote: should have been caught here #11054.

Is there a way to add a test to assert this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently, we don’t have tests for our support files/scripts, but we could explore adding something like output snapshot diffing, similar to the design tokens. Open to ideas here. Could you open a follow-up issue for this?

@jcfranco jcfranco merged commit dce5635 into dev Jan 7, 2025
22 of 23 checks passed
@jcfranco jcfranco deleted the jcfranco/10731-fix-translations-json-doc branch January 7, 2025 20:55
benelan pushed a commit that referenced this pull request Feb 8, 2025
…ions.json` (#11219)

**Related Issue:** #10731

## Summary

Updates `generateT9nDocsJSON.ts` to reference the updated translations
bundle file name (see
#11054).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. no changelog entry Use the commit override to avoid a changelog entry skip visual snapshots Pull requests that do not need visual regression testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants