numbers_and_words 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +10 -0
  3. data/lib/numbers_and_words/i18n/locales/numbers.cs.yml +37 -26
  4. data/lib/numbers_and_words/i18n/locales/numbers.de.yml +5 -4
  5. data/lib/numbers_and_words/i18n/locales/numbers.en-GB.yml +24 -8
  6. data/lib/numbers_and_words/i18n/locales/numbers.en.yml +10 -6
  7. data/lib/numbers_and_words/i18n/locales/numbers.es.yml +6 -5
  8. data/lib/numbers_and_words/i18n/locales/numbers.et.yml +4 -4
  9. data/lib/numbers_and_words/i18n/locales/numbers.fr.yml +45 -41
  10. data/lib/numbers_and_words/i18n/locales/numbers.hu.yml +11 -7
  11. data/lib/numbers_and_words/i18n/locales/numbers.it.yml +3 -3
  12. data/lib/numbers_and_words/i18n/locales/numbers.ka.yml +6 -14
  13. data/lib/numbers_and_words/i18n/locales/numbers.lt.yml +4 -5
  14. data/lib/numbers_and_words/i18n/locales/numbers.lv.yml +4 -5
  15. data/lib/numbers_and_words/i18n/locales/numbers.nl.yml +4 -3
  16. data/lib/numbers_and_words/i18n/locales/numbers.pt-BR.yml +51 -22
  17. data/lib/numbers_and_words/i18n/locales/numbers.pt.yml +21 -8
  18. data/lib/numbers_and_words/i18n/locales/numbers.ru.yml +39 -27
  19. data/lib/numbers_and_words/i18n/locales/numbers.se.yml +3 -3
  20. data/lib/numbers_and_words/i18n/locales/numbers.tr.yml +3 -3
  21. data/lib/numbers_and_words/i18n/locales/numbers.ua.yml +39 -15
  22. data/lib/numbers_and_words/i18n/locales/numbers.vi.yml +13 -0
  23. data/lib/numbers_and_words/strategies/array_joiner/languages.rb +1 -0
  24. data/lib/numbers_and_words/strategies/array_joiner/languages/en-GB.rb +1 -1
  25. data/lib/numbers_and_words/strategies/array_joiner/languages/families/base.rb +3 -3
  26. data/lib/numbers_and_words/strategies/array_joiner/languages/vi.rb +10 -0
  27. data/lib/numbers_and_words/strategies/figures_converter/decorators.rb +1 -0
  28. data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/fractional.rb +1 -1
  29. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi.rb +3 -0
  30. data/lib/numbers_and_words/strategies/figures_converter/{languages/families/latin.rb → decorators/vi/base.rb} +3 -4
  31. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/fractional.rb +12 -0
  32. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/integral.rb +12 -0
  33. data/lib/numbers_and_words/strategies/figures_converter/languages.rb +11 -15
  34. data/lib/numbers_and_words/strategies/figures_converter/languages/base.rb +2 -2
  35. data/lib/numbers_and_words/strategies/figures_converter/languages/cs.rb +2 -4
  36. data/lib/numbers_and_words/strategies/figures_converter/languages/de.rb +5 -7
  37. data/lib/numbers_and_words/strategies/figures_converter/languages/en.rb +0 -2
  38. data/lib/numbers_and_words/strategies/figures_converter/languages/es.rb +0 -2
  39. data/lib/numbers_and_words/strategies/figures_converter/languages/et.rb +0 -2
  40. data/lib/numbers_and_words/strategies/figures_converter/languages/fr.rb +10 -12
  41. data/lib/numbers_and_words/strategies/figures_converter/languages/hu.rb +0 -2
  42. data/lib/numbers_and_words/strategies/figures_converter/languages/it.rb +0 -1
  43. data/lib/numbers_and_words/strategies/figures_converter/languages/ka.rb +10 -12
  44. data/lib/numbers_and_words/strategies/figures_converter/languages/lt.rb +6 -12
  45. data/lib/numbers_and_words/strategies/figures_converter/languages/lv.rb +2 -14
  46. data/lib/numbers_and_words/strategies/figures_converter/languages/nl.rb +0 -2
  47. data/lib/numbers_and_words/strategies/figures_converter/languages/pt-BR.rb +1 -3
  48. data/lib/numbers_and_words/strategies/figures_converter/languages/pt.rb +1 -3
  49. data/lib/numbers_and_words/strategies/figures_converter/languages/se.rb +0 -1
  50. data/lib/numbers_and_words/strategies/figures_converter/languages/tr.rb +2 -4
  51. data/lib/numbers_and_words/strategies/figures_converter/languages/vi.rb +96 -0
  52. data/lib/numbers_and_words/translations.rb +1 -0
  53. data/lib/numbers_and_words/translations/cs.rb +4 -31
  54. data/lib/numbers_and_words/translations/de.rb +3 -3
  55. data/lib/numbers_and_words/translations/en-GB.rb +3 -1
  56. data/lib/numbers_and_words/translations/es.rb +5 -20
  57. data/lib/numbers_and_words/translations/et.rb +2 -7
  58. data/lib/numbers_and_words/translations/extensions/fraction_significance.rb +4 -4
  59. data/lib/numbers_and_words/translations/families/base.rb +3 -3
  60. data/lib/numbers_and_words/translations/families/cyrillic.rb +4 -8
  61. data/lib/numbers_and_words/translations/fr.rb +9 -14
  62. data/lib/numbers_and_words/translations/hu.rb +2 -7
  63. data/lib/numbers_and_words/translations/ka.rb +3 -13
  64. data/lib/numbers_and_words/translations/lt.rb +2 -11
  65. data/lib/numbers_and_words/translations/lv.rb +2 -11
  66. data/lib/numbers_and_words/translations/nl.rb +3 -2
  67. data/lib/numbers_and_words/translations/pt-BR.rb +14 -21
  68. data/lib/numbers_and_words/translations/pt.rb +3 -12
  69. data/lib/numbers_and_words/translations/ru.rb +0 -17
  70. data/lib/numbers_and_words/translations/tr.rb +0 -4
  71. data/lib/numbers_and_words/translations/ua.rb +0 -13
  72. data/lib/numbers_and_words/translations/vi.rb +21 -0
  73. data/lib/numbers_and_words/version.rb +1 -1
  74. metadata +11 -4
