File tree Expand file tree Collapse file tree 2 files changed +1988
-4
lines changed
web/app/(commonLayout)/datasets Expand file tree Collapse file tree 2 files changed +1988
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { useTranslation } from 'react-i18next'
6
6
import { RiListUnordered } from '@remixicon/react'
7
7
import TemplateEn from './template/template.en.mdx'
8
8
import TemplateZh from './template/template.zh.mdx'
9
+ import TemplateJa from './template/template.ja.mdx'
9
10
import I18n from '@/context/i18n'
10
11
import { LanguagesSupported } from '@/i18n/language'
11
12
@@ -106,10 +107,16 @@ const Doc = ({ apiBaseUrl }: DocProps) => {
106
107
) }
107
108
</ div >
108
109
< article className = 'prose-xl prose mx-1 rounded-t-xl bg-white px-4 pt-16 sm:mx-12' >
109
- { locale !== LanguagesSupported [ 1 ]
110
- ? < TemplateEn apiBaseUrl = { apiBaseUrl } />
111
- : < TemplateZh apiBaseUrl = { apiBaseUrl } />
112
- }
110
+ { ( ( ) => {
111
+ switch ( locale ) {
112
+ case LanguagesSupported [ 1 ] :
113
+ return < TemplateZh apiBaseUrl = { apiBaseUrl } />
114
+ case LanguagesSupported [ 7 ] :
115
+ return < TemplateJa apiBaseUrl = { apiBaseUrl } />
116
+ default :
117
+ return < TemplateEn apiBaseUrl = { apiBaseUrl } />
118
+ }
119
+ } ) ( ) }
113
120
</ article >
114
121
</ div >
115
122
)
You can’t perform that action at this time.
0 commit comments