Files
trumpsignal-frontend/i18n.ts
T
k 040e1df685 feat: revamp dashboard, trades, and add landing/legal pages
- 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>
2026-04-25 16:04:57 +08:00

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,
}
})