i18n con next-intl: raíz multilenguaje (es por defecto, /en) + textos externalizados
- next-intl 4 (compatible Next 16): routing (es default en RAÍZ sin prefijo, en con /en, localePrefix 'as-needed'), middleware, request config, navigation helpers. - Estructura app/[locale]/ (layout con <html lang>, NextIntlClientProvider, metadata SEO por idioma vía generateMetadata; page home con getTranslations). - Catálogos messages/es.json y en.json: TODOS los textos de la UI (nada hardcodeado en los .tsx, se usan con t()). Verificado: / -> español (lang=es, título ES), /en -> inglés (lang=en, título EN), datos SSR desde MySQL. Añadir idioma = locale en routing + messages/<loc>.json. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"Metadata": {
|
||||
"title": "Nova WoW WoW WotLK 3.4.3 Server - Latino & Español 💎",
|
||||
"description": "Download and play WotLK Classic for free on Nova WoW - WoW WotLK 3.4.3 server - The best WoW server 🔥"
|
||||
},
|
||||
"Home": {
|
||||
"brand": "Nova WoW",
|
||||
"serverStatus": "Server status",
|
||||
"server": "Server",
|
||||
"onlineCharacters": "Online characters",
|
||||
"login": "Login",
|
||||
"address": "Address",
|
||||
"notAvailable": "Not available",
|
||||
"news": "News",
|
||||
"noNews": "There are no news available at the moment.",
|
||||
"link": "Link",
|
||||
"here": "here"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user