Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

288 B
Raw Blame
import { useContext } from 'react';

import { LocaleContext } from './localeContext';

export function useLocale() {
  const context = useContext(LocaleContext);
  if (context === undefined) {
    throw new Error('useLocale must be used within a LocaleProvider');
  }
  return context;
}