mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 02:42:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			308 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			308 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { useLanguage } from '@/app/components/header/account-setting/model-provider-page/hooks'
 | |
| import { renderI18nObject } from '@/i18n'
 | |
| 
 | |
| export const useRenderI18nObject = () => {
 | |
|   const language = useLanguage()
 | |
|   return (obj: Record<string, string>) => {
 | |
|     return renderI18nObject(obj, language)
 | |
|   }
 | |
| }
 | 
