import { en } from './en';
import { sl } from './sl';
import type { Locale, Strings } from './types';

export const locales: Locale[] = ['en', 'sl'];
export const defaultLocale: Locale = 'en';

const registry: Record<Locale, Strings> = { en, sl };

export function t(locale: Locale): Strings {
  return registry[locale];
}

export type { Locale, Strings };
