java-faker icon indicating copy to clipboard operation
java-faker copied to clipboard

Add random locale selection/rotation for internationalization/localization testing #603

Open leoncho opened this issue 4 years ago • 0 comments

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.

leoncho avatar Dec 07 '21 16:12 leoncho