import type enApp from './locales/en/app.json';
import type enAuth from './locales/en/auth.json';
import type enCommon from './locales/en/common.json';
import type enErrors from './locales/en/errors.json';

export const SUPPORTED_LOCALES = ['en', 'de'] as const;
export type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];

export const DEFAULT_LOCALE: SupportedLocale = 'en';

export interface Resources {
  common: typeof enCommon;
  auth: typeof enAuth;
  errors: typeof enErrors;
  app: typeof enApp;
}

export type Namespace = keyof Resources;
