[RFC]: Add internationalization (i18n) support — starting with Korean 🚀
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- next.js, react, typescript
调研方向
首先检查 apps/landing/next.config.ts 以及 apps/landing/src/app/ 下的当前结构。然后检查 Header 组件和列出的文档路径,以评估所提议的 locale 路由、翻译和 MDX 方案。维护者达成一致方案,并具备一个可正常工作的英语/韩语静态导出结构后,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Summary
The Devup UI landing site is currently English-only (except for the footer which contains Korean company information). This RFC proposes adding i18n infrastructure to support multiple languages, with Korean (ko) as the first translation target.
Motivation
Devup UI originates from a Korean company (데브파이브) and has a growing Korean developer community. Korean documentation and UI would significantly lower the barrier to adoption for Korean-speaking developers. The architecture we propose is also extensible for future languages (Japanese, Chinese, etc.).
Technical Constraints
The landing app uses output: 'export' in next.config.ts, which means:
- No Next.js Middleware (locale detection via middleware is not available)
- All pages must be statically generated at build time
- Locale must be encoded in the URL path (e.g.,
/en/docs/overview,/ko/docs/overview)
Proposed Approach
1. Routing Architecture
Move all routes under a [locale] dynamic segment using the Next.js App Router:
src/app/
[locale]/ ← new top-level wrapper
page.tsx ← home page
(detail)/
docs/
overview/page.tsx (locale-aware, loads correct .mdx)
...
Static params generated via generateStaticParams():
export function generateStaticParams() {
return [{ locale: 'en' }, { locale: 'ko' }]
}
A root page.tsx handles / → /en as the default locale.
2. i18n Library
Recommended: next-intl (no-middleware mode)
- Official support for
output: 'export' - Works with React Server Components
- TypeScript-safe message keys
- Minimal bundle overhead
Alternative: a lightweight custom solution using plain JSON dictionaries — lower dependency cost, but more manual work.
3. UI String Translations
All hardcoded English strings in .tsx files (e.g., TopBanner, Feature, Header/Menu, LeftMenu) would be extracted into locale dictionaries:
src/
locales/
en.json
ko.json
4. MDX Documentation Strategy
Locale-aware file convention:
docs/overview/
page.en.mdx ← current content, renamed
page.ko.mdx ← new Korean translation
page.tsx ← loads correct .mdx based on [locale]
This makes English→Korean diffs easy to review when source content changes.
5. Language Switcher UI
A locale toggle (e.g., EN | 한국어) in the Header component, linking to the equivalent page in the other locale.
Phased Rollout
| Phase | Scope | Effort |
|---|---|---|
| 1 | i18n infra: [locale] routing, next-intl setup, language switcher |
Medium |
| 2 | UI string translations (TSX files) — en + ko | Medium |
| 3 | MDX documentation translation — ko | High (content work) |
Phase 1 and 2 can be done without any translated content yet (en is the default). Phase 3 is incremental — pages can show a "Translation in progress" fallback until the Korean version is ready.
Maintenance Considerations
For a sustainable open-source i18n workflow:
- English is source of truth — all changes start in
en, Korean follows - CI check: Verify all English translation keys exist in every locale file
- Contributing guide: Add a "Translations" section to
CONTRIBUTING.md - Stale translation notice: Display a banner on Korean pages when the English source has been updated but the translation has not been synced
Files Affected
apps/landing/next.config.ts— add i18n configapps/landing/src/app/— restructure under[locale]- All
*.mdxdocumentation files (86+) — need Korean counterparts eventually apps/landing/src/components/Header/— add language switcher- New:
apps/landing/src/locales/en.json,ko.json
Questions for Maintainers
- Is
next-intlacceptable as a new dependency, or do you prefer a custom/zero-dependency solution? - Should the default locale (
/) been, or should it attempt browser language detection? - Are there plans to support other languages (e.g.,
ja,zh) in parallel, or Korean-first? - Who would own ongoing Korean translation accuracy? (Community-driven via PRs, or a dedicated maintainer?)
References
- 主要语言
- Rust
- 星标
- 359
- 派生
- 31
- 平均合并
- 3 小时 26 分钟
- 30 天内合并 PR
- 44
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dev-five-git/devup-ui 的其他 Issue
-
components
难度 5/5 一周以上 新手友好度 20/100
dev-five-git/devup-ui#441 ·
-
components
难度 3/5 1-2 天 新手友好度 30/100
dev-five-git/devup-ui#432 ·
-
components
难度 2/5 1-3 小时 新手友好度 55/100
dev-five-git/devup-ui#430 ·
-
enhancement
dev-five-git/devup-ui#411 · 已指派 1 人 ·
-
components
难度 5/5 一周以上 新手友好度 15/100
dev-five-git/devup-ui#365 ·
查看 dev-five-git/devup-ui 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
bug core
难度 2/5 1-3 小时 新手友好度 86/100
-
JIT-compiled number -> Decimal conversion silently overflows instead of raising DECIMAL_OVERFLOW 未关闭fuzz
难度 2/5 1-3 小时 新手友好度 82/100
ClickHouse/ClickHouse#122114 ·
-
难度 1/5 1 小时以内 新手友好度 92/100
linebender/vello_svg#90 ·
-
难度 2/5 1-3 小时 新手友好度 74/100