1 import { useCallback } from 'react';
3 import { useUserSettings } from '@proton/account/userSettings/hooks';
4 import { relocalizeText } from '@proton/shared/lib/i18n/relocalize';
6 const useRelocalizeText = () => {
7 const [userSettings] = useUserSettings();
15 getLocalizedText: () => string;
16 newLocaleCode?: string;
17 relocalizeDateFormat?: boolean;
19 return relocalizeText({
30 export default useRelocalizeText;