Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Iran (fa_IR) Locale Data
This pull request introduces comprehensive data for Iranian addresses, expanding the faker-cxx library's functionality to generate realistic location-based information for the
fa_IRlocale.Changes Made
Added fa_IR Locale Data
Implemented new data structures for the Iranian locale within
location_data.h.Cities & Provinces
Added exhaustive lists of Iranian cities (
iranCities) and provinces (iranStates).Street Data
Introduced arrays of common Iranian street names (
iranStreetNames) and prefixes (خیابان,بلوار), aligned with Iranian naming conventions.Address Composition Rules
iranStreetFormatsto enforce natural Iranian address patternsiranAddressFormatsto include theپلاکlabel for building numbers, with optionalواحدorطبقهsecondary addresses.Zip Codes
Added 10-digit Iranian zip code format (
##########).Unit Tests
location_test.cppshouldGenerateIranStreetandshouldRespectIranAddressCompositiontests to validate cultural address logic and ensure compositions follow Iranian rules.Why This Matters
This change directly addresses the need for accurate and culturally correct Iranian address generation. By encoding composition rules (e.g.,
میدان X، خیابان Y) and labels (پلاک,واحد,طبقه), generated addresses now reflect realistic Iranian formats instead of generic placeholders.All related tests are passing, including both generic location tests and the new Iran-specific ones.