feat(locale): add Portuguese (pt) locale

Aperta
#12 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
78/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SahinurDEV/ForgeData

Tutte le issue di SahinurDEV/ForgeData

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.