feat(locale): add Portuguese (pt) locale

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
78/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
internationalization

Hướng nghiên cứu

Read src/locales/types.ts and use src/locales/es.ts or de.ts as a template for src/locales/pt.ts; then register the locale in src/locales/index.ts. Add locale tests under tests/locales/ and run npm run test:coverage, which should retain 100% coverage. Update the locale list and count in the Locales section and other mentions in README.md, plus docs/docs.html; done means Portuguese is registered, tested, and documented.

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

Mô tả

enhancement good first issue hacktoberfest help wanted

ForgeData ships 9 built-in locales (en, bn, hi, ar, ja, fr, de, es, zh). Portuguese is one of the most widely spoken languages and is not covered yet.

What to do
  1. Add src/locales/pt.ts exporting a LocaleData object (shape: src/locales/types.ts; use src/locales/es.ts or de.ts as a template) with realistic Portuguese/Brazilian first names (male/female), last names, job titles, professions, cities, states, countries, company suffixes (e.g. Ltda., S.A.), catch-phrase words and lorem words.
  2. Register it in src/locales/index.ts (import, re-export, add to builtInLocales).
  3. Add tests (e.g. in tests/locales/) — coverage must stay at 100% (npm run test:coverage).
  4. Update the locale list in README.md (Locales section + "9 built-in locales" mentions) and docs/docs.html.

PR title: feat(locale): add Portuguese (pt) locale. See CONTRIBUTING.md.

Other locales (e.g. it, ko, ru, tr, id) are welcome too — please open a separate issue/PR per locale.

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 SahinurDEV/ForgeData

Tất cả issue của SahinurDEV/ForgeData

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.