[PR #22516] fix: Japanese dateTimeFormat #29952

Closed
opened 2026-02-21 20:46:34 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/22516

State: closed
Merged: Yes


Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

The date and time format for Japanese has been adjusted to match the commonly used format in Japan.
Some parts were not i18n-compliant, so I have added i18n support for those sections.
Also, to use a common localization format, the seconds have been removed from the dateTimeFormat in the child chunk page.

All differences except for the dateFormat change in child-segment-detail.tsx were made by the linter.

Screenshots

Add dateTimeFormat i18n

Lang Before After
ja-JP スクリーンショット 2025-07-17 9 27 26 スクリーンショット 2025-07-17 9 26 14
ja-JP スクリーンショット 2025-07-17 9 33 16 スクリーンショット 2025-07-17 9 31 47
other スクリーンショット 2025-07-17 10 28 00 スクリーンショット 2025-07-17 10 26 43
other スクリーンショット 2025-07-17 10 25 01 スクリーンショット 2025-07-17 10 19 25

Fix Japaneses dateTimeFormat

FIx ja-JP only.

Before After
スクリーンショット 2025-07-17 9 55 59 スクリーンショット 2025-07-17 9 57 04
スクリーンショット 2025-07-17 9 59 06 スクリーンショット 2025-07-17 10 01 51

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/22516 **State:** closed **Merged:** Yes --- > [!IMPORTANT] > > 1. Make sure you have read our [contribution guidelines](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) > 2. Ensure there is an associated issue and you have been assigned to it > 3. Use the correct syntax to link this PR: `Fixes #<issue number>`. ## Summary <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> The date and time format for Japanese has been adjusted to match the commonly used format in Japan. Some parts were not i18n-compliant, so I have added i18n support for those sections. Also, to use a common localization format, the seconds have been removed from the dateTimeFormat in the child chunk page. All differences except for the dateFormat change in `child-segment-detail.tsx` were made by the linter. ## Screenshots ### Add dateTimeFormat i18n | Lang | Before | After | |----|--------|-------| | `ja-JP` | <img width="1040" height="360" alt="スクリーンショット 2025-07-17 9 27 26" src="https://github.com/user-attachments/assets/2f7e4682-79a1-4fc0-b88a-c87306d3c4b3" /> | <img width="1040" height="361" alt="スクリーンショット 2025-07-17 9 26 14" src="https://github.com/user-attachments/assets/7886fd89-61ac-4800-8491-0b2c97229b86" /> | | `ja-JP` | <img width="1449" height="406" alt="スクリーンショット 2025-07-17 9 33 16" src="https://github.com/user-attachments/assets/d022d278-40b7-4f15-b2ad-7bd23931c2ff" /> | <img width="1457" height="398" alt="スクリーンショット 2025-07-17 9 31 47" src="https://github.com/user-attachments/assets/4d604c39-f837-44ab-89c3-607302bf5301" /> | | other | <img width="730" height="315" alt="スクリーンショット 2025-07-17 10 28 00" src="https://github.com/user-attachments/assets/c4b7eb3c-c2ab-4246-a395-333184455d07" /> | <img width="736" height="319" alt="スクリーンショット 2025-07-17 10 26 43" src="https://github.com/user-attachments/assets/b00bdf71-91c0-453a-acea-9d823982510a" /> | | other | <img width="1453" height="237" alt="スクリーンショット 2025-07-17 10 25 01" src="https://github.com/user-attachments/assets/ce0f00cc-f000-4fe5-a8b4-5a8b1339fa4c" /> | <img width="1451" height="253" alt="スクリーンショット 2025-07-17 10 19 25" src="https://github.com/user-attachments/assets/becb3dd9-d05e-4962-b32f-0b45a7dee6ea" /> | ### Fix Japaneses dateTimeFormat FIx `ja-JP` only. | Before | After | |--------|-------| | <img width="1162" height="337" alt="スクリーンショット 2025-07-17 9 55 59" src="https://github.com/user-attachments/assets/69b60b97-0c16-4a9c-b8bb-4c3edbe4eb28" /> | <img width="1172" height="364" alt="スクリーンショット 2025-07-17 9 57 04" src="https://github.com/user-attachments/assets/497a1e41-25a2-4ea9-901e-8068f869b2c6" /> | | <img width="1453" height="253" alt="スクリーンショット 2025-07-17 9 59 06" src="https://github.com/user-attachments/assets/345c96b7-2d0a-4c87-8f30-76e31b048737" /> | <img width="1458" height="260" alt="スクリーンショット 2025-07-17 10 01 51" src="https://github.com/user-attachments/assets/52e84743-8165-4803-9908-0b9ae6eb8ee8" /> | ## Checklist - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:46:34 -05:00
yindo closed this issue 2026-02-21 20:46:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#29952