@@ -1,11 +1,10 @@
1
1
  lt:
2
2
  numbers:
3
3
  ones: [nulis, vienas, du, trys, keturi, penki, šeši, septyni, aštuoni, devyni]
4
- teens: [dešimt, vienuolika, dvylika, trylika, keturiolika, penkiolika, šešiolika, septyniolika, aštuoniolika, devyniolika]
5
- tens: [nulis, dešimt, dvidešimt, trisdešimt, keturiasdešimt, penkiasdešimt, šešiasdešimt, septyniasdešimt, aštuoniasdešimt, devyniasdešimt]
6
- mega: [ones, thousands, millions, billions, trillions, quadrillions, quintillion, sextillions, septillions, octillions, nonillions, decillions]
7
- hundreds: [šimtas, du šimtai, trys šimtai, keturi šimtai, penki šimtai, šeši šimtai, septyni šimtai, aštuoni šimtai, devyni šimtai]
8
- one_hundred: šimtas
4
+ teens: [_, vienuolika, dvylika, trylika, keturiolika, penkiolika, šešiolika, septyniolika, aštuoniolika, devyniolika]
5
+ tens: [_, dešimt, dvidešimt, trisdešimt, keturiasdešimt, penkiasdešimt, šešiasdešimt, septyniasdešimt, aštuoniasdešimt, devyniasdešimt]
6
+ hundreds: [_, šimtas, du šimtai, trys šimtai, keturi šimtai, penki šimtai, šeši šimtai, septyni šimtai, aštuoni šimtai, devyni šimtai]
7
+ mega: [_, thousands, millions, billions, trillions, quadrillions, quintillion, sextillions, septillions, octillions, nonillions, decillions]
9
8
  thousands:
