Feat/i18n restructure (#2529)
This commit is contained in:
parent
91ea6fe4ee
commit
9574730050
140 changed files with 448 additions and 659 deletions
|
|
@ -6,7 +6,7 @@ import cn from 'classnames'
|
|||
import AppIcon from '../../base/app-icon'
|
||||
import type { Collection } from '@/app/components/tools/types'
|
||||
import I18n from '@/context/i18n'
|
||||
import { getModelRuntimeSupported } from '@/utils/language'
|
||||
import { getLanguage } from '@/i18n/language'
|
||||
|
||||
type Props = {
|
||||
isCurrent: boolean
|
||||
|
|
@ -20,7 +20,7 @@ const Item: FC<Props> = ({
|
|||
onClick,
|
||||
}) => {
|
||||
const { locale } = useContext(I18n)
|
||||
const language = getModelRuntimeSupported(locale)
|
||||
const language = getLanguage(locale)
|
||||
return (
|
||||
<div
|
||||
className={cn(isCurrent && 'bg-white shadow-xs rounded-lg', 'mt-1 flex h-9 items-center px-2 space-x-2 cursor-pointer')}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue