-
-
Notifications
You must be signed in to change notification settings - Fork 949
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
feat(name): add full_name_pattern configuration #1211 #1216
Closed
satoc0629
wants to merge
14
commits into
faker-js:next
from
satoc0629:feat/modules/name/fullNamePattern
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
251f425
feat(dev): add male_first_name,female_first_name, jp locale
satoc0629 2f0fbbe
feat(dev): Add full_name_pattern configuration(#1211).
satoc0629 07eb727
feat(dev): Add full_name_pattern configuration(#1211).
satoc0629 3195672
feat(dev): merge main
satoc0629 0a9168d
feat(dev): Add full_name_pattern configuration(#1211).
satoc0629 b1b10b0
feat(dev): Add full_name_pattern configuration(#1211).
satoc0629 408ffa5
feat(dev): Add full_name_pattern configuration(#1211).
satoc0629 8bd77ba
feat(dev): Add full_name_pattern configuration(#1211).
satoc0629 e0d58b1
Merge branch 'main' into feat/modules/name/fullNamePattern
satoc0629 248afea
feat(dev): Add full_name_pattern configuration(#1211).
satoc0629 f7e9d55
feat(dev): Add full_name_pattern configuration(#1211).
satoc0629 8178b98
feat(dev): Add full_name_pattern configuration(#1211).
satoc0629 5756474
feat(dev): Add full_name_pattern configuration(#1211).
satoc0629 073140a
feat(dev): Add full_name_pattern configuration(#1211).
satoc0629 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
export default ['{{name.last_name}} {{name.first_name}}']; | ||
export default [ | ||
'{{name.last_name}} {{name.first_name}}', | ||
'{{name.male_last_name}} {{name.male_first_name}}', | ||
'{{name.female_last_name}} {{name.female_first_name}}', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default [ | ||
'{{name.female_prefix}} {{name.female_first_name}} {{name.female_last_name}}', | ||
'{{name.female_first_name}} {{name.female_last_name}}', | ||
'{{name.female_first_name}} {{name.female_last_name}}', | ||
'{{name.female_first_name}} {{name.female_last_name}}', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default [ | ||
'{{name.male_prefix}} {{name.male_first_name}} {{name.male_last_name}}', | ||
'{{name.male_first_name}} {{name.male_last_name}}', | ||
'{{name.male_first_name}} {{name.male_last_name}}', | ||
'{{name.male_first_name}} {{name.male_last_name}}', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a fan of this, as this hard to maintain/extend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ST-DDT
Is this an implementation issue?
Or is it an idea problem?
Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it would be nice of you could at least remove/merge the male/female parts and then call it with the (pregenerated) gender option.
Or maybe, doing a faker.mustache with the method names, followed by a faker.fake with the locale keys.
Not sure what "feels" best.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ST-DDT
Please take a look at the following commit.
073140a