mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 11:05:53 +08:00
feat: add jp_ja for knowledge api (#16766)
This commit is contained in:
parent
cb12b4436f
commit
bbf1639c63
@ -6,6 +6,7 @@ import { useTranslation } from 'react-i18next'
|
|||||||
import { RiListUnordered } from '@remixicon/react'
|
import { RiListUnordered } from '@remixicon/react'
|
||||||
import TemplateEn from './template/template.en.mdx'
|
import TemplateEn from './template/template.en.mdx'
|
||||||
import TemplateZh from './template/template.zh.mdx'
|
import TemplateZh from './template/template.zh.mdx'
|
||||||
|
import TemplateJa from './template/template.ja.mdx'
|
||||||
import I18n from '@/context/i18n'
|
import I18n from '@/context/i18n'
|
||||||
import { LanguagesSupported } from '@/i18n/language'
|
import { LanguagesSupported } from '@/i18n/language'
|
||||||
|
|
||||||
@ -106,10 +107,16 @@ const Doc = ({ apiBaseUrl }: DocProps) => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<article className='prose-xl prose mx-1 rounded-t-xl bg-white px-4 pt-16 sm:mx-12'>
|
<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} />
|
switch (locale) {
|
||||||
: <TemplateZh apiBaseUrl={apiBaseUrl} />
|
case LanguagesSupported[1]:
|
||||||
}
|
return <TemplateZh apiBaseUrl={apiBaseUrl} />
|
||||||
|
case LanguagesSupported[7]:
|
||||||
|
return <TemplateJa apiBaseUrl={apiBaseUrl} />
|
||||||
|
default:
|
||||||
|
return <TemplateEn apiBaseUrl={apiBaseUrl} />
|
||||||
|
}
|
||||||
|
})()}
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
1977
web/app/(commonLayout)/datasets/template/template.ja.mdx
Normal file
1977
web/app/(commonLayout)/datasets/template/template.ja.mdx
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user