10
9
  one: tūkstantis
11
10
  ones: tūkstančiai
@@ -1,11 +1,10 @@
1
1
  lv:
2
2
  numbers:
3
3
  ones: [nulle, viens, divi, trīs, četri, pieci, seši, septiņi, astoņi, deviņi]
4
- teens: [desmit, vienpadsmit, divpadsmit, trīspadsmit, četrpadsmit, piecpadsmit, sešpadsmit, septiņpadsmit, astoņpadsmit, deviņpadsmit]
5
- tens: [nulle, desmit, divdesmit, trīsdesmit, četrdesmit, piecdesmit, sešdesmit, septiņdesmit, astoņdesmit, deviņdesmit]
6
- mega: [ones, thousands, millions, billions, trillions, quadrillions, quintillion, sextillions, septillions, octillions, nonillions, decillions]
7
- hundreds: [viens simts, divi simti, trīs simti, četri simti, pieci simti, seši simti, septiņi simti, astoņi simti, deviņi simti]
8
- one_hundred: viens simts
4
+ teens: [_, vienpadsmit, divpadsmit, trīspadsmit, četrpadsmit, piecpadsmit, sešpadsmit, septiņpadsmit, astoņpadsmit, deviņpadsmit]
5
+ tens: [_, desmit, divdesmit, trīsdesmit, četrdesmit, piecdesmit, sešdesmit, septiņdesmit, astoņdesmit, deviņdesmit]
6
+ hundreds: [_, viens simts, divi simti, trīs simti, četri simti, pieci simti, seši simti, septiņi simti, astoņi simti, deviņi simti]
7
+ mega: [_, thousands, millions, billions, trillions, quadrillions, quintillion, sextillions, septillions, octillions, nonillions, decillions]
9
8
  thousands:
10
9
  one: tūkstotis
11
10
  other: tūkstoši
@@ -1,7 +1,8 @@
1
1
  nl:
2
2
  numbers:
3
3
  ones: [nul, één, twee, drie, vier, vijf, zes, zeven, acht, negen]
4
- teens: [tien, elf, twaalf, dertien, veertien, vijftien, zestien, zeventien, achttien, negentien]
5
- tens: [nul, tien, twintig, dertig, veertig, vijftig, zestig, zeventig, tachtig, negentig]
4
+ teens: [_, elf, twaalf, dertien, veertien, vijftien, zestien, zeventien, achttien, negentien]
5
+ tens: [_, tien, twintig, dertig, veertig, vijftig, zestig, zeventig, tachtig, negentig]
6
6
  hundreds: honderd
7
- mega: [degenen, duizend, miljoen, miljard, biljoen, biljard, triljoen, triljard, septiljoen, octillion, noniljoen, decillion]
7
+ mega: [_, duizend, miljoen, miljard, biljoen, biljard, triljoen, triljard, septiljoen, octillion, noniljoen, decillion]
8
+ union: en
@@ -1,22 +1,46 @@
1
1
  pt-BR:
2
2
  numbers:
3
- union: e
4
- union_separator: e
5
- integral:
6
- one: inteiro
7
- other: inteiros
8
3
  ones:
9
4
  male: [zero, um, dois, três, quatro, cinco, seis, sete, oito, nove]
10
5
  female: [zero, uma, duas, três, quatro, cinco, seis, sete, oito, nove]
11
- one: um
12
- teens: [dez, onze, doze, treze, quatorze, quinze, dezesseis, dezessete, dezoito, dezenove]
13
- tens: [zero, dez, vinte, trinta, quarenta, cinquenta, sessenta, setenta, oitenta, noventa]
6
+ teens: [_, onze, doze, treze, quatorze, quinze, dezesseis, dezessete, dezoito, dezenove]
7
+ tens: [_, dez, vinte, trinta, quarenta, cinquenta, sessenta, setenta, oitenta, noventa]
14
8
  hundreds:
