Skip to content

feat(i18n): extract MaintainersPage tabs and errors to message catalog#422

Open
Sandii00 wants to merge 3 commits into
Grainlify:mainfrom
Sandii00:i18n/maintainers-strings
Open

feat(i18n): extract MaintainersPage tabs and errors to message catalog#422
Sandii00 wants to merge 3 commits into
Grainlify:mainfrom
Sandii00:i18n/maintainers-strings

Conversation

@Sandii00

Copy link
Copy Markdown

Closes #263

Summary

Extracts all hardcoded strings from src/features/maintainers/pages/MaintainersPage.tsx into the en i18n catalog under a new maintainers.* namespace, then replaces every occurrence with a typed catalog reference via useTranslation().

Changed files

  • src/shared/i18n/messages.ts — Added maintainers.* namespace (6 keys + TSDoc)
  • src/features/maintainers/pages/MaintainersPage.tsx — Import useTranslation; replace hardcoded strings
  • src/features/maintainers/pages/MaintainersPage.test.tsx — New test file (8 describe blocks)

Catalog additions

  • maintainers.tabs.dashboard, maintainers.tabs.issues, maintainers.tabs.pullRequests
  • maintainers.errors.unauthenticated, maintainers.errors.networkError, maintainers.errors.loadFailure

Behavior

No behavior change — tab routing order, TabType values, and error semantics are identical.

Test results

Metric Result
Tests 59/59 passing
Statements 100%
Functions 100%
Lines 100%
Branches 98.02%

Coverage is well above the 95% target.

Security notes

None — static keys only, no dynamic key construction.

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.

Extract MaintainersPage tab labels and connection error strings into the i18n catalog

1 participant