Files
landing/src/i18n/index.ts
T
anthony 2606508713 feat: add i18n dictionaries and service data
Locale-aware EN/FR string dictionaries and the two-service data model
(CVE Watch with per-locale URLs, Convert with a single URL).
2026-08-02 15:51:45 +02:00

11 lines
290 B
TypeScript

import { en } from './en';
import { fr } from './fr';
import type { Dictionary } from './en';
import type { Locale } from './locale';
const dictionaries: Record<Locale, Dictionary> = { en, fr };
export function getDictionary(locale: Locale): Dictionary {
return dictionaries[locale];
}