15
- male: [cento, duzentos, trezentos, quatrocentos, quinhentos, seiscentos, setecentos, oitocentos, novecentos]
16
- female: [cento, duzentas, trezentas, quatrocentas, quinhentas, seiscentas, setecentas, oitocentas, novecentas]
9
+ male: [_, cento, duzentos, trezentos, quatrocentos, quinhentos, seiscentos, setecentos, oitocentos, novecentos]
10
+ female: [_, cento, duzentas, trezentas, quatrocentas, quinhentas, seiscentas, setecentas, oitocentas, novecentas]
17
11
  one_hundred: cem
18
- mega: [_, mil, milhão, bilhão, trilhão, quadrilhão, quintilhão, sextilhão, septilhão, octilhão, nonilhão, decilhão]
19
- megas: [_, mil, milhões, bilhões, trilhões, quadrilhões, quintilhões, sextilhões, septilhões, octilhões, nonilhões, decilhões]
12
+ mega: [_, thousands, millions, billions, trillions, quadrillions, quintillions, sextillions, septillions, octillions, nonillions, decillions]
13
+ thousands: mil
14
+ millions:
15
+ one: milhão
16
+ other: milhões
17
+ billions:
18
+ one: bilhão
19
+ other: bilhões
20
+ trillions:
21
+ one: trilhão
22
+ other: trilhões
23
+ quadrillions:
24
+ one: quadrilhão
25
+ other: quadrilhões
26
+ quintillions:
27
+ one: quintilhão
28
+ other: quintilhões
29
+ sextillions:
30
+ one: sextilhão
31
+ other: sextilhões
32
+ septillions:
33
+ one: septilhão
34
+ other: septilhões
35
+ octillions:
36
+ one: octilhão
37
+ other: octilhões
38
+ nonillions:
39
+ one: nonilhão
40
+ other: nonilhões
41
+ decillions:
42
+ one: decilhão
43
+ other: decilhões
20
44
  ordinal:
21
45
  ones:
22
46
  male: [zero, primeiro, segundo, terceiro, quarto, quinto, sexto, sétimo, oitavo, nono]
@@ -25,20 +49,15 @@ pt-BR:
25
49
  male: [_, décimo, vigésimo, trigésimo, quadragésimo, quinquagésimo, sexagésimo, septuagésimo, octogésimo, nonagésimo]
26
50
  female: [_, décima, vigésima, trigésima, quadragésima, quinquagésima, sexagésima, septuagésima, octogésima, nonagésima]
27
51
  hundreds:
28
- male: [centésimo, ducentésimo, trecentésimo, quadringentésimo, quingentésimo, sexcentésimo, septingentésimo, octingentésimo, noningentésimo]
29
- female: [centésima, ducentésima, trecentésima, quadringentésima, quingentésima, sexcentésima, septingentésima, octingentésima, noningentésima]
52
+ male: [_, centésimo, ducentésimo, trecentésimo, quadringentésimo, quingentésimo, sexcentésimo, septingentésimo, octingentésimo, noningentésimo]
53
+ female: [_, centésima, ducentésima, trecentésima, quadringentésima, quingentésima, sexcentésima, septingentésima, octingentésima, noningentésima]
30
54
  mega:
31
55
  male: [_, milésimo, milionésimo, bilionésimo, trilionésimo, quadrilionésimo, sextilionésimo, septilionésimo, octilionésimo, nonilionésimo]
32
56
  female: [_, milésima, milionésima, bilionésima, trilionésima, quadrilionésima, sextilionésima, septilionésima, octilionésima, nonilionésima]
57
+ integral:
58
+ one: inteiro
59
+ other: inteiros
33
60
  micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths, quadrillionths, quintillionths, sextillionths, septillionths, octillionths, nonillionths, decillionths, undecillionths, duodecillionths, tredecillionths, quattuordecillionths]
34
- micro_prefix:
35
- tens:
36
- one: décimo
37
- other: décimos
38
- hundreds:
39
- one: centésimo
40
- other: centésimos
41
- separator: de
42
61
  tenths:
