Component: Locale Picker
维护者通常 1 天内回复
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- react, tailwindcss, typescript
调研方向
Read ARCHITECTURE.md and CONTRIBUTING.md first, then look at an existing picker in src/registry/components/ to copy its prop, ref and controlled-state conventions. Wire the new component through src/registry/components/index.ts and src/registry/registry.ts, and add tests under test/. Done means the component exports a typed props interface, its docs page is in content/docs/components/, its live demo is in src/components/docs/, and the tests pass.
由索引模型根据 Issue 内容生成。
描述
Component: Locale Picker
Build a picker that lets users choose their region-level preferences — not just language — e.g. for a settings page.
Requirements
- TypeScript-first with exported props interface
- Follows the conventions in ARCHITECTURE.md (controlled/uncontrolled via
useControllableState, forwarded ref,...restpassthrough, sharedLocaletype) - Lets the user choose a region and shows derived defaults: currency, date format preview, number format preview, first day of week
- Uses
Intl.DisplayNames,Intl.NumberFormat,Intl.DateTimeFormat(andIntl.Locale#getWeekInfo()where available) - Searchable list, keyboard accessible
- RTL-aware, dark mode via
dark:variants - Tailwind CSS compatible
Expected API
<LocalePicker
defaultValue="en-IN"
regions={["IN", "US", "GB", "DE", "JP"]}
onValueChange={(locale) => console.log(locale)}
/>
Deliverables
- Component source in
src/registry/components/ - Export in
src/registry/components/index.tsand entry insrc/registry/registry.ts - Tests in
test/ - Documentation page in
content/docs/components/and live demo insrc/components/docs/
See CONTRIBUTING.md.
- 主要语言
- TypeScript
- 星标
- 39
- 派生
- 16
- 平均合并
- 2 天 5 小时
- 30 天内合并 PR
- 12
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
babelize/babelize-elements 的其他 Issue
-
bug website
难度 2/5 1-3 小时 新手友好度 78/100
babelize/babelize-elements#46 ·
维护者通常 1 天内回复
-
bug language-switcher priority: medium
难度 2/5 1-3 小时 新手友好度 72/100
babelize/babelize-elements#26 ·
维护者通常 1 天内回复
-
component enhancement help wanted
难度 5/5 一周以上 新手友好度 35/100
babelize/babelize-elements#47 ·
维护者通常 1 天内回复
-
bug component rtl-layout
难度 3/5 1-2 天 新手友好度 68/100
babelize/babelize-elements#45 ·
维护者通常 1 天内回复
-
Website: revamp and improve the landing page可能已有人在做 @anjalinayak01 于 7 天前认领。 未关闭enhancement help wanted priority: medium website
难度 4/5 一周以上 新手友好度 30/100
babelize/babelize-elements#37 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 babelize/babelize-elements 的全部 Issue
相似的 Issue
-
Object parameters lose their structure when resources is enabled可能已有人在做 @asts-top 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
jaegertracing/jaeger-ui#4618 ·
维护者通常 1 天内回复
-
pending close triaging
难度 2/5 1-3 小时 新手友好度 65/100
anomalyco/opencode#56765 · 1 条评论 ·
维护者通常 1 天内回复
-
area:plugins enhancement platform:vscode
难度 2/5 1-3 小时 新手友好度 88/100
anthropics/claude-code#103166 ·
维护者通常 1 天内回复
-
Types: FlashListProps imports ViewabilityConfig from react-native, removed in RN 0.87+可能已有人在做 @efegokdemir 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
Shopify/flash-list#2540 ·