fix: correct translation keys for developers learning tools page meta title#15732
Conversation
… title Fix broken page title that was showing "page-developers-learning-tools-meta-title" instead of "Developer learning tools". The issue was caused by incorrect translation key syntax in the generateMetadata function. The namespace was being double-referenced, causing the translation to fail and display the raw key instead of the translated text. - Remove namespace prefix from translation keys since namespace is already set in getTranslations - Change "page-developers-learning-tools:page-learning-tools-meta-title" to "page-learning-tools-meta-title" - Change "page-developers-learning-tools:page-learning-tools-meta-desc" to "page-learning-tools-meta-desc" Fixes #15731 Co-authored-by: Jakub <konopkja@users.noreply.github.com>
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@coderabbitai can you review |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain@konopkja I'll review this PR for you. Let me gather the information about the changes first. 🏁 Script executed: Length of output: 1875 Perfect! I can see this is a straightforward i18n fix. Let me examine the file structure and translation patterns to ensure this change is consistent with the codebase. 🏁 Script executed: Length of output: 17796 ✅ Excellent Fix!@konopkja This is a perfect fix for the i18n issue. I can confirm that: The Problem: The page was showing the raw translation key The Root Cause:
The Fix is Correct: Your changes align perfectly with the established codebase patterns. I verified this by checking other similar files: // ✅ Correct pattern used everywhere else:
const t = await getTranslations({ locale, namespace: "page-stablecoins" })
title: t("page-stablecoins-meta-title") // No namespace prefix
// ❌ The original problematic code:
const t = await getTranslations({ locale, namespace: "page-developers-learning-tools" })
title: t("page-developers-learning-tools:page-learning-tools-meta-title") // Double namespaceCode Quality:
The PR is ready to merge! This will fix the broken page title and make it display "Developer learning tools" as intended. 🐰 Happy to see a clean i18n fix that follows the codebase patterns perfectly! |

Fix broken page title that was showing "page-developers-learning-tools-meta-title" instead of "Developer learning tools".
The issue was caused by incorrect translation key syntax in the generateMetadata function. The namespace was being double-referenced, causing the translation to fail and display the raw key instead of the translated text.
Fixes #15731
Generated with Claude Code