Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 17, 2025

This PR translates all Japanese comments throughout the TypeScript codebase to English to improve code accessibility and maintainability for international contributors.

Changes Made

  • Base types (base.ts, change.ts): Translated comments for line metadata, page information, and change operations
  • API types: Translated comments across all API endpoint types including:
    • Commit history (api/commits/)
    • Page data export/import (api/page-data/)
    • Page snapshots (api/page-snapshots/)
    • Search functionality (api/pages/project/search/)
    • Project backup (api/project-backup/)
  • Node types (node/): Translated comments for Scrapbox notation parsing including icons, decorations, media links, quotes, and indentation
  • Error types (error.ts): Translated comprehensive error handling documentation
  • Layout types (layout.ts): Translated page type definitions
  • Utility types (scrapbox.ts, blocks.ts): Translated button configuration and section marker comments

Examples

Before:

/** Scrapboxの行のメタデータ */
export interface BaseLine {
  /** 行のテキスト */
  text: string;
  /** 一番最後に行を編集した人のid */
  userId: UserId;
}

After:

/** scrapbox line metadata */
export interface BaseLine {
  /** text of the line */
  text: string;
  /** id of the user who last edited the line */
  userId: UserId;
}

Technical Details

  • All translations preserve the exact technical meaning and context
  • No functional code changes were made - only comment translations
  • All existing tests pass
  • Code formatting maintained with Deno formatter
  • Comprehensive coverage of ~66 Japanese comments across the entire codebase

This change makes the codebase more accessible to international developers while maintaining all existing functionality and technical accuracy.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

…/commits/project/pageId.ts

Co-authored-by: takker99 <37929109+takker99@users.noreply.github.com>
Copilot AI and others added 3 commits August 17, 2025 23:56
Co-authored-by: takker99 <37929109+takker99@users.noreply.github.com>
Co-authored-by: takker99 <37929109+takker99@users.noreply.github.com>
Co-authored-by: takker99 <37929109+takker99@users.noreply.github.com>
Copilot AI changed the title [WIP] コメントをすべて英語に書き直して Translate all Japanese comments to English Aug 18, 2025
Copilot AI requested a review from takker99 August 18, 2025 00:11
Copilot finished work on behalf of takker99 August 18, 2025 00:11
@takker99 takker99 marked this pull request as ready for review August 18, 2025 00:17
@takker99 takker99 merged commit a92fdfb into main Aug 18, 2025
3 checks passed
@takker99 takker99 deleted the copilot/fix-7d349bc2-4095-46d0-a7f2-c3928ac867c6 branch August 18, 2025 00:17
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