Skip to content

Conversation

@TiZorii
Copy link
Collaborator

@TiZorii TiZorii commented Jan 19, 2026

  • Add translations for login/signup pages (uk/en/pl)
  • Implement dashboard i18n with stats and activity
  • Add contacts page translations

Summary by CodeRabbit

Release Notes

  • New Features
    • Multi-language support added for authentication flows (login, signup, password reset, forgot password)
    • Dashboard and contacts pages now display in your selected language
    • Page titles and descriptions automatically adjust based on language preference

✏️ Tip: You can customize this high-level summary in your review settings.

- Add translations for login/signup pages (uk/en/pl)
- Implement dashboard i18n with stats and activity
- Add contacts page translations
@netlify
Copy link

netlify bot commented Jan 19, 2026

Deploy Preview for develop-devlovers ready!

Name Link
🔨 Latest commit c39785f
🔍 Latest deploy log https://app.netlify.com/projects/develop-devlovers/deploys/696e281208d7e40008b1020c
😎 Deploy Preview https://deploy-preview-164--develop-devlovers.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@coderabbitai
Copy link

coderabbitai bot commented Jan 19, 2026

📝 Walkthrough

Walkthrough

The pull request adds comprehensive internationalization (i18n) support across authentication, contact, and dashboard pages. It replaces static metadata with locale-aware generateMetadata functions, converts hard-coded UI strings to translation lookups via getTranslations and useTranslations hooks, and introduces new translation bundles in English, Polish, and Ukrainian covering auth flows, contact information, and dashboard features.

Changes

Cohort / File(s) Summary
Page Components
frontend/app/[locale]/contacts/page.tsx, frontend/app/[locale]/dashboard/page.tsx
Replaced static metadata objects with async generateMetadata functions that fetch locale-based translations; converted page components to async and replaced hard-coded UI strings with t(...) translation lookups; updated locale-dependent date formatting and ProfileCard invocation to pass locale prop
Auth Components
frontend/components/auth/AuthProvidersBlock.tsx, frontend/components/auth/ForgotPasswordForm.tsx, frontend/components/auth/LoginForm.tsx, frontend/components/auth/ResetPasswordForm.tsx, frontend/components/auth/SignupForm.tsx
Added "use client" directive (where needed) and integrated useTranslations hook; replaced all hard-coded UI text (titles, buttons, error messages, verification prompts) with translation key lookups; maintained existing control flow and component signatures
Auth Field Components
frontend/components/auth/fields/EmailField.tsx, frontend/components/auth/fields/NameField.tsx, frontend/components/auth/fields/PasswordField.tsx
Added i18n support via useTranslations hook; replaced hard-coded placeholder and label text with translation lookups; removed placeholder prop from NameField and PasswordField type definitions as these are now derived from translations
Dashboard Components
frontend/components/dashboard/ProfileCard.tsx, frontend/components/dashboard/QuizSavedBanner.tsx, frontend/components/dashboard/StatsCard.tsx
Added useTranslations hook integration; replaced static UI strings with translation keys; updated ProfileCard to accept and use locale prop for date formatting; preserved existing data flow and structural logic
Translation Files
frontend/messages/en.json, frontend/messages/pl.json, frontend/messages/uk.json
Added comprehensive new top-level translation objects: auth (with login, signup, forgotPassword, resetPassword, fields, divider sub-keys), contacts (metaTitle, metaDescription, title, subtitle, contact fields), and dashboard (metaTitle, metaDescription, title, subtitle, supportLink, profile, stats, quizSaved sub-keys) across all three language files

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested reviewers

  • AM1007
  • ViktorSvertoka

Poem

🐰 A rabbit hops through text so plain,
Swapping words in i18n's refrain,
English, Polish, Ukrainian fair,
Now every locale gets its share! 🌍
Translation keys in every file,
Making the whole world smile! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the main change: adding internationalization (i18n) support for authentication, dashboard, and contact pages across multiple language files and components.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ViktorSvertoka ViktorSvertoka merged commit 9a22b46 into develop Jan 19, 2026
9 checks passed
@ViktorSvertoka ViktorSvertoka deleted the i18n-auth-dashboard-contact branch January 19, 2026 15:12
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.

3 participants