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

Add Bank and Sport to Swedish locale #2961

Merged
merged 2 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions lib/locales/sv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,98 @@ sv:
suffix: [IF, FF, BK, HK, AIF, SK, FC, SK, BoIS, FK, BIS, FIF, IK]
name:
- "#{Address.city} #{suffix}"

bank:
name: ["Swedbank", "Handelsbanken", "SEB", "Nordea", "Danske Bank","Skandiabanken","Länsförsäkringar Bank", "Sparbanken Syd", "ICA Banken", "Forex Bank", "Resurs Bank", "Avanza Bank", "Nordnet Bank", "SBAB", "Landshypotek Bank"]

sport:
summer_olympics: # Source https://sok.se/idrotter.html?ityp=Alla&iseason=Sommar&numberOfHitsToShow=48
- Badminton
- Baseboll/Softboll
- Basketboll
- Bordtennis
- Boxning
- Brottning
- Bågskytte
- Cricket
- Cykel
- Danssport
- Dragkamp
- Flaggfotboll
- Fotboll
- Friidrott
- Fäktning
- Golf
- Gymnastik
- Handboll
- Judo
- Kanot
- Karate
- Kickboxning
- Lacrosse
- Landhockey
- Modern femkamp
- Muay Thai
- Padel
- Ridsport
- Rodd
- Rugby
- Segling
- Simidrott
- Skateboard
- Skyttesport
- Sportklättring
- Squash
- Surfing
- Taekwondo
- Tennis
- Teqball
- Triathlon
- Tyngdlyftning
- Vattenskidor
- Volleyboll
winter_olympics: # Source https://sok.se/idrotter.html?ityp=Alla&iseason=Vinter&numberOfHitsToShow=48
- Alpint
- Backhoppning
- Curling
- Freeskiing
- Freestyle
- Ishockey
- Konståkning
- Kälksport
- Längdskidåkning
- Nordisk kombination
- Skidskytte
- Skimo
- Skridsko
- Snowboard
summer_paralympics: # Source https://www.paralympics.se/paralympics/paralympics/idrotter/sommar
- Badminton
- Boccia
- Bordtennis
- Bågskytte
- Bänkpress
- Cykel
- Fotboll 5-a-side
- Friidrott
- Fäktning
- Goalball
- Judo
- Kanot
- Ridsport
- Rodd
- Rullstolsbasket
- Rullstolsrugby
- Rullstolstennis
- Simning
- Sittande volleyboll
- Sportskytte
- Taekwondo
- Triathlon
winter_paralympics: # Source https://www.paralympics.se/paralympics/paralympics/idrotter/vinter
- Alpin skidåkning
- Längdskidor
- Paraishockey
- Rullstolscurling
- Skidskytte
- Snowboard
11 changes: 11 additions & 0 deletions test/test_sv_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,15 @@ def test_sv_team_methods
assert_kind_of String, Faker::Team.suffix
assert_kind_of String, Faker::Team.name
end

def test_sv_bank_methods
assert_kind_of String, Faker::Bank.name
end

def test_sv_sport_methods
assert_kind_of String, Faker::Sport.summer_olympics_sport
assert_kind_of String, Faker::Sport.winter_olympics_sport
assert_kind_of String, Faker::Sport.summer_paralympics_sport
assert_kind_of String, Faker::Sport.winter_paralympics_sport
end
end
Loading