RustyCMS: file-based headless CMS — API, Admin UI (content, types, assets), Docker/Caddy, image transform; only demo type and demo content in version control

Made-with: Cursor
This commit is contained in:
Peter Meier
2026-03-12 14:21:49 +01:00
parent aad93d145f
commit 7795a238e1
278 changed files with 15551 additions and 4072 deletions

11
admin-ui/i18n/request.ts Normal file
View File

@@ -0,0 +1,11 @@
import { getRequestConfig } from 'next-intl/server';
import { cookies } from 'next/headers';
export default getRequestConfig(async () => {
const store = await cookies();
const locale = store.get('locale')?.value ?? 'en';
return {
locale,
messages: (await import(`../messages/${locale}.json`)).default,
};
});