43
62
  one: décimo
44
63
  other: décimos
@@ -90,3 +109,13 @@ pt-BR:
90
109
  quattuordecillionths:
91
110
  one: quadringentilionésimo
92
111
  other: quadringentilionésimos
112
+ micro_separator: e
113
+ micro_prefix:
114
+ tens:
115
+ one: décimo
116
+ other: décimos
117
+ hundreds:
118
+ one: centésimo
119
+ other: centésimos
120
+ union: ' de '
121
+ union: e
@@ -1,12 +1,25 @@
1
1
  pt:
2
2
  numbers:
3
- union: e
4
3
  ones: [zero, um, dois, três, quatro, cinco, seis, sete, oito, nove]
5
- one: um
6
- teens: [dez, onze, doze, treze, quatorze, quinze, dezesseis, dezessete, dezoito, dezenove]
7
- tens: [zero, dez, vinte, trinta, quarenta, cinquenta, sessenta, setenta, oitenta, noventa]
8
- twenty: vinte
9
- hundreds: [cento, duzentos, trezentos, quatrocentos, quinhentos, seiscentos, setecentos, oitocentos, novecentos]
4
+ teens: [_, onze, doze, treze, quatorze, quinze, dezesseis, dezessete, dezoito, dezenove]
5
+ tens: [_, dez, vinte, trinta, quarenta, cinquenta, sessenta, setenta, oitenta, noventa]
6
+ hundreds: [_, cento, duzentos, trezentos, quatrocentos, quinhentos, seiscentos, setecentos, oitocentos, novecentos]
10
7
  one_hundred: cem
11
- mega: [_, mil, milhão, bilhão, trilhão, quadrilhão, quinquilhão]
12
- megas: [_, mil, milhões, bilhões, trilhões, quadrilhões, quinquilhões]
8
+ mega: [_, thousands, millions, billions, trillions, quadrillions, quintillions]
9
+ thousands: mil
10
+ millions:
11
+ one: milhão
12
+ other: milhões
13
+ billions:
14
+ one: bilhão
15
+ other: bilhões
16
+ trillions:
17
+ one: trilhão
18
+ other: trilhões
19
+ quadrillions:
20
+ one: quadrilhão
21
+ other: quadrilhões
22
+ quintillions:
23
+ one: quinquilhão
24
+ other: quinquilhões
25
+ union: e
@@ -4,20 +4,10 @@ ru:
4
4
  male: [ноль, один, два, три, четыре, пять, шесть, семь, восемь, девять]
5
5
  female: [ноль, одна, двe, три, четыре, пять, шесть, семь, восемь, девять]
6
6
  neuter: [ноль, одно, два, три, четыре, пять, шесть, семь, восемь, девять]
7
- teens: [десять, одиннадцать, двенадцать, тринадцать, четырнадцать, пятнадцать, шестнадцать, семнадцать, восемнадцать, девятнадцать]
8
- tens: [ноль, десять, двадцать, тридцать, сорок, пятьдесят, шестьдесят, семьдесят, восемьдесят, девяносто]
9
- hundreds: [ноль, сто, двести, триста, четыреста, пятьсот, шестьсот, семьсот, восемьсот, девятьсот]
10
- union_separator: 'и'
11
- union: 'и'
12
- micro:
13
- one: [_, десятая, сотая, тысячная, миллионная, миллиардная, триллионная]
14
- few: [_, десятых, сотых, тысячных, миллионных, миллиардных, триллионных]
15
- many: [_, десятых, сотых, тысячных, миллионных, миллиардных, триллионных]
16
- sub_micro: [_, десяти, сто]
17
- integral:
18
- one: целая
19
- few: целых
20
- many: целых
7
+ teens: [_, одиннадцать, двенадцать, тринадцать, четырнадцать, пятнадцать, шестнадцать, семнадцать, восемнадцать, девятнадцать]
8
+ tens: [_, десять, двадцать, тридцать, сорок, пятьдесят, шестьдесят, семьдесят, восемьдесят, девяносто]
9
+ hundreds: [_, сто, двести, триста, четыреста, пятьсот, шестьсот, семьсот, восемьсот, девятьсот]
10
+ mega: [_, thousands, millions, billions, trillions, quadrillions, quintillions, sextillions, septillions, octillions, nonillions, decillions]
21
11
  thousands:
