feat(locale): add mr_IN person, address, and phone_number providers#2367
feat(locale): add mr_IN person, address, and phone_number providers#2367RedZapdos123 wants to merge 3 commits intojoke2k:masterfrom
Conversation
Add a new mr_IN locale with core localized providers for person, address, and phone_number.\n\nIncludes provider tests for the new locale in existing test suites. Signed-off-by: Mridankan Mandal <xerontitan90@gmail.com>
Signed-off-by: Mridankan Mandal <xerontitan90@gmail.com>
|
Data sources:
(Since I have Marathi friends, and have lived in the Maharashtra State, I have confirmed the quality of the data.) |
Add Marathi day/month datasets with day_of_week() and month_name() in date_time/mr_IN, and add suffixes support in person/mr_IN with suffix-aware tests. Signed-off-by: Mridankan Mandal <xerontitan90@gmail.com>
Changes done:
Adds Marathi locale support under
mr_INwith these providers:personaddressphone_numberdate_timeIt also adds tests in existing suites:
tests/providers/test_person.py(TestMrIN)tests/providers/test_address.py(TestMrIn)tests/providers/test_phone_number.py(TestMrIn)tests/providers/test_date_time.py(TestMrIN)The problem:
mr_INwas missing as a dedicated locale.The solution:
faker/providers/person/mr_IN/__init__.pywith Marathi first names, last names, prefixes, and suffixes.faker/providers/address/mr_IN/__init__.pywith Marathi city/state/country datasets and India-style address formats.faker/providers/phone_number/mr_IN/__init__.pywith Indian style+91and local variants.faker/providers/date_time/mr_IN/__init__.pywith MarathiDAY_NAMES,MONTH_NAMES,day_of_week(), andmonth_name().Fixes #2355
Validation:
make lint.pytest tests/providers/test_person.py -k MrIN -qpytest tests/providers/test_address.py -k MrIn -qpytest tests/providers/test_phone_number.py -k MrIn -qpytest tests/providers/test_date_time.py -k MrIN -qpytest tests/providers/test_person.py tests/providers/test_date_time.py tests/providers/test_address.py tests/providers/test_phone_number.py -qResult:
785 passed, 3 skipped.AI Assistance Disclosure (REQUIRED):
Disclosure: GitHub Copilot (GPT-5.3-Codex) was used to help draft and implement code/test changes and PR text. All outputs were manually reviewed, edited, and validated through linting and test execution.
Checklist:
make lint.The validation screenshots of the tests run, locally on WSL: