num2words 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +71 -0
- data/README.md +1 -1
- data/config/locales/en.yml +15 -0
- data/config/locales/ru.yml +15 -0
- data/lib/num2words/converter.rb +89 -34
- data/lib/num2words/core_ext.rb +4 -0
- data/lib/num2words/locales/ar.rb +2 -2
- data/lib/num2words/locales/be.rb +2 -2
- data/lib/num2words/locales/bg.rb +2 -2
- data/lib/num2words/locales/bn.rb +2 -2
- data/lib/num2words/locales/cs.rb +2 -2
- data/lib/num2words/locales/da.rb +2 -2
- data/lib/num2words/locales/de.rb +2 -2
- data/lib/num2words/locales/el.rb +2 -2
- data/lib/num2words/locales/en.rb +5 -2
- data/lib/num2words/locales/es.rb +2 -2
- data/lib/num2words/locales/et.rb +2 -2
- data/lib/num2words/locales/fa.rb +2 -2
- data/lib/num2words/locales/fi.rb +2 -2
- data/lib/num2words/locales/fr.rb +2 -2
- data/lib/num2words/locales/gu.rb +2 -2
- data/lib/num2words/locales/he.rb +2 -2
- data/lib/num2words/locales/hi.rb +2 -2
- data/lib/num2words/locales/hr.rb +2 -2
- data/lib/num2words/locales/hu.rb +2 -2
- data/lib/num2words/locales/id.rb +2 -2
- data/lib/num2words/locales/it.rb +2 -2
- data/lib/num2words/locales/ja.rb +2 -2
- data/lib/num2words/locales/kn.rb +2 -2
- data/lib/num2words/locales/ko.rb +2 -2
- data/lib/num2words/locales/kz.rb +2 -2
- data/lib/num2words/locales/lt.rb +2 -2
- data/lib/num2words/locales/lv.rb +2 -2
- data/lib/num2words/locales/ml.rb +2 -2
- data/lib/num2words/locales/mr.rb +2 -2
- data/lib/num2words/locales/ms.rb +2 -2
- data/lib/num2words/locales/nl.rb +2 -2
- data/lib/num2words/locales/no.rb +2 -2
- data/lib/num2words/locales/pa.rb +2 -2
- data/lib/num2words/locales/pl.rb +2 -2
- data/lib/num2words/locales/pt.rb +2 -2
- data/lib/num2words/locales/ro.rb +2 -2
- data/lib/num2words/locales/ru.rb +5 -2
- data/lib/num2words/locales/sk.rb +2 -2
- data/lib/num2words/locales/sl.rb +2 -2
- data/lib/num2words/locales/sr.rb +2 -2
- data/lib/num2words/locales/sv.rb +2 -2
- data/lib/num2words/locales/sw.rb +2 -2
- data/lib/num2words/locales/ta.rb +2 -2
- data/lib/num2words/locales/te.rb +2 -2
- data/lib/num2words/locales/th.rb +2 -2
- data/lib/num2words/locales/tr.rb +2 -2
- data/lib/num2words/locales/uk.rb +2 -2
- data/lib/num2words/locales/ur.rb +2 -2
- data/lib/num2words/locales/vi.rb +2 -2
- data/lib/num2words/locales/zh.rb +2 -2
- data/lib/num2words/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83b33cb28c58663786a3033b2aefceb7e0478d49d40b1db5b1bee5bc63f0198b
|
4
|
+
data.tar.gz: 5293c916f1a5ad2726662cb5973033b23fa5f9b703920b2b4be21f293d47d67e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c498c97a62099658e43c6d29159b9c6fc5c8d3113e19fdc0fe774966dbacce7084d8e0e5293e1a9b1b9cad5b0441af1ae35efe1922441a19196fd49f0d771756
|
7
|
+
data.tar.gz: 53ceaa5a779dd1e7c3e8308d4f21dcafe2a3cde1a775ddb68fb7497be605d551497ee22350c3309feb4f21c648ff9546761c427ff5839ae43e0c01f073febc08
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
Все заметные изменения в этом проекте будут документироваться в этом файле.
|
4
|
+
|
5
|
+
Формат основан на [Keep a Changelog](https://keepachangelog.com/ru/1.0.0/),
|
6
|
+
и этот проект использует [Semantic Versioning](https://semver.org/lang/ru/).
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
## [Unreleased]
|
11
|
+
|
12
|
+
- Добавление новых локалей (планируется расширение поддерживаемых языков).
|
13
|
+
- Оптимизация производительности при больших числах.
|
14
|
+
- Улучшения документации.
|
15
|
+
|
16
|
+
---
|
17
|
+
|
18
|
+
## [0.1.3] – 2025-08-20
|
19
|
+
### Added
|
20
|
+
- Параметр **`word_case:`** для методов `to_words`, `to_currency` со значениями:
|
21
|
+
- `:upper`, `:capitalize`, `:title`, `:downcase`.
|
22
|
+
- В английской локали:
|
23
|
+
- Поддержка опции **`style: :decimal`**, которая выводит дробную часть через `point` по-цифровому (например: `"twelve point one two"`).
|
24
|
+
- Улучшена поддержка стиля **`:fraction`** — дроби преобразуются в слова с корректными окончаниями (`"tenths"`, `"hundredths"` и т.д.).
|
25
|
+
- Улучшена читаемость кода:
|
26
|
+
- Унифицированные имена переменных (`major_value`, `minor_value`).
|
27
|
+
- Вынес функционал `apply_case` для управления регистром.
|
28
|
+
|
29
|
+
### Examples after 0.1.3
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
10.1.to_words(locale: :ru, word_case: :capitalize)
|
33
|
+
# => "Десять целых одна десятая"
|
34
|
+
|
35
|
+
5.5.to_words(locale: :en, style: :fraction) # По умолчанию: style = fraction
|
36
|
+
# => "five and five tenths"
|
37
|
+
|
38
|
+
123.01.to_words(:en, style: :decimal, word_case: :upper)
|
39
|
+
# => "ONE HUNDRED TWENTY THREE POINT ZERO ONE"
|
40
|
+
|
41
|
+
99.99.to_currency(locale: :ru, word_case: :upper)
|
42
|
+
# => "ДЕВЯНОСТО ДЕВЯТЬ РУБЛЕЙ ДЕВЯНОСТО ДЕВЯТЬ КОПЕЕК"
|
43
|
+
|
44
|
+
42.to_words(locale: :en, word_case: :title)
|
45
|
+
# => "Forty Two"
|
46
|
+
|
47
|
+
76.03.to_words(word_case: :downcase) # По умолчанию: word_case = downcase
|
48
|
+
"семьдесят шесть целых три сотые"
|
49
|
+
```
|
50
|
+
|
51
|
+
## [0.1.2] - 2025-08-19
|
52
|
+
### Fixed
|
53
|
+
- Исправлена ошибка с локалью `no` → заменена на корректную `nb` (Norwegian Bokmål).
|
54
|
+
|
55
|
+
---
|
56
|
+
|
57
|
+
## [0.1.1] - 2025-08-18
|
58
|
+
### Added
|
59
|
+
- Добавлены переводы для новых языков (Swahili, Punjabi и др.).
|
60
|
+
- В README.md добавлена Markdown-таблица языков с ISO-кодами и валютами.
|
61
|
+
|
62
|
+
### Fixed
|
63
|
+
- Исправлены ошибки в конфигурации валют для некоторых локалей.
|
64
|
+
|
65
|
+
---
|
66
|
+
|
67
|
+
## [0.1.0] - 2025-08-17
|
68
|
+
### Added
|
69
|
+
- Первая публичная версия гема `num2words`.
|
70
|
+
- Поддержка перевода чисел в слова для нескольких языков.
|
71
|
+
- Поддержка валют (RUB, USD, EUR и др.).
|
data/README.md
CHANGED
data/config/locales/en.yml
CHANGED
@@ -24,3 +24,18 @@ en:
|
|
24
24
|
fractional:
|
25
25
|
name: ["cent", "cents", "cents"]
|
26
26
|
feminine: false
|
27
|
+
|
28
|
+
grammar:
|
29
|
+
minus: "minus"
|
30
|
+
conjunction: "and"
|
31
|
+
default_fraction: "parts"
|
32
|
+
fractions:
|
33
|
+
10: ["tenth", "tenths", "tenths"]
|
34
|
+
100: ["hundredth", "hundredths", "hundredths"]
|
35
|
+
1000: ["thousandth", "thousandths", "thousandths"]
|
36
|
+
10000: ["ten-thousandth", "ten-thousandths", "ten-thousandths"]
|
37
|
+
100000: ["hundred-thousandth", "hundred-thousandths", "hundred-thousandths"]
|
38
|
+
1000000: ["millionth", "millionths", "millionths"]
|
39
|
+
10000000: ["ten-millionth", "ten-millionths", "ten-millionths"]
|
40
|
+
100000000: ["hundred-millionth", "hundred-millionths", "hundred-millionths"]
|
41
|
+
1000000000: ["billionth", "billionths", "billionths"]
|
data/config/locales/ru.yml
CHANGED
@@ -19,3 +19,18 @@ ru:
|
|
19
19
|
fractional:
|
20
20
|
name: ["копейка", "копейки", "копеек"]
|
21
21
|
feminine: true
|
22
|
+
|
23
|
+
grammar:
|
24
|
+
minus: "минус"
|
25
|
+
conjunction: "целых"
|
26
|
+
default_fraction: "дробных"
|
27
|
+
fractions:
|
28
|
+
10: ["десятая", "десятые", "десятых"]
|
29
|
+
100: ["сотая", "сотые", "сотых"]
|
30
|
+
1000: ["тысячная", "тысячные", "тысячных"]
|
31
|
+
10000: ["десятитысячная", "десятитысячные", "десятитысячных"]
|
32
|
+
100000: ["стотысячная", "стотысячные", "стотысячных"]
|
33
|
+
1000000: ["миллионная", "миллионные", "миллионных"]
|
34
|
+
10000000: ["десятимиллионная", "десятимиллионные", "десятимиллионных"]
|
35
|
+
100000000: ["стомиллионная", "стомиллионные", "стомиллионных"]
|
36
|
+
1000000000: ["миллиардная", "миллиардные", "миллиардных"]
|
data/lib/num2words/converter.rb
CHANGED
@@ -3,57 +3,50 @@
|
|
3
3
|
module Num2words
|
4
4
|
class Converter
|
5
5
|
class << self
|
6
|
-
# number — целое число (0..10^12-1)
|
7
6
|
def to_words(number, *args, **opts)
|
8
|
-
locale
|
9
|
-
feminine
|
10
|
-
|
7
|
+
locale = args.first.is_a?(Symbol) ? args.first : opts[:locale] || I18n.default_locale
|
8
|
+
feminine = opts[:feminine] || false
|
9
|
+
style = opts[:style] || :fraction
|
10
|
+
word_case = opts[:word_case] || :downcase
|
11
11
|
locale_data = Locales[locale]
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
.map(&:join).map!(&:to_i).reverse
|
13
|
+
result = if number.is_a?(Float)
|
14
|
+
to_words_fractional(number, locale, feminine, locale_data, style: style)
|
15
|
+
else
|
16
|
+
to_words_integer(number, locale, feminine, locale_data)
|
17
|
+
end
|
19
18
|
|
20
|
-
|
21
|
-
groups.each_with_index do |grp, idx|
|
22
|
-
scale_idx = groups.size - idx - 1
|
23
|
-
fem = (scale_idx == 1) || feminine # тысячи — жен. род
|
24
|
-
words.concat triple_to_words(grp, scale_idx, locale_data, feminine: fem)
|
25
|
-
end
|
26
|
-
words.join(" ")
|
19
|
+
apply_case(result, word_case)
|
27
20
|
end
|
28
21
|
|
29
|
-
# amount может быть String, Integer, Float, BigDecimal
|
30
22
|
def to_currency(amount, *args, **opts)
|
31
|
-
locale
|
23
|
+
locale = args.first.is_a?(Symbol) ? args.first : opts[:locale] || I18n.default_locale
|
24
|
+
word_case = opts[:word_case] || :downcase
|
32
25
|
locale_data = Locales[locale]
|
33
26
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
# всегда 2 знака для копеек; обрезаем лишние, дополняем недостающие
|
38
|
-
kop = (kop_str || "0")[0, 2].ljust(2, "0").to_i
|
27
|
+
major_str, minor_str = sprintf('%.2f', amount).split('.')
|
28
|
+
major_value = major_str.to_i
|
29
|
+
minor_value = minor_str.to_i
|
39
30
|
|
40
|
-
|
41
|
-
|
31
|
+
major_words = to_words(major_value, locale: locale)
|
32
|
+
major_name = pluralize(major_value, *locale_data::MAJOR_UNIT)
|
42
33
|
|
43
|
-
|
44
|
-
|
34
|
+
minor_words = to_words(minor_value, locale: locale, feminine: true)
|
35
|
+
minor_name = pluralize(minor_value, *locale_data::MINOR_UNIT)
|
45
36
|
|
46
|
-
|
37
|
+
result = [major_words, major_name, minor_words, minor_name].join(" ")
|
38
|
+
apply_case(result, word_case)
|
47
39
|
end
|
48
40
|
|
49
41
|
private
|
50
42
|
|
51
|
-
def pluralize(
|
52
|
-
return
|
53
|
-
|
54
|
-
|
43
|
+
def pluralize(number, singular, few, plural)
|
44
|
+
return plural if (11..14).include?(number % 100)
|
45
|
+
|
46
|
+
case number % 10
|
47
|
+
when 1 then singular
|
55
48
|
when 2..4 then few
|
56
|
-
else
|
49
|
+
else plural
|
57
50
|
end
|
58
51
|
end
|
59
52
|
|
@@ -77,6 +70,68 @@ module Num2words
|
|
77
70
|
words << pluralize(n, *local_data::SCALES[scale_idx]) unless scale_idx.zero?
|
78
71
|
words.compact
|
79
72
|
end
|
73
|
+
|
74
|
+
def to_words_fractional(number, locale, feminine, locale_data, style: :fraction)
|
75
|
+
minus_word = locale_data::GRAMMAR[:minus] || "minus"
|
76
|
+
conjunction_word = locale_data::GRAMMAR[:conjunction] || "and"
|
77
|
+
default_fraction = locale_data::GRAMMAR[:default_fraction] || "parts"
|
78
|
+
fractions_data = locale_data::FRACTIONS || {}
|
79
|
+
|
80
|
+
sign_word = number.negative? ? minus_word : ""
|
81
|
+
|
82
|
+
integer_string, fraction_string = number.abs.to_s.split('.', 2)
|
83
|
+
integer_value = integer_string.to_i
|
84
|
+
|
85
|
+
return to_words_integer(integer_value, locale, feminine, locale_data) if fraction_string.to_i.zero?
|
86
|
+
|
87
|
+
fraction_string = fraction_string.sub(/0+\z/, "")
|
88
|
+
numerator = fraction_string.to_i
|
89
|
+
denominator = 10 ** fraction_string.length
|
90
|
+
|
91
|
+
integer_words = to_words_integer(integer_value, locale, feminine, locale_data)
|
92
|
+
|
93
|
+
if locale.to_sym == :en && style == :decimal
|
94
|
+
fraction_digits = fraction_string.chars.map { |d| to_words_integer(d.to_i, locale, feminine, locale_data) }
|
95
|
+
full_string = [sign_word, integer_words, "point", fraction_digits.join(" ")].reject(&:empty?).join(" ")
|
96
|
+
return full_string
|
97
|
+
end
|
98
|
+
|
99
|
+
numerator_words = to_words_integer(numerator, locale, (locale.to_sym == :ru ? true : feminine), locale_data)
|
100
|
+
|
101
|
+
denom_forms = fractions_data[denominator] || fractions_data[denominator.to_s] # массив склонений
|
102
|
+
denominator_words = denom_forms.is_a?(Array) ? pluralize(numerator, *denom_forms) : default_fraction
|
103
|
+
|
104
|
+
[sign_word, integer_words, conjunction_word, numerator_words, denominator_words].reject(&:empty?).join(" ")
|
105
|
+
end
|
106
|
+
|
107
|
+
def to_words_integer(number, locale, feminine, locale_data)
|
108
|
+
integer_value = Integer(number)
|
109
|
+
|
110
|
+
return (feminine ? locale_data::ONES_FEM[0] : locale_data::ONES_MASC[0]) if integer_value.zero?
|
111
|
+
|
112
|
+
groups = integer_value.to_s
|
113
|
+
.chars.reverse.each_slice(3).map(&:reverse)
|
114
|
+
.map(&:join).map!(&:to_i).reverse
|
115
|
+
|
116
|
+
words = []
|
117
|
+
groups.each_with_index do |group_value, index|
|
118
|
+
scale_index = groups.size - index - 1
|
119
|
+
group_feminine = (scale_index == 1) || feminine
|
120
|
+
words.concat triple_to_words(group_value, scale_index, locale_data, feminine: group_feminine)
|
121
|
+
end
|
122
|
+
|
123
|
+
words.join(" ")
|
124
|
+
end
|
125
|
+
|
126
|
+
def apply_case(text, word_case)
|
127
|
+
case word_case
|
128
|
+
when :upper then text.upcase
|
129
|
+
when :capitalize then text.capitalize
|
130
|
+
when :title then text.split.map(&:capitalize).join(" ")
|
131
|
+
when :downcase then text.downcase
|
132
|
+
else text
|
133
|
+
end
|
134
|
+
end
|
80
135
|
end
|
81
136
|
end
|
82
137
|
end
|
data/lib/num2words/core_ext.rb
CHANGED
data/lib/num2words/locales/ar.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :ar)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :ar)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.SAR.name", locale: :ar)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.SAR.fractional.name", locale: :ar)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :ar, AR
|
data/lib/num2words/locales/be.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :be)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :be)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.BYN.name", locale: :be)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.BYN.fractional.name", locale: :be)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :be, BE
|
data/lib/num2words/locales/bg.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :bg)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :bg)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.BGN.name", locale: :bg)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.BGN.fractional.name", locale: :bg)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :bg, BG
|
data/lib/num2words/locales/bn.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :bn)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :bn)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.BDT.name", locale: :bn)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.BDT.fractional.name", locale: :bn)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :bn, BN
|
data/lib/num2words/locales/cs.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :cs)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :cs)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.CZK.name", locale: :cs)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.CZK.fractional.name", locale: :cs)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :cs, CS
|
data/lib/num2words/locales/da.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :da)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :da)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.DKK.name", locale: :da)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.DKK.fractional.name", locale: :da)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :da, DA
|
data/lib/num2words/locales/de.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :de)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :de)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :de)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :de)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :de, DE
|
data/lib/num2words/locales/el.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :el)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :el)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :el)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :el)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :el, EL
|
data/lib/num2words/locales/en.rb
CHANGED
@@ -10,8 +10,11 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :en)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :en)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.USD.name", locale: :en)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.USD.fractional.name", locale: :en)
|
15
|
+
|
16
|
+
FRACTIONS = I18n.t("num2words.fractions", locale: :en)
|
17
|
+
GRAMMAR = I18n.t("num2words.grammar", locale: :en)
|
15
18
|
end
|
16
19
|
|
17
20
|
register :en, EN
|
data/lib/num2words/locales/es.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :es)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :es)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :es)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :es)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :es, ES
|
data/lib/num2words/locales/et.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :et)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :et)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :et)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :et)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :et, ET
|
data/lib/num2words/locales/fa.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :fa)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :fa)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.IRR.name", locale: :fa)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.IRR.fractional.name", locale: :fa)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :fa, FA
|
data/lib/num2words/locales/fi.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :fi)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :fi)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :fi)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :fi)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :fi, FI
|
data/lib/num2words/locales/fr.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :fr)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :fr)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :fr)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :fr)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :fr, FR
|
data/lib/num2words/locales/gu.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :gu)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :gu)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.INR.name", locale: :gu)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.INR.fractional.name", locale: :gu)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :gu, GU
|
data/lib/num2words/locales/he.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :he)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :he)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.ILS.name", locale: :he)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.ILS.fractional.name", locale: :he)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :he, HE
|
data/lib/num2words/locales/hi.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :hi)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :hi)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.INR.name", locale: :hi)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.INR.fractional.name", locale: :hi)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :hi, HI
|
data/lib/num2words/locales/hr.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :hr)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :hr)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :hr)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :hr)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :hr, HR
|
data/lib/num2words/locales/hu.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :hu)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :hu)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.HUF.name", locale: :hu)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.HUF.fractional.name", locale: :hu)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :hu, HU
|
data/lib/num2words/locales/id.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :id)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :id)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.IDR.name", locale: :id)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.IDR.fractional.name", locale: :id)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :id, ID
|
data/lib/num2words/locales/it.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :it)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :it)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :it)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :it)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :it, IT
|
data/lib/num2words/locales/ja.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :ja)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :ja)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.JPY.name", locale: :ja)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.JPY.fractional.name", locale: :ja)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :ja, JA
|
data/lib/num2words/locales/kn.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :kn)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :kn)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.INR.name", locale: :kn)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.INR.fractional.name", locale: :kn)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :kn, KN
|
data/lib/num2words/locales/ko.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :ko)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :ko)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.KRW.name", locale: :ko)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.KRW.fractional.name", locale: :ko)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :ko, KO
|
data/lib/num2words/locales/kz.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :kz)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :kz)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.KZT.name", locale: :kz)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.KZT.fractional.name", locale: :kz)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :kz, KZ
|
data/lib/num2words/locales/lt.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :lt)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :lt)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :lt)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :lt)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :lt, LT
|
data/lib/num2words/locales/lv.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :lv)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :lv)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :lv)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :lv)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :lv, LV
|
data/lib/num2words/locales/ml.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :ml)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :ml)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.INR.name", locale: :ml)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.INR.fractional.name", locale: :ml)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :ml, ML
|
data/lib/num2words/locales/mr.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :mr)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :mr)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.INR.name", locale: :mr)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.INR.fractional.name", locale: :mr)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :mr, MR
|
data/lib/num2words/locales/ms.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :ms)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :ms)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.MYR.name", locale: :ms)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.MYR.fractional.name", locale: :ms)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :ms, MS
|
data/lib/num2words/locales/nl.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :nl)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :nl)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :nl)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :nl)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :nl, NL
|
data/lib/num2words/locales/no.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :nb)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :nb)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.NOK.name", locale: :nb)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.NOK.fractional.name", locale: :nb)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :nb, NB
|
data/lib/num2words/locales/pa.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :pa)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :pa)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.INR.name", locale: :pa)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.INR.fractional.name", locale: :pa)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :pa, PA
|
data/lib/num2words/locales/pl.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :pl)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :pl)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.PLN.name", locale: :pl)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.PLN.fractional.name", locale: :pl)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :pl, PL
|
data/lib/num2words/locales/pt.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :pt)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :pt)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :pt)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :pt)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :pt, PT
|
data/lib/num2words/locales/ro.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :ro)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :ro)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.RON.name", locale: :ro)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.RON.fractional.name", locale: :ro)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :ro, RO
|
data/lib/num2words/locales/ru.rb
CHANGED
@@ -10,8 +10,11 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :ru)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :ru)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.RUB.name", locale: :ru)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.RUB.fractional.name", locale: :ru)
|
15
|
+
|
16
|
+
FRACTIONS = I18n.t("num2words.fractions", locale: :ru)
|
17
|
+
GRAMMAR = I18n.t("num2words.grammar", locale: :ru)
|
15
18
|
end
|
16
19
|
|
17
20
|
register :ru, RU
|
data/lib/num2words/locales/sk.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :sk)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :sk)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :sk)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :sk)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :sk, SK
|
data/lib/num2words/locales/sl.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :sl)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :sl)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.EUR.name", locale: :sl)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.EUR.fractional.name", locale: :sl)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :sl, SL
|
data/lib/num2words/locales/sr.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :sr)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :sr)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.RSD.name", locale: :sr)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.RSD.fractional.name", locale: :sr)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :sr, Sr
|
data/lib/num2words/locales/sv.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :sv)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :sv)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.SEK.name", locale: :sv)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.SEK.fractional.name", locale: :sv)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :sv, SV
|
data/lib/num2words/locales/sw.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :sw)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :sw)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.KES.name", locale: :sw)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.KES.fractional.name", locale: :sw)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :sw, SW
|
data/lib/num2words/locales/ta.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :ta)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :ta)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.INR.name", locale: :ta)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.INR.fractional.name", locale: :ta)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :ta, TA
|
data/lib/num2words/locales/te.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :te)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :te)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.INR.name", locale: :te)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.INR.fractional.name", locale: :te)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :te, TE
|
data/lib/num2words/locales/th.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :th)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :th)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.THB.name", locale: :th)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.THB.fractional.name", locale: :th)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :th, TH
|
data/lib/num2words/locales/tr.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :tr)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :tr)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.TRY.name", locale: :tr)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.TRY.fractional.name", locale: :tr)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :tr, TR
|
data/lib/num2words/locales/uk.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :uk)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :uk)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.UAH.name", locale: :uk)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.UAH.fractional.name", locale: :uk)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :uk, UK
|
data/lib/num2words/locales/ur.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :ur)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :ur)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.PKR.name", locale: :ur)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.PKR.fractional.name", locale: :ur)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :ur, UR
|
data/lib/num2words/locales/vi.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :vi)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :vi)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.VND.name", locale: :vi)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.VND.fractional.name", locale: :vi)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :vi, VI
|
data/lib/num2words/locales/zh.rb
CHANGED
@@ -10,8 +10,8 @@ module Num2words
|
|
10
10
|
HUNDREDS = I18n.t("num2words.hundreds", locale: :zh)
|
11
11
|
SCALES = I18n.t("num2words.scales", locale: :zh)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
MAJOR_UNIT = I18n.t("num2words.currencies.CNY.name", locale: :zh)
|
14
|
+
MINOR_UNIT = I18n.t("num2words.currencies.CNY.fractional.name", locale: :zh)
|
15
15
|
end
|
16
16
|
|
17
17
|
register :zh, ZH
|
data/lib/num2words/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: num2words
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruslan Fedotov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -33,6 +33,7 @@ extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
35
|
- ".gitignore"
|
36
|
+
- CHANGELOG.md
|
36
37
|
- Gemfile
|
37
38
|
- LICENSE.txt
|
38
39
|
- README.md
|