feat: frontend-base i18n support#824
Merged
arbrandes merged 3 commits intoApr 9, 2026
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## frontend-base #824 +/- ##
================================================
Coverage ? 90.36%
================================================
Files ? 152
Lines ? 1287
Branches ? 267
================================================
Hits ? 1163
Misses ? 119
Partials ? 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Rename src/i18n/index.js → index.ts (project uses TypeScript) - Replace placeholder messages object with clean re-export from ./messages - Add src/i18n/messages.d.ts type stub so TypeScript is satisfied before translations:pull has been run - Add translations:pull npm script (backed by openedx translations:pull) - Replace old atlas-based pull_translations Makefile target with npm run translations:pull, passing ATLAS_OPTIONS through - Remove unused intl_imports, i18n, ATLAS_EXTRA_SOURCES, and ATLAS_EXTRA_INTL_IMPORTS Makefile variables - Remove detect_changed_source_translations Makefile target (unused by any CI workflow, extract_translations, or pull_translations) - Add src/i18n/messages.ts, src/i18n/messages/, and src/i18n/site-messages/index.ts to .gitignore (generated files) - Update package-lock to resolve @openedx/frontend-base to 1.0.0-alpha.23 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
frontend-base i18n support
arbrandes
approved these changes
Apr 9, 2026
|
🎉 This PR is included in version 1.0.0-alpha.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four changes to wire up
frontend-basei18n support in this app, per the migration guide:1. Add
atlasTranslationstopackage.jsonAdds an
atlasTranslationsfield so that sites usingopenedx translations:pullcan resolve and pull this app's translations transitively, and so the app can pull its own translations when running in dev mode.2. Switch
pull_translationsto useopenedx translations:pullReplaces the old Makefile atlas pull commands with
npm run translations:pull(backed byopenedx translations:pull), passingATLAS_OPTIONSthrough. Also removes the unusedintl_imports,i18n,ATLAS_EXTRA_SOURCES, andATLAS_EXTRA_INTL_IMPORTSMakefile variables and thedetect_changed_source_translationstarget (confirmed unused by any CI workflow or translation-related target).3. Add
src/i18n/index.tsandsrc/i18n/messages.d.tsRenames
src/i18n/index.js→index.ts(the project uses TypeScript) and replaces the placeholder messages object with a clean re-export from./messages. Adds amessages.d.tstype declaration stub so TypeScript is satisfied beforetranslations:pullhas been run.4. Remove
App.messagesfromsrc/app.tsRemoves the
messagesimport and field from the app config —App.messageswas removed from theApptype in frontend-base. Translations are now handled by the frontend-base i18n pipeline viasite.i18n.Before merging
feat: add(landed as 1.0.0-alpha.23)translations:CLI commands and update runtime i18n integration frontend-base#205 must land firstnpm run dev(the app's own dev site) can pull and load translations correctly🤖 Generated with Claude Code