-
Notifications
You must be signed in to change notification settings - Fork 524
Add support for additional languages in Framer rewrites #6828
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
Add support for additional languages in Framer rewrites #6828
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6828 +/- ##
=======================================
Coverage 55.18% 55.18%
=======================================
Files 896 896
Lines 56953 56953
Branches 3946 3946
=======================================
Hits 31429 31429
Misses 25428 25428
Partials 96 96
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
closes: TOOL-4244 # Add support for additional languages in Framer rewrites This PR adds support for additional languages in the Framer rewrite paths. It introduces a new constant `FRAMER_ADDITIONAL_LANGUAGES` with Spanish ("es") as the initial additional language. The rewrites configuration has been updated to: - Keep the existing English paths - Generate additional paths for each language in the format `/{lang}{path}` - Direct these paths to the corresponding landing page URLs This change enables proper routing for localized landing pages.
11f9258
to
525e603
Compare
closes: TOOL-4244
Add support for additional languages in Framer rewrites
This PR adds support for additional languages in the Framer rewrite paths. It introduces a new constant
FRAMER_ADDITIONAL_LANGUAGES
with Spanish ("es") as the initial additional language.The rewrites configuration has been updated to:
/{lang}{path}
This change enables proper routing for localized landing pages.
PR-Codex overview
This PR focuses on enhancing language support in the
next.config.ts
file by adding additional languages to the Framer rewrite paths for URLs.Detailed summary
FRAMER_ADDITIONAL_LANGUAGES
with the value["es"]
.flatMap
to create rewrite paths for both the default and additional languages.