feat(locale): add Portuguese (pt) locale

未关闭
#12 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

SahinurDEV/ForgeData 的其他 Issue

查看 SahinurDEV/ForgeData 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。