Skip to content

feat: Add ja-JP (Japanese) locale with tests#27

Merged
patrickdevivo merged 1 commit intomainfrom
add-ja-jp-locale
Sep 30, 2025
Merged

feat: Add ja-JP (Japanese) locale with tests#27
patrickdevivo merged 1 commit intomainfrom
add-ja-jp-locale

Conversation

@patrickdevivo
Copy link
Collaborator

Added Japanese locale support with comprehensive test coverage. Translations follow the same time range patterns as other locales.

🤖 Generated with Claude Code

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds Japanese (ja-JP) locale support to the timediff library with comprehensive test coverage. The implementation follows the same time range patterns as existing locales and provides culturally appropriate Japanese time expressions.

  • Added Japanese locale formatter with proper time expressions (数秒前, 分前, 時間前, etc.)
  • Implemented comprehensive test coverage with 38 test cases covering all time ranges
  • Registered locale under both "ja" and "ja-JP" identifiers for flexibility

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
locale/ja-JP.go Implements Japanese time difference formatters with appropriate translations
timediff_ja_JP_test.go Provides comprehensive test coverage for Japanese locale functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Added Japanese locale support with comprehensive test coverage.
Translations follow the same time range patterns as other locales.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@patrickdevivo patrickdevivo merged commit d52c539 into main Sep 30, 2025
6 checks passed
@patrickdevivo patrickdevivo deleted the add-ja-jp-locale branch September 30, 2025 14:28
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