dify
This commit is contained in:
9
dify/web/hooks/use-i18n.ts
Normal file
9
dify/web/hooks/use-i18n.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { useLanguage } from '@/app/components/header/account-setting/model-provider-page/hooks'
|
||||
import { renderI18nObject } from '@/i18n-config'
|
||||
|
||||
export const useRenderI18nObject = () => {
|
||||
const language = useLanguage()
|
||||
return (obj: Record<string, string>) => {
|
||||
return renderI18nObject(obj, language)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user