Repository navigation
v1.8.8 — AI Daily en chino: cada nota también en zh (locales.zh) - #57
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nativa Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qué hace
Pediste que las noticias salgan también en chino, como salen en español e inglés. Este PR prepara el sitio para eso, y los prompts nuevos de las rutinas las hacen escribir el chino.
locales.zhentra como tercer idioma opcional de cada nota (lib/blog/types.ts).digestItemsaceptatitleZh./zh:zh_CN,inLanguagezh-CN, hreflang es/en/zh, sitemap, gemelo.mde imagen OG (con el título en inglés, porquenext/ogno tiene fuente CJK);/zh/blog(y/zh/blog/tech) pasa a ser propio cuando tiene al menos una nota en chino, y las versiones es/en lo anuncian en su hreflang;/ptsigue leyendo la edición en inglés.docs/editorial/routines/): AI Daily (noche), AI Daily (mañana) y AI Daily Tech, con un bloque nuevo de chino.docs/i18n/zh-glossary.md.PASTE_…_HERE: se pegan junto con la rotación. No contienen ningún secreto.seo:checkaprende la regla nueva: las notas chinas listadas tienen que nombrar sus originales es/en, y/zh/blog/weeklynunca aparece.Pruebas
npm test: 94 archivos, 2.056 tests y 5 omitidos (emulador), en verde. Nuevos:blog.zh.test.ts(13): contrato, sitemap, metadatos y marquesina;blog.server.spec.ts: búsqueda por slug zh, caída a inglés, listado mixto y publicación./zh/blog/<slug>con título chino, canonical propio yzh_CN;/zh/blogy la nota zh con hreflang recíproco;.mdzh responde 200 y el de una nota sin chino da 404;seo:checksobre el build de producción y sobre el servidor de desarrollo con la nota china: corriendo; el resultado va en el reporte de release.Para que empiece a funcionar
Pegar los prompts nuevos en las rutinas al rotar los secretos (
docs/editorial/routines/README.md). Hasta entonces las rutinas siguen publicando en es/en, como hoy.🤖 Generated with Claude Code