Kaynağa Gözat

feat: add jp_ja for knowledge api (#16766)

tags/1.2.0
crazywoola 7 ay önce
ebeveyn
işleme
bbf1639c63
No account linked to committer's email address

+ 11
- 4
web/app/(commonLayout)/datasets/Doc.tsx Dosyayı Görüntüle

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'


)} )}
</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} />
: <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> </article>
</div> </div>
) )

+ 1977
- 0
web/app/(commonLayout)/datasets/template/template.ja.mdx
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


Loading…
İptal
Kaydet