Skip to content

Conversation

@pettinarip
Copy link
Member

Description

Removes support for pcm (Nigerian Pidgin) and fil (Filipino) locales and adds temporary 307 redirects to the default locale.

  • adds temp redirects to root equivalents
  • deletes translation files

@github-actions github-actions bot added config ⚙️ Changes to configuration files content 🖋️ This involves copy additions or edits tooling 🔧 Changes related to tooling of the project translation 🌍 This is related to our Translation Program labels Dec 5, 2025
@netlify
Copy link

netlify bot commented Dec 5, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 9e7537c
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/693705758b504a0008490e11
😎 Deploy Preview https://deploy-preview-16804--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 45 (🔴 down 13 from production)
Accessibility: 94 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 99 (no change 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.

@pettinarip pettinarip force-pushed the exclude-fil-pcm-b8f83 branch from 0f4adc2 to 0a6b18e Compare December 8, 2025 13:37
@pettinarip pettinarip marked this pull request as ready for review December 8, 2025 13:38
corwintines
corwintines previously approved these changes Dec 8, 2025
Comment on lines -166 to -167
{ source: "/no/:path*", destination: "/nb/:path*", permanent: true },
{ source: "/ph/:path*", destination: "/fil/:path*", permanent: true },
Copy link
Member Author

Choose a reason for hiding this comment

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

@corwintines @wackerow these redirects for deprecated locales (/pcm, /fil, /ph) and the Norwegian alias (/no → /nb) were working fine locally but not on Netlify.

The reson is that, on Netlify Edge, the next-intl middleware runs before Next.js processes the redirects in next.config.js. So when someone hit /pcm/some-page, the middleware intercepted it first, didn't recognize pcm as a valid locale, and returned a 404 instead of redirecting to the English version.

By handling these locale redirects directly in the middleware (before next-intl does its thing), we ensure they work consistently everywhere — local dev, Netlify preview deploys, and prod.

Copy link
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.

Lgtm! Working well in Netlify preview... ph fil and pcm being stripped out appropriately, and any further redirects for paths are being applied. /no going to /nb along with any other applicable redirects. 👍

@pettinarip pettinarip merged commit 3565072 into master Dec 9, 2025
15 checks passed
@pettinarip pettinarip deleted the exclude-fil-pcm-b8f83 branch December 9, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config ⚙️ Changes to configuration files content 🖋️ This involves copy additions or edits tooling 🔧 Changes related to tooling of the project translation 🌍 This is related to our Translation Program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants