Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompanyName format not localized #567

Open
aueelis opened this issue Oct 16, 2024 · 0 comments
Open

CompanyName format not localized #567

aueelis opened this issue Oct 16, 2024 · 0 comments

Comments

@aueelis
Copy link

aueelis commented Oct 16, 2024

Bogus NuGet Package

35.6.0

.NET Version

.NET 8.0

Visual Studio Version

No response

What operating system are you using?

Windows

What locale are you using with Bogus?

de

Problem Description

When generating company names, I only get names in the hardcoded English formats from Company.cs.

LINQPad Example or Reproduction Steps

new Faker<Company>("de").RuleForType(typeof(string), f => f.Company.CompanyName()).Generate(10).Dump();

public class Company {
	public string Name { get; set; }
}

Expected Behavior

I'd expect the formats in the localization files to be used.

Actual Behavior

Only the hardcoded formats are used.

The example above creates something like the following, which uses German names but only three English formats:

Loska - Streller
Ochs, Neuendorf and Köpernick
Ibe AG
Sonnabend OHG
Gehrig, Sahner and Schult

Known Workarounds

No response

Could you help with a pull-request?

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant