fix: Japanese dateTimeFormat (#22516)

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
yasu89
2025-07-17 14:46:40 +09:00
committed by GitHub
parent aeb68f99bd
commit 97f080fa03
24 changed files with 27 additions and 7 deletions

View File

@@ -308,7 +308,7 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {
const EditTimeText = useMemo(() => { const EditTimeText = useMemo(() => {
const timeText = formatTime({ const timeText = formatTime({
date: (app.updated_at || app.created_at) * 1000, date: (app.updated_at || app.created_at) * 1000,
dateFormat: 'MM/DD/YYYY h:mm', dateFormat: `${t('datasetDocuments.segment.dateTimeFormat')}`,
}) })
return `${t('datasetDocuments.segment.editedAt')} ${timeText}` return `${t('datasetDocuments.segment.editedAt')} ${timeText}`
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps

View File

@@ -66,7 +66,7 @@ const ChildSegmentDetail: FC<IChildSegmentDetailProps> = ({
const EditTimeText = useMemo(() => { const EditTimeText = useMemo(() => {
const timeText = formatTime({ const timeText = formatTime({
date: (childChunkInfo?.updated_at ?? 0) * 1000, date: (childChunkInfo?.updated_at ?? 0) * 1000,
dateFormat: 'MM/DD/YYYY h:mm:ss', dateFormat: `${t('datasetDocuments.segment.dateTimeFormat')}`,
}) })
return `${t('datasetDocuments.segment.editedAt')} ${timeText}` return `${t('datasetDocuments.segment.editedAt')} ${timeText}`
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -74,7 +74,7 @@ const ChildSegmentDetail: FC<IChildSegmentDetailProps> = ({
return ( return (
<div className={'flex h-full flex-col'}> <div className={'flex h-full flex-col'}>
<div className={classNames('flex items-center justify-between', fullScreen ? 'py-3 pr-4 pl-6 border border-divider-subtle' : 'pt-3 pr-3 pl-4')}> <div className={classNames('flex items-center justify-between', fullScreen ? 'border border-divider-subtle py-3 pl-6 pr-4' : 'pl-4 pr-3 pt-3')}>
<div className='flex flex-col'> <div className='flex flex-col'>
<div className='system-xl-semibold text-text-primary'>{t('datasetDocuments.segment.editChildChunk')}</div> <div className='system-xl-semibold text-text-primary'>{t('datasetDocuments.segment.editChildChunk')}</div>
<div className='flex items-center gap-x-2'> <div className='flex items-center gap-x-2'>
@@ -107,8 +107,8 @@ const ChildSegmentDetail: FC<IChildSegmentDetailProps> = ({
</div> </div>
</div> </div>
</div> </div>
<div className={classNames('flex grow w-full', fullScreen ? 'flex-row justify-center px-6 pt-6' : 'py-3 px-4')}> <div className={classNames('flex w-full grow', fullScreen ? 'flex-row justify-center px-6 pt-6' : 'px-4 py-3')}>
<div className={classNames('break-all overflow-hidden whitespace-pre-line h-full', fullScreen ? 'w-1/2' : 'w-full')}> <div className={classNames('h-full overflow-hidden whitespace-pre-line break-all', fullScreen ? 'w-1/2' : 'w-full')}>
<ChunkContent <ChunkContent
docForm={docForm} docForm={docForm}
question={content} question={content}

View File

@@ -384,6 +384,7 @@ const translation = {
chunkAdded: '1 Stück hinzugefügt', chunkAdded: '1 Stück hinzugefügt',
expandChunks: 'Blöcke erweitern', expandChunks: 'Blöcke erweitern',
editedAt: 'Bearbeitet am', editedAt: 'Bearbeitet am',
dateTimeFormat: 'MM/DD/YYYY h:mm',
addChunk: 'Block hinzufügen', addChunk: 'Block hinzufügen',
addAnother: 'Fügen Sie eine weitere hinzu', addAnother: 'Fügen Sie eine weitere hinzu',
regeneratingTitle: 'Regenerieren von untergeordneten Blöcken', regeneratingTitle: 'Regenerieren von untergeordneten Blöcken',

View File

@@ -390,6 +390,7 @@ const translation = {
regenerationSuccessMessage: 'You can close this window.', regenerationSuccessMessage: 'You can close this window.',
edited: 'EDITED', edited: 'EDITED',
editedAt: 'Edited at', editedAt: 'Edited at',
dateTimeFormat: 'MM/DD/YYYY h:mm',
expandChunks: 'Expand chunks', expandChunks: 'Expand chunks',
collapseChunks: 'Collapse chunks', collapseChunks: 'Collapse chunks',
}, },

View File

@@ -377,6 +377,7 @@ const translation = {
editChildChunk: 'Editar fragmento secundario', editChildChunk: 'Editar fragmento secundario',
regeneratingTitle: 'Regeneración de fragmentos secundarios', regeneratingTitle: 'Regeneración de fragmentos secundarios',
editedAt: 'Editado en', editedAt: 'Editado en',
dateTimeFormat: 'MM/DD/YYYY h:mm',
searchResults_zero: 'RESULTADO', searchResults_zero: 'RESULTADO',
clearFilter: 'Borrar filtro', clearFilter: 'Borrar filtro',
newChildChunk: 'Nuevo fragmento secundario', newChildChunk: 'Nuevo fragmento secundario',

View File

@@ -356,6 +356,7 @@ const translation = {
chunks_other: 'تکه', chunks_other: 'تکه',
characters_one: 'شخصیت', characters_one: 'شخصیت',
editedAt: 'ویرایش شده در', editedAt: 'ویرایش شده در',
dateTimeFormat: 'MM/DD/YYYY h:mm',
parentChunks_other: 'تکه های والدین', parentChunks_other: 'تکه های والدین',
editChunk: 'ویرایش تکه', editChunk: 'ویرایش تکه',
collapseChunks: 'جمع کردن تکه ها', collapseChunks: 'جمع کردن تکه ها',

View File

@@ -374,6 +374,7 @@ const translation = {
expandChunks: 'Développer des blocs', expandChunks: 'Développer des blocs',
characters_other: 'caractères', characters_other: 'caractères',
editedAt: 'Édité le', editedAt: 'Édité le',
dateTimeFormat: 'MM/DD/YYYY h:mm',
searchResults_other: 'RÉSULTATS', searchResults_other: 'RÉSULTATS',
regenerationSuccessMessage: 'Vous pouvez fermer cette fenêtre.', regenerationSuccessMessage: 'Vous pouvez fermer cette fenêtre.',
parentChunks_one: 'MORCEAU PARENT', parentChunks_one: 'MORCEAU PARENT',

View File

@@ -373,6 +373,7 @@ const translation = {
addChunk: 'चंक जोड़ें', addChunk: 'चंक जोड़ें',
editChildChunk: 'संपादित करें बाल चंक', editChildChunk: 'संपादित करें बाल चंक',
editedAt: 'पर संपादित', editedAt: 'पर संपादित',
dateTimeFormat: 'MM/DD/YYYY h:mm',
childChunk: 'चाइल्ड-चंक', childChunk: 'चाइल्ड-चंक',
parentChunk: 'माता-पिता-चंक', parentChunk: 'माता-पिता-चंक',
empty: 'कोई हिस्सा नहीं मिला', empty: 'कोई हिस्सा नहीं मिला',

View File

@@ -380,6 +380,7 @@ const translation = {
regenerationConfirmTitle: 'Si desidera rigenerare i blocchi figlio?', regenerationConfirmTitle: 'Si desidera rigenerare i blocchi figlio?',
chunks_other: 'BLOCCHI', chunks_other: 'BLOCCHI',
editedAt: 'A cura di', editedAt: 'A cura di',
dateTimeFormat: 'MM/DD/YYYY h:mm',
collapseChunks: 'Comprimi blocchi', collapseChunks: 'Comprimi blocchi',
clearFilter: 'Cancella filtro', clearFilter: 'Cancella filtro',
chunks_one: 'PEZZO', chunks_one: 'PEZZO',

View File

@@ -1,7 +1,7 @@
const translation = { const translation = {
title: 'ログ', title: 'ログ',
description: 'ログは、アプリケーションの実行状態を記録します。ユーザーの入力や AI の応答などが含まれます。', description: 'ログは、アプリケーションの実行状態を記録します。ユーザーの入力や AI の応答などが含まれます。',
dateTimeFormat: 'MM/DD/YYYY hh:mm A', dateTimeFormat: 'YYYY/MM/DD hh:mm A',
table: { table: {
header: { header: {
updatedTime: '更新時間', updatedTime: '更新時間',

View File

@@ -388,6 +388,7 @@ const translation = {
regenerationSuccessMessage: 'ウィンドウを閉じても大丈夫です', regenerationSuccessMessage: 'ウィンドウを閉じても大丈夫です',
edited: '編集済み', edited: '編集済み',
editedAt: '編集日時', editedAt: '編集日時',
dateTimeFormat: 'YYYY/MM/DD HH:mm',
expandChunks: 'チャンクを展開', expandChunks: 'チャンクを展開',
collapseChunks: 'チャンクを折りたたむ', collapseChunks: 'チャンクを折りたたむ',
keywordDuplicate: 'そのキーワードは既に存在しています', keywordDuplicate: 'そのキーワードは既に存在しています',

View File

@@ -1,7 +1,7 @@
const translation = { const translation = {
title: '検索テスト', title: '検索テスト',
desc: '与えられたクエリテキストに基づいたナレッジのヒット効果をテストします。', desc: '与えられたクエリテキストに基づいたナレッジのヒット効果をテストします。',
dateTimeFormat: 'MM/DD/YYYY hh:mm A', dateTimeFormat: 'YYYY/MM/DD hh:mm A',
records: '記録', records: '記録',
table: { table: {
header: { header: {

View File

@@ -371,6 +371,7 @@ const translation = {
childChunks_one: '자식 청크 (CHILD CHUNK)', childChunks_one: '자식 청크 (CHILD CHUNK)',
regenerationSuccessTitle: '재생이 완료되었습니다.', regenerationSuccessTitle: '재생이 완료되었습니다.',
editedAt: '편집 위치', editedAt: '편집 위치',
dateTimeFormat: 'MM/DD/YYYY h:mm',
addAnother: '다른 항목 추가', addAnother: '다른 항목 추가',
chunkAdded: '청크 1 개 추가됨', chunkAdded: '청크 1 개 추가됨',
searchResults_one: '결과', searchResults_one: '결과',

View File

@@ -369,6 +369,7 @@ const translation = {
regenerationSuccessTitle: 'Regeneracja zakończona', regenerationSuccessTitle: 'Regeneracja zakończona',
edited: 'EDYTOWANE', edited: 'EDYTOWANE',
editedAt: 'Zredagowane w', editedAt: 'Zredagowane w',
dateTimeFormat: 'MM/DD/YYYY h:mm',
collapseChunks: 'Zwijanie fragmentów', collapseChunks: 'Zwijanie fragmentów',
empty: 'Nie znaleziono fragmentu', empty: 'Nie znaleziono fragmentu',
newChunk: 'Nowy fragment', newChunk: 'Nowy fragment',

View File

@@ -376,6 +376,7 @@ const translation = {
regeneratingMessage: 'Isso pode demorar um pouco, por favor aguarde...', regeneratingMessage: 'Isso pode demorar um pouco, por favor aguarde...',
edited: 'EDIÇÃO', edited: 'EDIÇÃO',
editedAt: 'Editado em', editedAt: 'Editado em',
dateTimeFormat: 'MM/DD/YYYY h:mm',
expandChunks: 'Expandir pedaços', expandChunks: 'Expandir pedaços',
collapseChunks: 'Recolher partes', collapseChunks: 'Recolher partes',
regenerationConfirmMessage: 'A regeneração de partes filhas substituirá as partes filhas atuais, incluindo partes editadas e partes recém-adicionadas. A regeneração não pode ser desfeita.', regenerationConfirmMessage: 'A regeneração de partes filhas substituirá as partes filhas atuais, incluindo partes editadas e partes recém-adicionadas. A regeneração não pode ser desfeita.',

View File

@@ -362,6 +362,7 @@ const translation = {
characters_one: 'caracter', characters_one: 'caracter',
regenerationSuccessTitle: 'Regenerare finalizată', regenerationSuccessTitle: 'Regenerare finalizată',
editedAt: 'Editat la', editedAt: 'Editat la',
dateTimeFormat: 'MM/DD/YYYY h:mm',
addChunk: 'Adăugați o bucată', addChunk: 'Adăugați o bucată',
chunk: 'Bucată', chunk: 'Bucată',
chunks_one: 'BUCATĂ', chunks_one: 'BUCATĂ',

View File

@@ -365,6 +365,7 @@ const translation = {
parentChunks_one: 'РОДИТЕЛЬСКИЙ БЛОК', parentChunks_one: 'РОДИТЕЛЬСКИЙ БЛОК',
childChunk: 'Чайлд-Чанк', childChunk: 'Чайлд-Чанк',
editedAt: 'Отредактировано в', editedAt: 'Отредактировано в',
dateTimeFormat: 'MM/DD/YYYY h:mm',
editChildChunk: 'Редактирование дочернего фрагмента', editChildChunk: 'Редактирование дочернего фрагмента',
parentChunks_other: 'РОДИТЕЛЬСКИЕ БЛОКИ', parentChunks_other: 'РОДИТЕЛЬСКИЕ БЛОКИ',
regenerationSuccessTitle: 'Регенерация завершена', regenerationSuccessTitle: 'Регенерация завершена',

View File

@@ -358,6 +358,7 @@ const translation = {
expandChunks: 'Razširitev kosov', expandChunks: 'Razširitev kosov',
childChunk: 'Otroški kos', childChunk: 'Otroški kos',
editedAt: 'Urejeno na', editedAt: 'Urejeno na',
dateTimeFormat: 'MM/DD/YYYY h:mm',
edited: 'UREJATI', edited: 'UREJATI',
addAnother: 'Dodajanje še enega', addAnother: 'Dodajanje še enega',
childChunks_one: 'OTROŠKI KOS', childChunks_one: 'OTROŠKI KOS',

View File

@@ -363,6 +363,7 @@ const translation = {
edited: 'แก้ไข', edited: 'แก้ไข',
addChunk: 'เพิ่มก้อน', addChunk: 'เพิ่มก้อน',
editedAt: 'แก้ไขที่', editedAt: 'แก้ไขที่',
dateTimeFormat: 'MM/DD/YYYY h:mm',
childChunks_other: 'ก้อนเด็ก', childChunks_other: 'ก้อนเด็ก',
editChildChunk: 'แก้ไข Child Chunk', editChildChunk: 'แก้ไข Child Chunk',
parentChunk: 'ผู้ปกครอง-ก้อน', parentChunk: 'ผู้ปกครอง-ก้อน',

View File

@@ -389,6 +389,7 @@ const translation = {
searchResults_zero: 'SONUÇ', searchResults_zero: 'SONUÇ',
chunks_other: 'Parçalar', chunks_other: 'Parçalar',
editedAt: 'Şurada düzenlendi:', editedAt: 'Şurada düzenlendi:',
dateTimeFormat: 'MM/DD/YYYY h:mm',
addChildChunk: 'Alt Parça Ekle', addChildChunk: 'Alt Parça Ekle',
keywordDuplicate: 'Anahtar kelime zaten var', keywordDuplicate: 'Anahtar kelime zaten var',
keywordEmpty: 'Anahtar kelime boş olamaz', keywordEmpty: 'Anahtar kelime boş olamaz',

View File

@@ -369,6 +369,7 @@ const translation = {
empty: 'Шматок не знайдено', empty: 'Шматок не знайдено',
chunks_other: 'ШМАТКИ', chunks_other: 'ШМАТКИ',
editedAt: 'За редакцією', editedAt: 'За редакцією',
dateTimeFormat: 'MM/DD/YYYY h:mm',
searchResults_zero: 'РЕЗУЛЬТАТ', searchResults_zero: 'РЕЗУЛЬТАТ',
collapseChunks: 'Згортання шматків', collapseChunks: 'Згортання шматків',
childChunkAdded: 'Додано 1 дочірній фрагмент', childChunkAdded: 'Додано 1 дочірній фрагмент',

View File

@@ -369,6 +369,7 @@ const translation = {
expandChunks: 'Mở rộng các đoạn', expandChunks: 'Mở rộng các đoạn',
chunks_other: 'KHỐI', chunks_other: 'KHỐI',
editedAt: 'Chỉnh sửa tại', editedAt: 'Chỉnh sửa tại',
dateTimeFormat: 'MM/DD/YYYY h:mm',
addAnother: 'Thêm một cái khác', addAnother: 'Thêm một cái khác',
regenerationConfirmTitle: 'Bạn có muốn tái tạo các chunk con không?', regenerationConfirmTitle: 'Bạn có muốn tái tạo các chunk con không?',
searchResults_one: 'KẾT QUẢ', searchResults_one: 'KẾT QUẢ',

View File

@@ -387,6 +387,7 @@ const translation = {
regenerationSuccessMessage: '可以关闭窗口', regenerationSuccessMessage: '可以关闭窗口',
edited: '已编辑', edited: '已编辑',
editedAt: '编辑于', editedAt: '编辑于',
dateTimeFormat: 'YYYY/MM/DD HH:mm',
expandChunks: '展开分段', expandChunks: '展开分段',
collapseChunks: '折叠分段', collapseChunks: '折叠分段',
keywordEmpty: '关键词不能为空', keywordEmpty: '关键词不能为空',

View File

@@ -369,6 +369,7 @@ const translation = {
expandChunks: '擴展塊', expandChunks: '擴展塊',
chunkAdded: '添加了 1 個數據塊', chunkAdded: '添加了 1 個數據塊',
editedAt: '編輯於', editedAt: '編輯於',
dateTimeFormat: 'YYYY/MM/DD HH:mm',
regeneratingMessage: '這可能需要一些時間,請稍候...', regeneratingMessage: '這可能需要一些時間,請稍候...',
editChunk: '編輯數據塊', editChunk: '編輯數據塊',
regenerationSuccessMessage: '您可以關閉此視窗。', regenerationSuccessMessage: '您可以關閉此視窗。',