feat(locale): add Portuguese (pt) locale

オープン
#12 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
78/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SahinurDEV/ForgeData のほかの issue

SahinurDEV/ForgeData の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。