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

feat: add danish country code #2818

Merged
merged 3 commits into from Sep 7, 2023

Conversation

hoshy
Copy link
Contributor

@hoshy hoshy commented Aug 29, 2023

Motivation / Background

This Pull Request has been created because the country code for danish locales is missing.

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]

@@ -52,6 +52,8 @@ da-DK:
- "#{first_name} #{last_name} #{last_name}"
- "#{first_name} #{last_name} #{last_name}"

country_code: '45'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
country_code: '45'
country_code: ['45']

Did this work for you as it is? Looking at the other locales, it seems the generator expects this value to be in an array 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's working with the sting. See 520f812

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, thank you for confirming! Do you mind adding an array just to keep the pattern? If in the future we refactor these files, it's easier if they all follow the same pattern. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, see 02f875e

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please add a test for your implementation?

@hoshy
Copy link
Contributor Author

hoshy commented Sep 6, 2023

could you please add a test for your implementation?

sure. please check 520f812

@stefannibrasil stefannibrasil merged commit dbcf207 into faker-ruby:main Sep 7, 2023
7 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants