Skip to content

Commit

Permalink
Locale root name should be en-NEP (faker-ruby#1899)
Browse files Browse the repository at this point in the history
* Locale root name should be en-NEP

Follow the existing convention name followed in the library: The file
name and the root key should be same.

* Fix test failure
  • Loading branch information
psibi authored and michebble committed Feb 16, 2020
1 parent b094474 commit e66f646
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/locales/en-NEP.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Country => Nepal
# This file is formatted for Nepal.

nep:
en-NEP:
faker:
name:
male_first_name: ["Kamal", "Gopal", "Hari", "Himal", "Baburam", "Prachanda", "Ganesh"]
Expand Down
2 changes: 1 addition & 1 deletion test/test_en_nep_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class TestEnNepLocale < Test::Unit::TestCase
def setup
Faker::Config.locale = 'nep'
Faker::Config.locale = 'en-NEP'
end

def teardown
Expand Down

0 comments on commit e66f646

Please sign in to comment.