Skip to content

feat(i18n): localize performance analytics dashboard#635

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
AlphaMaleBaDI:feature/dashboard-analytics-i18n
May 31, 2026
Merged

feat(i18n): localize performance analytics dashboard#635
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
AlphaMaleBaDI:feature/dashboard-analytics-i18n

Conversation

@AlphaMaleBaDI
Copy link
Copy Markdown
Contributor

@AlphaMaleBaDI AlphaMaleBaDI commented May 30, 2026

Closes #509

Summary

While investigating Dashboard Analytics internationalization support, I found that the primary dashboard analytics module had already been internationalized in a previously merged implementation.

This PR completes the remaining analytics-related internationalization work by localizing the Performance Dashboard components under src/components/performance.

Changes Made

Locale Support

Added a new performance translation namespace to:

  • en.json
  • es.json
  • ar.json

Components Localized

  • PerformanceMonitor.tsx
  • CoreWebVitals.tsx
  • OptimizationSuggestions.tsx
  • PerformanceDashboard.tsx

Architecture

  • Preserved the existing telemetry architecture.
  • Kept performanceUtils.ts translation-agnostic.
  • Localized all user-facing strings at the presentation layer.
  • Used useInternationalization and translateWithFallback to maintain consistency with the existing dashboard i18n implementation.

Verification

  • node scripts/check-locales.mjs
  • pnpm lint
  • Targeted performance utility tests

Results:

  • Locale validation passed
  • ESLint passed with zero warnings/errors
  • No regression to telemetry utilities

Notes

Industry-standard telemetry metric identifiers (LCP, CLS, INP, FCP, and TTFB) were intentionally left untranslated to preserve consistency with web performance standards.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@AlphaMaleBaDI Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER RUKAYAT-CODER merged commit 16b38c7 into rinafcode:main May 31, 2026
1 of 5 checks passed
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.

bug Dashboard Analytics : Internationalization Support (Issue 111)

2 participants