-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/add_swedish_language' into development
- Loading branch information
Showing
8 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
se: | ||
numbers: | ||
ones: [noll, en, två, tre, fyra, fem, sex, sju, åtta, nio] | ||
teens: [tio, elva, tolv, tretton, fjorton, femton, sexton, sjutton, arton, nitton] | ||
tens: [noll, tio, tjugo, trettio, fyrtio, femtio, sextio, sjuttio, åttio, nittio] | ||
hundreds: hundra | ||
mega: [ett, tusen, miljoner, miljarder, biljoner, kvadriljon, kvintiljon, sextillion, septillion, octillion, nonillion, decillion] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module NumbersAndWords | ||
module Strategies | ||
class Se < Base | ||
include Families::Latin | ||
include NumbersAndWords::TranslationsHelpers::Se | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module NumbersAndWords | ||
module TranslationsHelpers | ||
module Se | ||
include NumbersAndWords::TranslationsHelpers::Base | ||
include NumbersAndWords::TranslationsHelpers::Families::Latin | ||
|
||
def translation_tens_with_ones numbers | ||
super numbers, '-' | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
to_words: | ||
simple_example: | ||
? | ||
- 1 | ||
- 2 | ||
- 3 | ||
: | ||
- en | ||
- två | ||
- tre | ||
complex_example: | ||
? | ||
- 101 | ||
- 21 | ||
- 13 | ||
: | ||
- en hundra en | ||
- tjugo-en | ||
- tretton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
to_words: | ||
ones: | ||
0: noll | ||
1: en | ||
9: nio | ||
teens: | ||
10: tio | ||
11: elva | ||
19: nitton | ||
20: tjugo | ||
21: tjugo-en | ||
80: åttio | ||
90: nittio | ||
99: nittio-nio | ||
hundreds: | ||
100: en hundra | ||
101: en hundra en | ||
111: en hundra elva | ||
120: en hundra tjugo | ||
121: en hundra tjugo-en | ||
900: nio hundra | ||
909: nio hundra nio | ||
919: nio hundra nitton | ||
990: nio hundra nittio | ||
999: nio hundra nittio-nio | ||
thousands: | ||
1000: en tusen | ||
2000: två tusen | ||
4000: fyra tusen | ||
5000: fem tusen | ||
11000: elva tusen | ||
21000: tjugo-en tusen | ||
999000: nio hundra nittio-nio tusen | ||
999999: nio hundra nittio-nio tusen nio hundra nittio-nio | ||
millions: | ||
1000000: en miljoner | ||
2000000: två miljoner | ||
4000000: fyra miljoner | ||
5000000: fem miljoner | ||
999000000: nio hundra nittio-nio miljoner | ||
999000999: nio hundra nittio-nio miljoner nio hundra nittio-nio | ||
999999000: nio hundra nittio-nio miljoner nio hundra nittio-nio tusen | ||
999999999: nio hundra nittio-nio miljoner nio hundra nittio-nio tusen nio hundra nittio-nio | ||
billions: | ||
1174315110: en miljarder en hundra sjuttio-fyra miljoner tre hundra femton tusen en hundra tio | ||
1174315119: en miljarder en hundra sjuttio-fyra miljoner tre hundra femton tusen en hundra nitton | ||
15174315119: femton miljarder en hundra sjuttio-fyra miljoner tre hundra femton tusen en hundra nitton | ||
35174315119: trettio-fem miljarder en hundra sjuttio-fyra miljoner tre hundra femton tusen en hundra nitton | ||
935174315119: nio hundra trettio-fem miljarder en hundra sjuttio-fyra miljoner tre hundra femton tusen en hundra nitton | ||
trillions: | ||
2935174315119: två biljoner kvadriljon nio hundra trettio-fem miljarder en hundra sjuttio-fyra miljoner tre hundra femton tusen en hundra nitton |