Localize format patterns for company.name #1179
Labels
c: locale
Permutes locale definitions
c: refactor
PR that affects the runtime behavior, but doesn't add new features or fixes bugs
good first issue
Good for newcomers
m: company
Something is referring to the company module
p: 1-normal
Nothing urgent
s: accepted
Accepted feature / Confirmed bug
Milestone
Clear and concise description of the problem
faker/src/modules/company/index.ts
Lines 37 to 41 in fbddaa3
Currently the patterns are hardcoded to match English company names.
Suggested solution
The patterns should be localized so other locales can define custom patterns.
Alternative
No response
Additional context
There seems to be patterns/files for that already, but these needs to be checked/defined and referenced:
faker/src/locales/en/company/name.ts
Lines 1 to 5 in fbddaa3
but there is nothing for that in:
faker/src/definitions/company.ts
Line 6 in fbddaa3
There are also other PRs that work on the method so this should only be done after both:
The text was updated successfully, but these errors were encountered: