mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 15:57:06 +08:00
card locale
This commit is contained in:
parent
319a54aa2f
commit
bc43e3a9fe
@ -22,6 +22,7 @@ export type Props = {
|
|||||||
footer?: React.ReactNode
|
footer?: React.ReactNode
|
||||||
isLoading?: boolean
|
isLoading?: boolean
|
||||||
loadingFileName?: string
|
loadingFileName?: string
|
||||||
|
locale?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const Card = ({
|
const Card = ({
|
||||||
@ -35,8 +36,10 @@ const Card = ({
|
|||||||
footer,
|
footer,
|
||||||
isLoading = false,
|
isLoading = false,
|
||||||
loadingFileName,
|
loadingFileName,
|
||||||
|
locale: localeFromProps,
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
const locale = useGetLanguage()
|
const defaultLocale = useGetLanguage()
|
||||||
|
const locale = localeFromProps || defaultLocale
|
||||||
|
|
||||||
const { type, name, org, label, brief, icon, verified } = payload
|
const { type, name, org, label, brief, icon, verified } = payload
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user