Skip to content

fix(intl-pipeline): support directory paths in TARGET_PATH#18062

Merged
wackerow merged 1 commit into
devfrom
intl-pipeline-v7-1
Apr 28, 2026
Merged

fix(intl-pipeline): support directory paths in TARGET_PATH#18062
wackerow merged 1 commit into
devfrom
intl-pipeline-v7-1

Conversation

@myelinated-wackerow
Copy link
Copy Markdown
Collaborator

Summary

Restores historical behavior: passing a directory as target_path (e.g. public/content/videos/) now expands to all .md files under it (or .json files under src/intl/en/) and translates each. Previously the pipeline tried readFileSync on the directory and threw EISDIR.

Test plan

  • Dispatch intl-pipeline.yml with target_path=public/content/videos/, single locale → expansion logged, all files translated.
  • Single-file target_path (existing behavior) still works.
  • Comma-separated mix of files + directories works.

Generated by Claude Opus 4.7

Restores historical behavior: passing a directory (e.g. public/content/videos/) now expands to all .md files under it (or .json files under src/intl/en/) and translates each. Previously the pipeline tried readFileSync on the directory and threw EISDIR.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: wackerow <54227730+wackerow@users.noreply.github.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 28, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit eb3a645
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/69f1367f1a864e0008db9afa
😎 Deploy Preview https://deploy-preview-18062.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 75 (🟢 up 26 from production)
Accessibility: 93 (no change from production)
Best Practices: 100 (no change from production)
SEO: 98 (🔴 down 1 from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the tooling 🔧 Changes related to tooling of the project label Apr 28, 2026
Copy link
Copy Markdown
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

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

cc: @pettinarip pulling this patch in -- "directory" approach was lost in the migration (only comma separated files were working) -- this restores that functionality.

@wackerow wackerow merged commit 9e5ab55 into dev Apr 28, 2026
10 of 11 checks passed
@wackerow wackerow deleted the intl-pipeline-v7-1 branch April 28, 2026 22:37
@wackerow wackerow mentioned this pull request May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling 🔧 Changes related to tooling of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants