finos / datahelix

The DataHelix generator allows you to quickly create data, based on a JSON profile that defines fields and the relationships between them, for the purpose of testing and validation
https://finos.github.io/datahelix/
Apache License 2.0
141 stars 50 forks source link

Locale support #1725

Open jpenren opened 2 years ago

jpenren commented 2 years ago

Feature request

Java Faker library has support for multiple locales Faker faker = new Faker(new Locale("YOUR_LOCALE")); but this is not used in DataHelix. This is an important feature to gain significant data: names, cities are some examples. Perhaps use system locale or a new parameter to establish the locale...

laingsimon commented 2 years ago

Looks like a change to this class could be made. https://github.com/finos/datahelix/blob/master/core/src/main/java/com/scottlogic/datahelix/generator/core/generation/string/generators/FakerGenerator.java

Things to consider: