Open-source marketplace for AI Agent skills. Features: - Next.js 15 web app with i18n (en/fa) - CLI tool for skill installation (npx skillhub) - GitHub crawler/indexer with multi-strategy discovery - Security scanning for all indexed skills - Self-hostable with Docker Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
425 B
TypeScript
17 lines
425 B
TypeScript
import { getRequestConfig } from 'next-intl/server';
|
|
import { notFound } from 'next/navigation';
|
|
import { locales, type Locale } from '../i18n';
|
|
|
|
export default getRequestConfig(async ({ requestLocale }) => {
|
|
const locale = await requestLocale;
|
|
|
|
if (!locale || !locales.includes(locale as Locale)) {
|
|
notFound();
|
|
}
|
|
|
|
return {
|
|
locale,
|
|
messages: (await import(`../messages/${locale}.json`)).default,
|
|
};
|
|
});
|