java-faker
java-faker copied to clipboard
Add random locale selection/rotation for internationalization/localization testing #603
This adds the feature requested in #603.
This is a new feature to support random selection of locale (language, geographic region, culture) used to localize generated data. Support has been added for both random selection of locale with replacement and rotating through all locales at random. This is useful for testing internationalization/localization support across a diverse range of locales:
- Populate a large sample user database for application testing with global user information. This user information may contain names, phone numbers, addresses and other user data localized to regions around the world.
- Automate UX testing of applications that require user input from a global user base. With this new feature, input data will reflect diverse languages, character sets, address formats, and cultural conventions.
JUnit tests and example code to document the use of this feature are included.