22
12
  one: тысяча
23
13
  few: тысячи
@@ -62,16 +52,38 @@ ru:
62
52
  one: дециллион
63
53
  few: дециллиона
64
54
  many: дециллионов
65
- mega:
66
- - ones
67
- - thousands
68
- - millions
69
- - billions
70
- - trillions
71
- - quadrillions
72
- - quintillion
73
- - sextillions
74
- - septillions
75
- - octillions
76
- - nonillions
77
- - decillions
55
+ integral:
56
+ one: целая
57
+ few: целых
58
+ many: целых
59
+ micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths]
60
+ tenths:
61
+ one: десятая
62
+ few: десятых
63
+ many: десятых
64
+ hundredths:
65
+ one: сотая
66
+ few: сотых
67
+ many: сотых
68
+ thousandths:
69
+ one: тысячная
70
+ few: тысячных
71
+ many: тысячных
72
+ millionths:
73
+ one: миллионная
74
+ few: миллионных
75
+ many: миллионных
76
+ billionths:
77
+ one: миллиардная
78
+ few: миллиардных
79
+ many: миллиардных
80
+ trillionths:
81
+ one: триллионная
82
+ few: триллионных
83
+ many: триллионных
84
+ micro_separator: 'и'
85
+ micro_prefix:
86
+ tens: десяти
87
+ hundreds: сто
88
+ union: ' '
89
+ union: 'и'
@@ -1,7 +1,7 @@
1
1
  se:
2
2
  numbers:
3
3
  ones: [noll, en, två, tre, fyra, fem, sex, sju, åtta, nio]
4
- teens: [tio, elva, tolv, tretton, fjorton, femton, sexton, sjutton, arton, nitton]
5
- tens: [noll, tio, tjugo, trettio, fyrtio, femtio, sextio, sjuttio, åttio, nittio]
4
+ teens: [_, elva, tolv, tretton, fjorton, femton, sexton, sjutton, arton, nitton]
5
+ tens: [_, tio, tjugo, trettio, fyrtio, femtio, sextio, sjuttio, åttio, nittio]
6
6
  hundreds: hundra
7
- mega: [ett, tusen, miljoner, miljarder, biljoner, kvadriljon, kvintiljon, sextillion, septillion, octillion, nonillion, decillion]
7
+ mega: [_, tusen, miljoner, miljarder, biljoner, kvadriljon, kvintiljon, sextillion, septillion, octillion, nonillion, decillion]
@@ -1,7 +1,7 @@
1
1
  tr:
2
2
  numbers:
3
3
  ones: [sıfır, bir, iki, üç, dört, beş, altı, yedi, sekiz, dokuz]
4
- teens: ['on', on bir, on iki, on üç, on dört, on beş, on altı, on yedi, on sekiz, on dokuz]
5
- tens: [sıfır, 'on', yirmi, otuz, kırk, elli, altmış, yetmiş, seksen, doksan]
4
+ teens: [_, on bir, on iki, on üç, on dört, on beş, on altı, on yedi, on sekiz, on dokuz]
5
+ tens: [_, 'on', yirmi, otuz, kırk, elli, altmış, yetmiş, seksen, doksan]
6
6
  hundreds: yüz
7
- mega: [bir, bin, milyon, milyar, trilyon, katrilyon, kentilyon, seksilyon, septilyon, oktilyon, nonilyon, desilyon]
7
+ mega: [_, bin, milyon, milyar, trilyon, katrilyon, kentilyon, seksilyon, septilyon, oktilyon, nonilyon, desilyon]
@@ -4,20 +4,10 @@ ua:
4
4
  male: [нуль, один, два, три, чотири, п’ять, шiсть, сiм, вiсiм, дев’ять]
