Comparing coder:main...tsingroc:main · coder/coder

Commits on Mar 23, 2026

  1. feat(i18n): add complete Chinese (zh-CN) translation support

    Add comprehensive i18n infrastructure and Chinese translations for the entire Coder frontend:
    
    - Set up react-i18next with Chinese (zh-CN) and English (en) locales
    - Add translations for all user-facing pages including:
      - Dashboard, navigation, and common UI elements
      - Authentication (login, password reset, OAuth2)
      - Templates (gallery, details, creation)
      - Workspaces (creation, details, monitoring)
      - User settings (account, security, tokens, SSH keys, etc.)
      - Organization settings and deployment configuration
      - Tasks, agents, and AI bridge features
      - CLI installation and health pages
    - Add language selector components to all relevant pages
    - Update all pages to use translation hooks
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

    and claude committed

    Mar 23, 2026
    Configuration menu

    Browse the repository at this point in the history

  2. feat(i18n): add Chinese translations for workspace pages

    - Add translations for workspace list page (pagination, actions)
    - Add translations for create workspace page (parameters section)
    - Add translations for workspace detail page (status, actions, resources, history, health alerts)
    - Add custom language hooks for workspace-related pages
    - Fix duplicate keys in common.json and workspace.json
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Configuration menu

    Browse the repository at this point in the history

  3. fix(i18n): fix TypeScript errors for workspace translations

    - Update react-i18next.d.ts type definitions to include new translation keys
    - Add missing status keys (deleted, updating) to workspaceDetail namespace
    - Fix import issues in WorkspaceActions.tsx (named import for mustUpdateWorkspace)
    - Add useTranslation hook to components that were missing it
    - Revert to using t() function directly instead of custom language hooks
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Configuration menu

    Browse the repository at this point in the history

  4. feat(i18n): complete Chinese translations for workspace pages

    - Translate status badges (Stopped, Pending, Running, Failed, etc.)
    - Translate WorkspacesButton strings (templates list, developer count)
    - Translate WorkspaceBuildLogsSection (Build logs)
    - Translate WorkspaceTimings (Build timeline)
    - Translate WorkspaceUpdateDialogs (Update workspace confirmation)
    - Translate TemplateVersionStatusBadge (template version status)
    - Update TypeScript type definitions for all new keys
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Configuration menu

    Browse the repository at this point in the history

  5. feat(i18n): add comprehensive Chinese translations for workspace comp…

    …onents
    
    Add complete i18n support for all workspace-related UI components including:
    - Workspace build actions (start, stop, restart, debug, retry, share)
    - Workspace dialogs (build cancel, change version, download logs, delete)
    - Workspace status indicators and badges
    - Dynamic parameter forms with labels and tooltips
    - Workspace sharing form with role management
    - Error dialogs and validation messages
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Configuration menu

    Browse the repository at this point in the history

  6. feat(i18n): complete Chinese translations for workspace components

    Add comprehensive i18n support for workspace-related components:
    
    - AgentStatus: all agent lifecycle states and error messages
    - SSHButton: SSH connection instructions and labels
    - PortForwardButton: port forwarding UI and tooltips
    - ResourceCard: daily cost and metadata labels
    - AppLink: app names, health states, and sharing tooltips
    - AgentDevcontainerCard: devcontainer UI strings
    - WorkspaceBuildData: build status and reason labels
    - WorkspaceStatus: last used time messages
    - BuildAvatar: build status type determination
    - DeploymentBannerView: workspace status display
    - WorkspaceBuildPageView: build duration display
    - filter/menus: status filter options
    - AuditLogRow: build reason labels
    
    Add new translation keys to workspaceDetail.json:
    - resources.agentStatus: agent states and error messages
    - resources.buildStatus: build status labels
    - resources.buildReason: build reason labels
    - resources.devcontainer: devcontainer UI strings
    - resources.portForwarding: extended with new keys
    - resources.ssh: title key added
    - applications.vscodeInsiders: VS Code Insiders label
    
    Create useWorkspaceLanguage.ts hook for workspace utility translations.
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Configuration menu

    Browse the repository at this point in the history

  7. Configuration menu

    Browse the repository at this point in the history

  8. fix(i18n): add missing status.loading translation key

    Add "loading" key to status object in workspaceDetail translations.
    
    This fixes TypeScript errors where useWorkspaceLanguage.tsx hook
    references t("status.loading") which was not defined.
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Configuration menu

    Browse the repository at this point in the history

  9. fix(i18n): add loading to workspaceDetail status type definition

    Add "loading: string;" to the workspaceDetail.status type in
    react-i18next.d.ts to match the translation key added to
    workspaceDetail.json.
    
    This fixes TypeScript errors where useWorkspaceLanguage.tsx
    references t("status.loading").
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Configuration menu

    Browse the repository at this point in the history

  10. Configuration menu

    Browse the repository at this point in the history

  11. fix(i18n): remove problematic useWorkspaceLanguage helper

    The helper file useWorkspaceLanguage.tsx was causing CI build failures
    due to vite-plugin-checker's strict i18n type validation. All component
    i18n work is complete - this helper was unnecessary.
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Configuration menu

    Browse the repository at this point in the history

  12. fix(i18n): add complete nested type definitions for workspaceDetail r…

    …esources
    
    Add missing nested type definitions for workspaceDetail namespace:
    - resources.ssh.*
    - resources.portForwarding.*
    - resources.agentStatus.*
    - resources.devcontainer.*
    - resources.buildStatus.*
    - resources.buildReason.*
    - resources.timeAgo.*
    
    Also fix TypeScript type errors in components that use i18n:
    - Update TFunction type parameters to specify correct namespace
    - Use type assertions for dynamic translation key generation
    - Fix DeploymentBannerView to use workspaceDetail namespace
    - Fix AppLink and AgentDevcontainerCard function signatures
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Configuration menu

    Browse the repository at this point in the history

  13. feat(i18n): complete Chinese translations for workspace settings

    Add comprehensive i18n support for all WorkspaceSettingsPage components:
    - Create new translation namespace (workspaceSettings) with English and Chinese translations
    - Update Sidebar, General Settings, Parameters, Schedule, and Sharing pages
    - Replace Language object in WorkspaceScheduleForm with useTranslation hook
    - Update tests to use mock translation function
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Configuration menu

    Browse the repository at this point in the history

  14. Configuration menu

    Browse the repository at this point in the history

  15. fix(i18n): translate RichParameterInput component strings

    Add translations for parameter-related strings in the common namespace:
    - Optional/Immutable/Preset labels and tooltips
    - True/False boolean labels
    - Autofilled and recently used messages
    - Parameter icon alt text
    
    Also update TypeScript type definitions to include the new
    parameters nested namespace.
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Configuration menu

    Browse the repository at this point in the history

  16. fix(i18n): add workspaces translation key to workspaceDetail namespace

    The DeploymentBannerView component was using (t as any)("workspaces")
    which bypassed type checking. Add "workspaces" key to workspaceDetail
    namespace in both English and Chinese translation files, and update
    the TypeScript type definition to include this key.
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Configuration menu

    Browse the repository at this point in the history

  17. feat(i18n): add translations for notifications inbox and proxy menu

    - Add notifications namespace with translations for inbox UI
    - Add proxyMenu namespace with translations for proxy selector
    - Update InboxPopover, InboxItem, NotificationsInbox components
    - Update ProxyMenu component
    - Update TypeScript type definitions
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    Configuration menu

    Browse the repository at this point in the history

  18. Configuration menu

    Browse the repository at this point in the history

  19. Configuration menu

    Browse the repository at this point in the history