Skip to content

Commit 938485f

Browse files
authored
Add Bank and Sport to Swedish locale (#2961)
* Add banks to the Swedish locale file * Add sports to the Swedish locale file
1 parent 450c4a8 commit 938485f

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed

lib/locales/sv.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,98 @@ sv:
8080
suffix: [IF, FF, BK, HK, AIF, SK, FC, SK, BoIS, FK, BIS, FIF, IK]
8181
name:
8282
- "#{Address.city} #{suffix}"
83+
84+
bank:
85+
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"]
86+
87+
sport:
88+
summer_olympics: # Source https://sok.se/idrotter.html?ityp=Alla&iseason=Sommar&numberOfHitsToShow=48
89+
- Badminton
90+
- Baseboll/Softboll
91+
- Basketboll
92+
- Bordtennis
93+
- Boxning
94+
- Brottning
95+
- Bågskytte
96+
- Cricket
97+
- Cykel
98+
- Danssport
99+
- Dragkamp
100+
- Flaggfotboll
101+
- Fotboll
102+
- Friidrott
103+
- Fäktning
104+
- Golf
105+
- Gymnastik
106+
- Handboll
107+
- Judo
108+
- Kanot
109+
- Karate
110+
- Kickboxning
111+
- Lacrosse
112+
- Landhockey
113+
- Modern femkamp
114+
- Muay Thai
115+
- Padel
116+
- Ridsport
117+
- Rodd
118+
- Rugby
119+
- Segling
120+
- Simidrott
121+
- Skateboard
122+
- Skyttesport
123+
- Sportklättring
124+
- Squash
125+
- Surfing
126+
- Taekwondo
127+
- Tennis
128+
- Teqball
129+
- Triathlon
130+
- Tyngdlyftning
131+
- Vattenskidor
132+
- Volleyboll
133+
winter_olympics: # Source https://sok.se/idrotter.html?ityp=Alla&iseason=Vinter&numberOfHitsToShow=48
134+
- Alpint
135+
- Backhoppning
136+
- Curling
137+
- Freeskiing
138+
- Freestyle
139+
- Ishockey
140+
- Konståkning
141+
- Kälksport
142+
- Längdskidåkning
143+
- Nordisk kombination
144+
- Skidskytte
145+
- Skimo
146+
- Skridsko
147+
- Snowboard
148+
summer_paralympics: # Source https://www.paralympics.se/paralympics/paralympics/idrotter/sommar
149+
- Badminton
150+
- Boccia
151+
- Bordtennis
152+
- Bågskytte
153+
- Bänkpress
154+
- Cykel
155+
- Fotboll 5-a-side
156+
- Friidrott
157+
- Fäktning
158+
- Goalball
159+
- Judo
160+
- Kanot
161+
- Ridsport
162+
- Rodd
163+
- Rullstolsbasket
164+
- Rullstolsrugby
165+
- Rullstolstennis
166+
- Simning
167+
- Sittande volleyboll
168+
- Sportskytte
169+
- Taekwondo
170+
- Triathlon
171+
winter_paralympics: # Source https://www.paralympics.se/paralympics/paralympics/idrotter/vinter
172+
- Alpin skidåkning
173+
- Längdskidor
174+
- Paraishockey
175+
- Rullstolscurling
176+
- Skidskytte
177+
- Snowboard

test/test_sv_locale.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,15 @@ def test_sv_team_methods
6363
assert_kind_of String, Faker::Team.suffix
6464
assert_kind_of String, Faker::Team.name
6565
end
66+
67+
def test_sv_bank_methods
68+
assert_kind_of String, Faker::Bank.name
69+
end
70+
71+
def test_sv_sport_methods
72+
assert_kind_of String, Faker::Sport.summer_olympics_sport
73+
assert_kind_of String, Faker::Sport.winter_olympics_sport
74+
assert_kind_of String, Faker::Sport.summer_paralympics_sport
75+
assert_kind_of String, Faker::Sport.winter_paralympics_sport
76+
end
6677
end

0 commit comments

Comments
 (0)