Skip to content

Conversation

corwintines
Copy link
Member

@corwintines corwintines commented Aug 12, 2025

  • Sets /roadmap page up for translation

Preview link

https://deploy-preview-16057--ethereumorg.netlify.app/en/roadmap

Copy link

netlify bot commented Aug 12, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit b012211
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/68ae5def75466c00080f4888
😎 Deploy Preview https://deploy-preview-16057--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: 50 (no change from production)
Accessibility: 96 (🟢 up 6 from production)
Best Practices: 92 (no change from production)
SEO: 100 (🟢 up 8 from production)
PWA: 59 (🟢 up 6 from production)
View the detailed breakdown and full score reports

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

@github-actions github-actions bot added content 🖋️ This involves copy additions or edits tooling 🔧 Changes related to tooling of the project translation 🌍 This is related to our Translation Program labels Aug 12, 2025
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.

Looking good @corwintines! Working as-is, left a couple comments to potentially iterate on

Comment on lines +182 to +188
// Legacy export for backward compatibility - uses hardcoded English strings
export const releasesData: Release[] = getReleasesData((key: string) => {
// This is a fallback that returns the key itself if translations aren't available
// In practice, this should not be used in the actual app
console.warn(`Translation key ${key} used without translation function`)
return key
})
Copy link
Member

Choose a reason for hiding this comment

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

Do we need this?

const locale = useLocale()
const { t } = useTranslation("page-roadmap")

const releasesData = useMemo(() => getReleasesData(t), [t])
Copy link
Member

Choose a reason for hiding this comment

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

Potentially out-of-scope for these changes, but our "data" file seems more like a hook... we could consider refactoring getReleasesData to a hook, with the other hooks embedded

ie create app/[locale]/roadmap/hooks/useReleases.tsx, which could contain everything in src/data/roadmap/releases.tsx, as well as the other client-side hooks here, returning everything we need:

const {
  releasesData,
  startIndex,
  setApi1,
  setApi2,
  getStatus,
  getDisplayDate,
  currentIndex,
  t
} = useReleases()

@wackerow
Copy link
Member

Noticed our use of htmr here was bypassing our native Link component logic, rendering simple a elements which didn't include the external link arrow, and they weren't opening in new tabs... Pushed a commit to refactor using Translation component instead.

Also noticed the glossary tooltip links were not properly render the term/definition strings in the popup so I converted to a simple Link for now—can further debug that separately... Letting it build then will pull this in.

@wackerow wackerow merged commit 89bea65 into dev Aug 27, 2025
6 checks passed
@wackerow wackerow deleted the setupRoadmapTranslation branch August 27, 2025 03:01
This was referenced Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants