Closed loukaspd closed 1 year ago
Use an underscore, not a hyphen as shown below:
void Main()
{
try {
var f1 = new Faker("en_CA");
f1.Address.State().Dump();
}
catch {
"Underscore 'en_CA' doesn't work".Dump();
}
try
{
var f2 = new Faker("en-CA");
f2.Address.State().Dump();
}
catch {
"Hyphen 'en-CA' doesn't work".Dump();
}
}
Version Information
I'm trying to use bogus with locale
en-CA
but I get the following error:The error appears when I'm trying to instantiate the
Faker
class with this locale: