Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[Beta]: Chinese docs pages without a translation show English content

Abierto
#5,296 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
react, typescript

Línea de trabajo

Start with apps/www/src/app/(app)/docs/[[...slug]]/doc-page.tsx at lines 76–77 and compare how it selects the Chinese page with the English fallback. Then inspect content/docs/underline.cn.mdx alongside the English page; the report says the Chinese file exists but appears unused, while footnote and pagination lack Chinese files. Done means Chinese translations render when present and readers get an explicit fallback indication when a page has no translation.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Testing lane

  • Repository: udecode/plate
  • Branch: next
  • Release channel: Beta
  • Exact commit/package version: NOT_ENOUGH_INFO

Summary

After switching the docs language to 中文, many /cn/docs pages show only the site navigation in Chinese. The title, the text and the demo stay in English, with nothing that says the page has no translation. Sin hit it on /cn/docs/footnote, /cn/docs/pagination and /cn/docs/underline, on a desktop and on an Android phone, and reported that switching to Chinese still shows English. The switch itself works. platejs.org/cn shows English on these pages too, so this gap is shared with the released site.

Reproduction

Repro 1: /cn/docs/underline, Android Via

Recorded in Sin's session on 2026-10-24 (Beijing time), on a TYH212U phone (Android 11) in Via 5.6.1, which uses the system WebView 147.

  1. Open https://beta.platejs.org/docs/underline.
  2. Tap the language button at the top right and pick 中文.

Result: the URL becomes /cn/docs/underline, and the menu label changes to 菜单. The title Underline, its description and the Text Formatting demo stay in English. https://platejs.org/cn/docs/underline in Via is in English too.

Repro 2: other pages, desktop
  • /cn/docs/footnote and /cn/docs/pagination: an agent following Sin's report opened both in Safari 27 on 2026-10-21. The navigation is Chinese, and the text and examples are English.
  • /cn/docs/underline: an agent saw the same in a desktop Chromium 154 browser on 2026-10-23.

Expected

The Chinese page shows the docs in Chinese. That is Sin's expectation. Where a page has no translation yet, the reader gets English with no hint that it is a fallback.

Actual

As listed under Results.

Environment

  • Exact next commit/Beta package version: NOT_ENOUGH_INFO. The pages do not show their build.
  • Repro 1: TYH212U, Android 11, Via 5.6.1 with the system WebView 147, 2026-10-24 (Beijing time).
  • Repro 2: Safari 27 on macOS, 2026-10-21; Chromium 154 on a desktop, 2026-10-23.
  • Not tried on an iPhone. Not replayed on the live Beta after 2026-10-24.

Caveat

From a reading of the code and content on next 19023d2e3d:

  • The docs route loads the Chinese page and falls back to the English one when there is none (apps/www/src/app/(app)/docs/[[...slug]]/doc-page.tsx:76-77).
  • content/docs has 208 English .mdx pages and 118 .cn.mdx pages, so about 90 pages have no Chinese file. footnote and pagination are among them.
  • underline.cn.mdx exists but holds no Chinese text. The deployed /cn/docs/underline also showed the English page's description, Add underlined inline text., which underline.cn.mdx does not have. Why the Chinese file was not used was not checked.

Evidence

  • Repro 1: the recording from Sin's session, 0:26, the phone screen on the left and an English panel on the right. The language menu opens at 0:02, and from 0:18 the page is /cn/docs/underline with Chinese navigation and English content. An internal record number in the panel title is covered with a dark box.
  • Screenshot: https://platejs.org/cn/docs/underline in Via, with the menu label 菜单 and the page in English. It is not part of the recording.
Repro 1 — Android Via 5.6.1, /cn/docs/underline

https://github.com/user-attachments/assets/a5510df7-adf8-411e-931b-95030609b314

stable Plate — platejs.org/cn/docs/underline in Via, also English

stable Plate — platejs.org/cn/docs/underline in Via, also English

Related

  • None.
Lenguaje dominante
TypeScript
Estrellas
16.6k
Forks
993
Merge medio
20 h 21 min
PR fusionados (30 d)
60

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de udecode/plate

Todos los issues de udecode/plate

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.