040e1df685
- Major UI updates across dashboard, analytics, posts, trades, settings - New landing page, robots/sitemap, contact/privacy/terms pages - Updated globals.css with extensive styling and new landing.css - Refactor signedRequest, realtime data hook, and dashboard store Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
17 lines
610 B
TypeScript
17 lines
610 B
TypeScript
import { getRequestConfig } from 'next-intl/server'
|
|
|
|
// English-only. Other locales were listed historically but have no message
|
|
// files, which caused browsers with non-English Accept-Language to be routed
|
|
// to a missing bundle. Keep in sync with messages/*.json.
|
|
export const locales = ['en'] as const
|
|
export type Locale = (typeof locales)[number]
|
|
export const defaultLocale: Locale = 'en'
|
|
|
|
export default getRequestConfig(async ({ requestLocale }) => {
|
|
const locale = (await requestLocale) ?? defaultLocale
|
|
return {
|
|
locale,
|
|
messages: (await import(`./messages/${locale}.json`)).default,
|
|
}
|
|
})
|