Skip to content

fix(i18n): localize hardcoded UI surfaces - #9069

Closed
xuhongbo wants to merge 14 commits into
makeplane:previewfrom
xuhongbo:i18n/localize-hardcoded-ui
Closed

xuhongbo wants to merge 14 commits into
makeplane:previewfrom
xuhongbo:i18n/localize-hardcoded-ui

Conversation

@xuhongbo

@xuhongbo xuhongbo commented May 14, 2026 •

Copy link
Copy Markdown

Description

This PR improves Plane's existing i18n coverage by completing Simplified Chinese translations, moving several hardcoded non-admin UI surfaces behind translation keys, and translating the new localized_ui namespace across every existing locale in this repository.

Scope notes:

  • Admin app/pages are intentionally excluded from this PR.
  • No new locale directories are added; the PR keeps the existing 19 locale set:
    cs, de, en, es, fr, id, it, ja, ko, pl, pt-BR, ro, ru, sk, tr-TR, ua, vi-VN, zh-CN, and zh-TW.

Changes:

  • Completes missing zh-CN translation entries for current locale coverage.
  • Adds and aligns a shared localized_ui translation group across all 19 locale files.
  • Localizes high-impact hardcoded UI surfaces:
    • workspace invitation screen
    • Space auth forms, legal copy, logged-in/404/error states, public issue filters, peek view labels, comments, reactions, and issue property labels
    • Space issue grouping labels such as All work items and None
    • onboarding profile, team invite, use-case, workspace, and invitation flows
    • editor link edit popover
    • shared web surfaces such as page-not-found, workspace auth wrappers, project settings empty states, workspace views, stickies, and shared propel spinner/banner labels
  • Adds @plane/i18n as an editor workspace dependency so editor UI text can follow the selected language.
  • Addresses CodeRabbit review feedback:
    • translates the non-English localized_ui blocks instead of leaving English fallback text
    • fixes the workspace invitation submit guard
    • gives the editor link edit popover a semantic dialog role and localized aria-label
    • simplifies the password submit disabled condition
  • Uses AI-assisted translations for non-English locales; native-speaker review is welcome.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Not included. This is a text/i18n wiring change; affected screens render the same layout with localized copy.

Test Scenarios

  • pnpm install
  • pnpm fix:format
  • pnpm turbo run check:lint --filter=web --filter=space --filter=@plane/i18n --filter=@plane/editor --filter=@plane/propel
  • pnpm turbo run check:types --filter=@plane/i18n --filter=@plane/editor --filter=web --filter=space --filter=@plane/propel
  • pnpm check
  • Verified all locale files contain the same localized_ui.* key set; current check reports 19 locales and 641 localized_ui keys.
  • Verified the non-English locale localized_ui blocks no longer use English fallback values except intentionally shared product/provider labels.
  • Searched affected files for the replaced hardcoded English strings.
  • Rechecked PR status after push: license/cla is passing; CodeRabbit re-review is still in progress.

References

Related to existing zh-CN/i18n work in #8866 and #8910.

Summary by CodeRabbit

  • New Features

    • Wide localization: UI text localized across auth, invitations, onboarding, inbox, editor/link UI, public-space pages, page titles/placeholders and toasts.
  • Style / Accessibility

    • Improved semantics & accessibility: many interactive rows converted to buttons, ARIA labels and spinner/dismiss labels enhanced, and input focus behavior refined.
    • Localized toast/error messaging for clearer feedback.
  • Chores

    • Added/expanded localized copy for many languages.

Loading
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.

2 participants