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

North Dakota missing from en/driving_license.yml #2148

Closed
dterhorst-zz opened this issue Oct 8, 2020 · 0 comments · Fixed by #2149
Closed

North Dakota missing from en/driving_license.yml #2148

dterhorst-zz opened this issue Oct 8, 2020 · 0 comments · Fixed by #2149

Comments

@dterhorst-zz
Copy link

Describe the Bug

faker/lib/locales/en/driving_license.yml is missing an entry for north_dakota.

To Reproduce

Faker::DrivingLicence.usa_driving_licence("North Dakota")

Expected Behavior

A license number would be generated in one of the following formats:

  • 3 letters and 6 digits
  • 9 digits

Actual Behavior

An exception is raised:

translation missing: en.faker.driving_licence.usa.north_dakota (I18n::MissingTranslationData)
Invalid state code passed for USA, 'North Dakota' (Faker::InvalidStatePassed)

Additional Context

faker (2.14.0)

It's also annoying that usa_driving_licence only works with the UK spelling (licence) and does not have an alias for the US spelling (license).

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 a pull request may close this issue.

1 participant