Logo
Explore Help
Register Sign In
letsbe/pn-new-crm
1
0
Fork 0
You've already forked pn-new-crm
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
Files
bd432fc6c718dfd591897ca7c368e05c0eadbbe2
pn-new-crm/messages/en.json

10 lines
129 B
JSON
Raw Normal View History

feat(deps): next-intl scaffold (English-only, future locale-add ready) Minimal next-intl wire-up so future i18n additions are a config change, not a code rewrite. No URL routing changes — there's no `/<locale>/` prefix because there's no second locale today. - `src/i18n/request.ts` — request-scoped locale + messages loader, hard-coded to 'en' - `messages/en.json` — common namespace with a few sample keys - `next.config.ts` — withNextIntlPlugin wraps the config - `src/app/layout.tsx` — wraps body with NextIntlClientProvider so client components can `useTranslations('common')` now When a real locale target appears (Polish for marina users, Italian for broker portal, etc.): 1. Add `messages/<locale>.json` 2. Move route folders under `app/[locale]/` to enable URL routing 3. Add a `routing.ts` with the locale list + default Verified: tsc clean, vitest 1315/1315, next build green. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 22:47:18 +02:00
{
"common": {
"save": "Save",
"cancel": "Cancel",
"delete": "Delete",
"edit": "Edit",
"back": "Back"
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 30ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API