joke2k / faker

Faker is a Python package that generates fake data for you.
https://faker.readthedocs.io
MIT License
17.68k stars 1.93k forks source link

Add Provider for vi_VN (Vietnamese) #2075

Closed ntd1683 closed 1 month ago

ntd1683 commented 2 months ago

Currently, the Faker library does not provide support for Vietnamese locale (vi_VN). To improve the localization and make it more useful for Vietnamese users, we should add a provider for Vietnamese names and other locale-specific data.

Steps to reproduce

from faker import Faker
fake = Faker("vi_VN")

Expected behavior

The provider should generate realistic Vietnamese names and other locale-specific data, such as:

Vietnamese male and female first names Vietnamese last names Addresses formatted according to Vietnamese standards

Actual behavior

Currently, the vi_VN locale does not exist, and attempting to use it results in errors or fallback data.

ntd1683 commented 2 months ago

@joke2k I have added the Vietnamese language, I checked it but there is an error due to your old code. I hope you can look and approve, I see you don't have Vietnamese yet.