- Updated Header.tsx to use current locale in navigation links for proper routing - Increased MiniSparkline chart dimensions in market-stats.tsx for better visibility - Added under-construction translations for market, about, and prices pages in en.json and pt.json - Minor formatting adjustments with added blank lines across multiple components These changes improve internationalization and user experience by ensuring locale-aware navigation and providing informative placeholders for upcoming features.
19 lines
396 B
TypeScript
19 lines
396 B
TypeScript
import { getRequestConfig } from "next-intl/server";
|
|
import { routing } from "./routing";
|
|
|
|
export default getRequestConfig(async ({ requestLocale }) => {
|
|
let locale = await requestLocale;
|
|
if (!locale || !routing.locales.includes(locale as any)) {
|
|
locale = routing.defaultLocale;
|
|
}
|
|
return {
|
|
locale,
|
|
messages: (await import(`../messages/${locale}.json`)).default,
|
|
};
|
|
});
|
|
|
|
|
|
|
|
|
|
|