mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
8 lines
272 B
TypeScript
8 lines
272 B
TypeScript
import { useLocale } from '#i18n'
|
|
import { getModelLanguage, renderI18nObject } from '@/i18n/metadata'
|
|
|
|
export const useRenderI18nObject = () => {
|
|
const language = getModelLanguage(useLocale())
|
|
return (obj: Record<string, string>) => renderI18nObject(obj, language)
|
|
}
|