Skip to content
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

Fix i18n in revalidated paths in Netlify #14178

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Fix i18n in revalidated paths in Netlify #14178

merged 1 commit into from
Oct 17, 2024

Conversation

pettinarip
Copy link
Member

After upgrading @netlify/plugin-nextjs #14175, the translations stop working on pages that we revalidate, as it seems that next-i18next couldn't find the correct location for our translations.

Description

This PR fixes the problem by using path.resolve to resolve the locale path as described in i18next/next-i18next#1552 (comment)

Copy link

netlify bot commented Oct 17, 2024

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit b759fa7
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/671112945701d2000807b7da
😎 Deploy Preview https://deploy-preview-14178--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: 47 (🔴 down 6 from production)
Accessibility: 93 (no change from production)
Best Practices: 89 (🔴 down 9 from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

@corwintines corwintines merged commit 0f16955 into dev Oct 17, 2024
6 checks passed
@corwintines corwintines deleted the fix-i18n branch October 17, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants