import { getRequestConfig } from "next-intl/server"

export default getRequestConfig(async () => {
  // For now, use a static locale. Later this can be dynamic based on
  // user preferences or cookies.
  const locale = "de"

  return {
    locale,
    messages: (await import(`../../messages/${locale}.json`)).default,
  }
})
