Description
Version
System:
OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
CPU: (16) x64 AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 11.40 GB / 15.18 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
npmPackages:
@rspress/plugin-api-docgen: ^1.42.0 => 1.42.0
rspress: ^1.40.2 => 1.42.0
Details
The plugin generates documentation only for English and Chinese languages.
rspress/packages/plugin-api-docgen/src/index.ts
Lines 31 to 34 in a2470d6
rspress/packages/plugin-api-docgen/src/docgen.ts
Lines 100 to 109 in a2470d6
rspress/packages/plugin-api-docgen/static/global-components/API.tsx
Lines 14 to 15 in a2470d6
Other languages will be ignored
The plugin documentation does not contain any language support restrictions.
Reproduce link
https://codesandbox.io/p/devbox/prod-bush-yr4yvc?workspaceId=ws_Ei2fajyF27vYb9X5Z2t9Gy
Reproduce Steps
- Open Russian version
- Open English version
Expected result:
The plugin works with any languages(English as a fallback)
Actual result:
The plugin works only with English language
Activity