import { useService } from '@cloudbeaver/core-di' ; import { LocalizationService } from './LocalizationService' ; import type { TLocalizationToken } from './TLocalizationToken' ; export function useTranslate ( ) { const localizationService = useService ( LocalizationService ) ; return localizationService . translate ; }