Files
wedding-website/lib/i18n/get-dictionary.ts
T
Raul Lugo 4ced446c9c
Build & Deployment / Build & Deploy (push) Failing after 5s
initial commit
2026-08-10 17:55:26 +02:00

11 lines
272 B
TypeScript

import { dictionaries } from "@/lib/i18n/dictionaries"
import { isSupportedLanguage } from "@/lib/i18n/config"
export function getGuestDictionary(language: string) {
if (isSupportedLanguage(language)) {
return dictionaries[language]
}
return dictionaries.en
}