Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Component: Locale Picker

Đang mở
#33 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@ujwalbajaj đang làm issue này rồi.

Từ ngày 15/10/2026.

  • #49 của @ujwalbajaj — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, tailwindcss, typescript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

component good first issue locale-picker

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, ...rest passthrough, shared Locale type)
  • 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 (and Intl.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.ts and entry in src/registry/registry.ts
  • Tests in test/
  • Documentation page in content/docs/components/ and live demo in src/components/docs/

See CONTRIBUTING.md.

Ngôn ngữ chính
TypeScript
Star
39
Fork
16
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của babelize/babelize-elements

Tất cả issue của babelize/babelize-elements

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.