5
5
  female: [нуль, одна, двi, три, чотири, п’ять, шiсть, сiм, вiсiм, дев’ять]
6
6
  neuter: [нуль, одне, два, три, чотири, п’ять, шiсть, сiм, вiсiм, дев’ять]
7
- teens: [десять, одинадцять, дванадцять, тринадцять, чотирнадцять, п’ятнадцять, шiстнадцять, сiмнадцять, вiсiмнадцять, дев’ятнадцять]
8
- tens: [нуль, десять, двадцять, тридцять, сорок, п’ятдесят, шiстдесят, сiмдесят, вiсiмдесят, дев’яносто]
9
- hundreds: [нуль, сто, двiстi, триста, чотириста, п’ятсот, шiстсот, сiмсот, вiсiмсот, дев’ятсот]
10
- union_separator: 'i'
11
- union: 'i'
12
- micro:
13
- one: [_, десята, сота, тысячна, мiльйонна, мiльярдна, трильйонна]
14
- few: [_, десятих, сотих, тисячних, мiльйонних, мiльярдних, трильйонних]
15
- many: [_, десятих, сотих, тисячних, мiльйонних, мiльярдних, трильйонних]
16
- sub_micro: [_, десяти, сто]
17
- integral:
18
- one: цiла
19
- few: цiлих
20
- many: цiлих
7
+ teens: [_, одинадцять, дванадцять, тринадцять, чотирнадцять, п’ятнадцять, шiстнадцять, сiмнадцять, вiсiмнадцять, дев’ятнадцять]
8
+ tens: [_, десять, двадцять, тридцять, сорок, п’ятдесят, шiстдесят, сiмдесят, вiсiмдесят, дев’яносто]
9
+ hundreds: [_, сто, двiстi, триста, чотириста, п’ятсот, шiстсот, сiмсот, вiсiмсот, дев’ятсот]
10
+ mega: [_, thousands, millions, billions, trillions, quadrillions, quintillion, sextillions, septillions, octillions, nonillions, decillions]
21
11
  thousands:
22
12
  one: тисяча
23
13
  few: тисячi
@@ -62,4 +52,38 @@ ua:
62
52
  one: децильйон
63
53
  few: децильйона
64
54
  many: децильйонiв
65
- mega: [ones, thousands, millions, billions, trillions, quadrillions, quintillion, sextillions, septillions, octillions, nonillions, decillions]
55
+ integral:
56
+ one: цiла
57
+ few: цiлих
58
+ many: цiлих
59
+ micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths]
60
+ tenths:
61
+ one: десята
62
+ few: десятих
63
+ many: десятих
64
+ hundredths:
65
+ one: сота
66
+ few: сотих
67
+ many: сотих
68
+ thousandths:
69
+ one: тысячна
70
+ few: тисячних
71
+ many: тисячних
72
+ millionths:
73
+ one: мiльйонна
74
+ few: мiльйонних
75
+ many: мiльйонних
76
+ billionths:
77
+ one: мiльярдна
78
+ few: мiльярдних
79
+ many: мiльярдних
80
+ trillionths:
81
+ one: трильйонна
82
+ few: трильйонних
83
+ many: трильйонних
84
+ micro_separator: 'i'
85
+ micro_prefix:
86
+ tens: десяти
87
+ hundreds: сто
88
+ union: ' '
89
+ union: 'i'
@@ -0,0 +1,13 @@
1
+ vi:
2
+ numbers:
3
+ ones: ['không', 'một', 'hai', 'ba', 'bốn', 'năm', 'sáu', 'bảy', 'tám', 'chín']
4
+ teens: [_, 'mười một', 'mười hai', 'mười ba', 'mười bốn', 'mười lăm', 'mười sáu', 'mười bảy', 'thứ mười tám', 'mười chín']
5
+ tens: [_, 'mười', 'hai mươi', 'ba mươi', 'bốn mươi', 'năm mươi', 'sáu mươi', 'bảy mươi', 'tám mươi', 'chín mươi']
6
+ hundreds: 'trăm'
7
+ mega: [_, 'nghìn', 'triệu', 'tỷ', 'nghìn tỷ', 'triệu tỷ']
8
+ units:
9
+ tens:
10
+ one: 'mốt'
11
+ five: 'lăm'
12
+ ones_union: 'linh'
13
+ micro_separator: 'phẩy'
@@ -11,6 +11,7 @@ require 'numbers_and_words/strategies/array_joiner/languages/ru'
11
11
  require 'numbers_and_words/strategies/array_joiner/languages/ua'
