Skip to content

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

531 B
Raw Blame
import type { Locale as AntdLocale } from 'antd/lib/locale';
import type { ConfigType } from 'dayjs';
import { createContext } from 'react';

import type { Locale } from './dictionaries';

export interface LocaleContextValue {
  locale: Locale;
  setLocale: (locale: Locale) => void;
  antdLocale: AntdLocale;
  formatNumber: (value: number, options?: Intl.NumberFormatOptions) => string;
  formatRelativeTime: (date: ConfigType) => string;
}

export const LocaleContext = createContext<LocaleContextValue | undefined>(undefined);