feat(i18n): add privacy policy and terms translations#173
Conversation
- Add Privacy Policy translations (uk/en/pl) - Add Terms & Conditions translations (uk/en/pl) - Create /privacy and /terms pages with proper i18n routing - Add legal pages navigation links - Ensure GDPR compliance across all language versions
✅ Deploy Preview for develop-devlovers ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📝 WalkthroughWalkthroughAdds server-side metadata generation and full internationalization support to legal pages (Privacy Policy and Terms of Service), converting page components and layout components to async functions that fetch translations from legal, legal.privacy, and legal.terms namespaces, with comprehensive legal content added to translation files for English, Polish, and Ukrainian. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant NextJS as Next.js Server
participant i18n as Translation System
Client->>NextJS: Request /privacy-policy (with locale)
rect rgba(100, 150, 200, 0.5)
Note over NextJS,i18n: Metadata Generation Phase
NextJS->>i18n: getTranslations('legal.privacy')
i18n-->>NextJS: Return privacy translations
NextJS->>NextJS: Extract metaTitle & metaDescription
NextJS-->>Client: Return metadata (title, description)
end
rect rgba(100, 200, 150, 0.5)
Note over NextJS,i18n: Page Rendering Phase
NextJS->>i18n: getTranslations('legal.privacy')
i18n-->>NextJS: Return privacy translations
NextJS->>i18n: getTranslations('legal')
i18n-->>NextJS: Return legal translations (back, lastUpdated, contactEmail)
NextJS->>NextJS: Render PrivacyPolicyContent with t() lookups
NextJS->>NextJS: Render LegalPageShell with localized labels
NextJS-->>Client: Return fully translated page
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Localization
✏️ Tip: You can customize this high-level summary in your review settings.