12
12
  require 'numbers_and_words/strategies/array_joiner/languages/pt-BR'
13
13
  require 'numbers_and_words/strategies/array_joiner/languages/cs'
14
+ require 'numbers_and_words/strategies/array_joiner/languages/vi'
14
15
 
15
16
  module NumbersAndWords
16
17
  module Strategies
@@ -8,7 +8,7 @@ module NumbersAndWords
8
8
  end
9
9
 
10
10
  def union_element
11
- @elements.first.empty? ? "#{union_separator} " : super
11
+ @elements.first.empty? ? "#{micro_separator} " : super
12
12
  end
13
13
  end
14
14
  end
@@ -9,11 +9,11 @@ module NumbersAndWords
9
9
  end
10
10
 
11
11
  def union_element
12
- union_separator.empty? ? ' ' : " #{union_separator} "
12
+ micro_separator.empty? ? ' ' : " #{micro_separator} "
13
13
  end
14
14
 
15
- def union_separator
16
- options[:union_separator] || @translations.union_separator || ''
15
+ def micro_separator
16
+ options[:micro_separator] || @translations.micro_separator || ''
17
17
  end
18
18
  end
19
19
  end
@@ -0,0 +1,10 @@
1
+ module NumbersAndWords
2
+ module Strategies
3
+ module ArrayJoiner
4
+ module Languages
5
+ class Vi < Base
6
+ end
7
+ end
8
+ end
9
+ end
10
+ end
@@ -8,6 +8,7 @@ require 'numbers_and_words/strategies/figures_converter/decorators/pt-BR'
8
8
  require 'numbers_and_words/strategies/figures_converter/decorators/hu'
9
9
  require 'numbers_and_words/strategies/figures_converter/decorators/ua'
10
10
  require 'numbers_and_words/strategies/figures_converter/decorators/cs'
11
+ require 'numbers_and_words/strategies/figures_converter/decorators/vi'
11
12
 
12
13
  module NumbersAndWords
13
14
  module Strategies
@@ -11,7 +11,7 @@ module NumbersAndWords
11
11
  private
12
12
 
13
13
  def fraction_significance
14
- @strategy.translations.micros full_fraction.fraction_capacity, figures.reverse.join.to_i
14
+ @strategy.translations.micros full_fraction.fraction_capacity
15
15
  end
16
16
 
17
17
  def full_fraction
@@ -0,0 +1,3 @@
1
+ require 'numbers_and_words/strategies/figures_converter/decorators/vi/base'
2
+ require 'numbers_and_words/strategies/figures_converter/decorators/vi/fractional'
3
+ require 'numbers_and_words/strategies/figures_converter/decorators/vi/integral'
@@ -1,10 +1,9 @@
1
1
  module NumbersAndWords
2
2
  module Strategies
3
3
  module FiguresConverter
4
- module Languages
5
- module Families
6
- module Latin
7
- include Base
4
+ module Decorators
5
+ module Vi
6
+ class Base < Decorators::Base
8
7
  end
9
8
  end
10
9
  end
@@ -0,0 +1,12 @@
1
+ module NumbersAndWords
2
+ module Strategies
3
+ module FiguresConverter
4
+ module Decorators
5
+ module Vi
6
+ class Fractional < Base
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end