소스 검색

feat: add jp_ja for knowledge api (#16766)

tags/1.2.0
crazywoola 7 달 전
부모
커밋
bbf1639c63
No account linked to committer's email address
2개의 변경된 파일1988개의 추가작업 그리고 4개의 파일을 삭제
  1. 11
    4
      web/app/(commonLayout)/datasets/Doc.tsx
  2. 1977
    0
      web/app/(commonLayout)/datasets/template/template.ja.mdx

+ 11
- 4
web/app/(commonLayout)/datasets/Doc.tsx 파일 보기

@@ -6,6 +6,7 @@ import { useTranslation } from 'react-i18next'
import { RiListUnordered } from '@remixicon/react'
import TemplateEn from './template/template.en.mdx'
import TemplateZh from './template/template.zh.mdx'
import TemplateJa from './template/template.ja.mdx'
import I18n from '@/context/i18n'
import { LanguagesSupported } from '@/i18n/language'

@@ -106,10 +107,16 @@ const Doc = ({ apiBaseUrl }: DocProps) => {
)}
</div>
<article className='prose-xl prose mx-1 rounded-t-xl bg-white px-4 pt-16 sm:mx-12'>
{locale !== LanguagesSupported[1]
? <TemplateEn apiBaseUrl={apiBaseUrl} />
: <TemplateZh apiBaseUrl={apiBaseUrl} />
}
{(() => {
switch (locale) {
case LanguagesSupported[1]:
return <TemplateZh apiBaseUrl={apiBaseUrl} />
case LanguagesSupported[7]:
return <TemplateJa apiBaseUrl={apiBaseUrl} />
default:
return <TemplateEn apiBaseUrl={apiBaseUrl} />
}
})()}
</article>
</div>
)

+ 1977
- 0
web/app/(commonLayout)/datasets/template/template.ja.mdx
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


Loading…
취소
저장