Skip to content

fix: simplify i18n extraction pipeline#812

Merged
brian-smith-tcril merged 1 commit into
openedx:frontend-basefrom
brian-smith-tcril:simplify-i18n-extraction
Mar 27, 2026
Merged

fix: simplify i18n extraction pipeline#812
brian-smith-tcril merged 1 commit into
openedx:frontend-basefrom
brian-smith-tcril:simplify-i18n-extraction

Conversation

@brian-smith-tcril
Copy link
Copy Markdown
Contributor

Summary

  • Removes the i18n.concat step from make extract_translations
  • Removes transifex_utils and transifex_temp Makefile variables
  • Bumps @openedx/frontend-base peer dep to ^1.0.0-alpha.16

Ports openedx/frontend-app-authn#1656@openedx/frontend-base alpha.16+ outputs translation data directly to src/i18n/transifex_input.json, eliminating the need for a separate concat step.

Log

Repo: frontend-app-learner-dashboard — branch simplify-i18n-extraction (off frontend-base)

Goal: Port openedx/frontend-app-authn#1656 — remove the i18n.concat step from make extract_translations now that @openedx/frontend-base alpha.16+ outputs directly to src/i18n/transifex_input.json.

Changes

Makefile:

  • Removed transifex_utils and transifex_temp variables
  • Removed i18n.concat target
  • Removed rm -rf $(transifex_temp) from i18n.extract
  • Updated extract_translations to drop the i18n.concat dependency

package.json:

  • Bumped @openedx/frontend-base peer dep: ^1.0.0-alpha.14^1.0.0-alpha.16

package-lock.json:

  • Regenerated via nvm use && npm install (Node v24)

Verification

Ran make extract_translations — succeeded and produced src/i18n/transifex_input.json (13K, flat key-value format) without the concat step.

Compared output against master using jq -r 'keys[]':

  • One key difference: master has learner-dash.error-page-message, our branch does not
  • Confirmed the key doesn't exist anywhere in the frontend-base branch source — it's legitimately absent, not a pipeline bug
  • All other keys match; difference is expected given the branches have diverged

Also verified that make extract_translations on the frontend-base branch (without our fix) errors at the i18n.concat step with Error: Found no messages, confirming the fix is necessary.

Commit

2e8b1b5 — fix: simplify i18n extraction pipeline

🤖 Generated with Claude Code

frontend-base alpha.16+ outputs translation data directly to
src/i18n/transifex_input.json, so the separate i18n.concat step
and transifex-utils dependency are no longer needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@arbrandes arbrandes left a comment

Choose a reason for hiding this comment

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

👍🏼

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (frontend-base@18f3619). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff                @@
##             frontend-base     #812   +/-   ##
================================================
  Coverage                 ?   90.36%           
================================================
  Files                    ?      152           
  Lines                    ?     1287           
  Branches                 ?      275           
================================================
  Hits                     ?     1163           
  Misses                   ?      119           
  Partials                 ?        5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

@brian-smith-tcril brian-smith-tcril merged commit 4b636d0 into openedx:frontend-base Mar 27, 2026
6 checks passed
@openedx-semantic-release-bot
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0-alpha.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants