Replace react-intl with next-intl and consolidate lang files.

Migrate i18n from react-intl to next-intl, eliminating the formatjs
compilation pipeline. Translation files now live as nested JSON in
public/intl/messages/ (single source of truth), removing the duplicated
src/lang/ directory and the copy/compile build steps. The useMessages()
hook API is preserved so all 195+ consumer components are unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mike CaoandClaude Opus 4.6 committed 2026-02-07 01:51:29 -08:00
1 parent fed8d4c71a
commit a1890e9261
118 files changed
+18151 -136657

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import { httpGet } from '@/lib/fetch';
import { getDateLocale, getTextDirection } from '@/lib/lang';
import { setItem } from '@/lib/storage';
import { setLocale, useApp } from '@/store/app';
import enUS from '../../../public/intl/country/en-US.json';
import enUS from '../../../public/intl/messages/en-US.json';
import { useForceUpdate } from './useForceUpdate';
const messages = {