jfairy
jfairy copied to clipboard
FR data generation uses Spanish implementation
This code is currently present in Bootstrap.java
:
case FR:
return new EsFairyModule(dataMaster, randomGenerator);
This appears to be an intentional shortcut for using the Spanish identity card and address implementations for the FR locale. I would have expected the IT locale to be treated similar to FR but at present it falls through to the default clause.
default:
LOG.info("No data for your language - using the default EN");
return new EnFairyModule(dataMaster, randomGenerator);
A cleaner construct may be to define an EUFairyModule that can be reused for most EU countries.