numbers_and_words 0.10.0 → 0.11.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/CHANGELOG.md +264 -0
- data/README.rdoc +154 -19
- data/lib/numbers_and_words/core_ext/array.rb +4 -2
- data/lib/numbers_and_words/core_ext/float.rb +3 -1
- data/lib/numbers_and_words/core_ext/integer.rb +3 -1
- data/lib/numbers_and_words/core_ext.rb +2 -0
- data/lib/numbers_and_words/helper_classes/array_extensions/helpers.rb +26 -16
- data/lib/numbers_and_words/helper_classes/figures_array.rb +9 -6
- data/lib/numbers_and_words/helper_classes/words_array.rb +6 -6
- data/lib/numbers_and_words/helper_classes.rb +3 -1
- data/lib/numbers_and_words/i18n/initialization.rb +4 -2
- data/lib/numbers_and_words/i18n/locales/numbers.cs.yml +95 -0
- data/lib/numbers_and_words/i18n/locales/numbers.de.yml +5 -4
- data/lib/numbers_and_words/i18n/locales/numbers.en-GB.yml +24 -8
- data/lib/numbers_and_words/i18n/locales/numbers.en.yml +24 -8
- data/lib/numbers_and_words/i18n/locales/numbers.es.yml +102 -13
- data/lib/numbers_and_words/i18n/locales/numbers.et.yml +4 -4
- data/lib/numbers_and_words/i18n/locales/numbers.fr.yml +73 -15
- data/lib/numbers_and_words/i18n/locales/numbers.hu.yml +11 -8
- data/lib/numbers_and_words/i18n/locales/numbers.hy.yml +7 -0
- data/lib/numbers_and_words/i18n/locales/numbers.it.yml +3 -3
- data/lib/numbers_and_words/i18n/locales/numbers.ka.yml +15 -0
- data/lib/numbers_and_words/i18n/locales/numbers.kz.yml +7 -0
- data/lib/numbers_and_words/i18n/locales/numbers.lt.yml +14 -15
- data/lib/numbers_and_words/i18n/locales/numbers.lv.yml +5 -6
- data/lib/numbers_and_words/i18n/locales/numbers.nl.yml +7 -4
- data/lib/numbers_and_words/i18n/locales/numbers.pt-BR.yml +121 -0
- data/lib/numbers_and_words/i18n/locales/numbers.pt.yml +25 -0
- data/lib/numbers_and_words/i18n/locales/numbers.ru.yml +39 -27
- data/lib/numbers_and_words/i18n/locales/numbers.se.yml +3 -3
- data/lib/numbers_and_words/i18n/locales/numbers.tr.yml +3 -3
- data/lib/numbers_and_words/i18n/locales/numbers.ua.yml +39 -15
- data/lib/numbers_and_words/i18n/locales/numbers.vi.yml +13 -0
- data/lib/numbers_and_words/i18n/pluralization.rb +6 -5
- data/lib/numbers_and_words/i18n/plurals/cs.rb +38 -0
- data/lib/numbers_and_words/i18n/plurals/lt.rb +17 -11
- data/lib/numbers_and_words/i18n/plurals/lv.rb +6 -4
- data/lib/numbers_and_words/i18n/plurals/plurals.rb +11 -7
- data/lib/numbers_and_words/i18n/plurals/ru.rb +23 -13
- data/lib/numbers_and_words/i18n/plurals/ua.rb +2 -0
- data/lib/numbers_and_words/i18n.rb +7 -5
- data/lib/numbers_and_words/strategies/array_joiner/languages/base.rb +3 -1
- data/lib/numbers_and_words/strategies/array_joiner/languages/cs.rb +12 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/{en_gb.rb → en-GB.rb} +3 -1
- data/lib/numbers_and_words/strategies/array_joiner/languages/en.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/es.rb +12 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/families/base.rb +7 -6
- data/lib/numbers_and_words/strategies/array_joiner/languages/fr.rb +12 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/hu.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/pt-BR.rb +12 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/ru.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/ua.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/vi.rb +12 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages.rb +11 -4
- data/lib/numbers_and_words/strategies/array_joiner.rb +3 -2
- data/lib/numbers_and_words/strategies/figures_converter/decorators/base.rb +4 -2
- data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/base.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/fractional.rb +40 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/integral.rb +31 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb.rb → cs.rb} +5 -3
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en/base.rb +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en/fractional.rb +4 -3
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en/integral.rb +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB.rb +5 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/es/base.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb +40 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/es/integral.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/es.rb +5 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/base.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/fractional.rb +39 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/integral.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/fr.rb +5 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/base.rb +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/fractional.rb +5 -4
- data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/integral.rb +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/decorators/hu.rb +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/base.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/fractional.rb +39 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/integral.rb +31 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR.rb +5 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/base.rb +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/fractional.rb +4 -3
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/integral.rb +3 -2
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ru.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/base.rb +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/fractional.rb +4 -3
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/integral.rb +3 -2
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ua.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/base.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/fractional.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/integral.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi.rb +5 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators.rb +17 -10
- data/lib/numbers_and_words/strategies/figures_converter/languages/base.rb +6 -4
- data/lib/numbers_and_words/strategies/figures_converter/languages/cs.rb +53 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/de.rb +15 -15
- data/lib/numbers_and_words/strategies/figures_converter/languages/{en_gb.rb → en-GB.rb} +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/languages/en.rb +20 -12
- data/lib/numbers_and_words/strategies/figures_converter/languages/es.rb +58 -17
- data/lib/numbers_and_words/strategies/figures_converter/languages/et.rb +3 -4
- data/lib/numbers_and_words/strategies/figures_converter/languages/families/base.rb +7 -5
- data/lib/numbers_and_words/strategies/figures_converter/languages/families/cyrillic.rb +8 -6
- data/lib/numbers_and_words/strategies/figures_converter/languages/families/helpers.rb +12 -14
- data/lib/numbers_and_words/strategies/figures_converter/languages/fr.rb +14 -14
- data/lib/numbers_and_words/strategies/figures_converter/languages/hu.rb +11 -11
- data/lib/numbers_and_words/strategies/figures_converter/languages/{families/latin.rb → hy.rb} +3 -4
- data/lib/numbers_and_words/strategies/figures_converter/languages/it.rb +2 -1
- data/lib/numbers_and_words/strategies/figures_converter/languages/ka.rb +39 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/kz.rb +12 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/lt.rb +10 -14
- data/lib/numbers_and_words/strategies/figures_converter/languages/lv.rb +5 -23
- data/lib/numbers_and_words/strategies/figures_converter/languages/nl.rb +31 -7
- data/lib/numbers_and_words/strategies/figures_converter/languages/pt-BR.rb +118 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/pt.rb +29 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/ru.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/se.rb +2 -1
- data/lib/numbers_and_words/strategies/figures_converter/languages/tr.rb +19 -1
- data/lib/numbers_and_words/strategies/figures_converter/languages/ua.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/vi.rb +100 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages.rb +18 -14
- data/lib/numbers_and_words/strategies/figures_converter/options/base/gender.rb +30 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/base/ordinal.rb +28 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/base/remove_zero.rb +30 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb.rb → base.rb} +5 -4
- data/lib/numbers_and_words/strategies/figures_converter/options/cs/gender.rb +17 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/cs/ordinal.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/cs/remove_zero.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/cs.rb +5 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en/hundreds_with_union.rb +5 -3
- data/lib/numbers_and_words/strategies/figures_converter/options/en/ordinal.rb +8 -14
- data/lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb +60 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en/remove_hyphen.rb +4 -3
- data/lib/numbers_and_words/strategies/figures_converter/options/en/remove_zero.rb +4 -19
- data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/hundreds_with_union.rb +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/ordinal.rb +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/pronounced.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/remove_hyphen.rb +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/remove_zero.rb +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB.rb +7 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en.rb +4 -1
- data/lib/numbers_and_words/strategies/figures_converter/options/es/apocopated.rb +30 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/es/gender.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/es/remove_zero.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/es.rb +5 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/hu/ordinal.rb +4 -50
- data/lib/numbers_and_words/strategies/figures_converter/options/hu.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/nl/tens_of_hundreds.rb +30 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/nl.rb +3 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/gender.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/ordinal.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/remove_zero.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR.rb +5 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/ru/gender.rb +4 -18
- data/lib/numbers_and_words/strategies/figures_converter/options/ru.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/ua/gender.rb +4 -18
- data/lib/numbers_and_words/strategies/figures_converter/options/ua.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options.rb +26 -9
- data/lib/numbers_and_words/strategies/figures_converter.rb +5 -4
- data/lib/numbers_and_words/strategies.rb +3 -1
- data/lib/numbers_and_words/translations/base.rb +4 -2
- data/lib/numbers_and_words/translations/cs.rb +48 -0
- data/lib/numbers_and_words/translations/de.rb +10 -8
- data/lib/numbers_and_words/translations/en-GB.rb +10 -0
- data/lib/numbers_and_words/translations/en.rb +2 -0
- data/lib/numbers_and_words/translations/es.rb +21 -20
- data/lib/numbers_and_words/translations/et.rb +4 -11
- data/lib/numbers_and_words/translations/extensions/fraction_significance.rb +9 -8
- data/lib/numbers_and_words/translations/families/base.rb +13 -11
- data/lib/numbers_and_words/translations/families/cyrillic.rb +9 -11
- data/lib/numbers_and_words/translations/families/latin.rb +7 -7
- data/lib/numbers_and_words/translations/fr.rb +19 -14
- data/lib/numbers_and_words/translations/hu.rb +6 -13
- data/lib/numbers_and_words/translations/hy.rb +21 -0
- data/lib/numbers_and_words/translations/it.rb +5 -3
- data/lib/numbers_and_words/translations/ka.rb +64 -0
- data/lib/numbers_and_words/translations/kz.rb +9 -0
- data/lib/numbers_and_words/translations/lt.rb +4 -12
- data/lib/numbers_and_words/translations/lv.rb +4 -12
- data/lib/numbers_and_words/translations/nl.rb +16 -4
- data/lib/numbers_and_words/translations/pt-BR.rb +77 -0
- data/lib/numbers_and_words/translations/pt.rb +20 -0
- data/lib/numbers_and_words/translations/ru.rb +2 -17
- data/lib/numbers_and_words/translations/se.rb +4 -2
- data/lib/numbers_and_words/translations/tr.rb +8 -2
- data/lib/numbers_and_words/translations/ua.rb +2 -13
- data/lib/numbers_and_words/translations/vi.rb +24 -0
- data/lib/numbers_and_words/translations.rb +11 -2
- data/lib/numbers_and_words/version.rb +3 -1
- data/lib/numbers_and_words/wrappers/float.rb +22 -16
- data/lib/numbers_and_words/wrappers/integer.rb +6 -4
- data/lib/numbers_and_words/wrappers.rb +3 -1
- data/lib/numbers_and_words.rb +2 -3
- metadata +108 -58
- data/lib/numbers_and_words/helper_classes/array_extensions/validations.rb +0 -19
- data/lib/numbers_and_words/i18n/plurals/es.rb +0 -11
- data/lib/numbers_and_words/i18n/plurals/fr.rb +0 -15
- data/lib/numbers_and_words/translations/en_gb.rb +0 -6
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
YWMzZDdhNWM4ODI2ODFiYTFiOTIxYTc5M2EzYmJkMjhjYjMxNGQwNzRiMTM5
|
10
|
-
ZDUyMzdlZTBlYzAyODhiMTliMjdkNWZiOTBkMDVhODI4NzY1YWFmNGMzOTU0
|
11
|
-
N2I5NjBkNjlmZmI5ZTA4ODZhNGU1N2I5MDFmOWU0MjRhYzZhNjA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZDg1OTM1YzUyN2E5Njc1MzcyZjhjZDJlYmY4YTBhYTBlNzkwYzhkMTBjZTJl
|
14
|
-
YjgxMzg1ODcxOWFhN2ZjMjA1MDlmYjZiYzlhNzJhMGMyZmQ2ZDY2YWVkNWQ5
|
15
|
-
YWJhNWIyZmY3ZjZmYmYxNGVjYWMzMDQ2MmRlYzA2OWNkODY3ZTA=
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e0cae184fece1fb7a27a25a61b57d0055ab90119374f7837755df26c8683eaf8
|
4
|
+
data.tar.gz: 913165cd689041cf5ffc006549951bdac7886e9119eab763a920080138e51e7a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3d85520a2eb111cf5b872974d226fccea4403451f429e85b19c803e62339925c9a75a5e13a87b88243318a26818854cbbce4e974c02ad603be8e2369c26a7941
|
7
|
+
data.tar.gz: 40bb39e40013a3209f9c64b69938e4b56cdfb5a94a2cc270b5e7b143b320efa724111e5a9ebd59e73989cd509115b87b42ee705b8b4b439e35a061fdcf5df803
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,264 @@
|
|
1
|
+
## 0.11.13 (Next)
|
2
|
+
|
3
|
+
### Features
|
4
|
+
* Your contribution here.
|
5
|
+
|
6
|
+
## 0.11.12 (April 22, 2023)
|
7
|
+
|
8
|
+
### Features
|
9
|
+
* Add support for Ruby 3.1. \[[#187](https://github.com/kslazarev/numbers_and_words/pull/187)\]
|
10
|
+
* Drop support for Ruby 2.5. \[[#180](https://github.com/kslazarev/numbers_and_words/pull/180)\]
|
11
|
+
* Drop support for Ruby 2.6. \[[#190](https://github.com/kslazarev/numbers_and_words/pull/190)\]
|
12
|
+
* Add support for Ruby 3.2. \[[#193](https://github.com/kslazarev/numbers_and_words/pull/193)\]
|
13
|
+
|
14
|
+
### Bugs
|
15
|
+
* Properly handle Dutch year numbers. \[[#183](https://github.com/kslazarev/numbers_and_words/pull/183)\] \([@mvz](https://github.com/mvz)\)
|
16
|
+
* Remove pluralization rules for French. \[[#195](https://github.com/kslazarev/numbers_and_words/pull/195)\]
|
17
|
+
|
18
|
+
## 0.11.11 (July 5, 2021)
|
19
|
+
|
20
|
+
### Bugs
|
21
|
+
* Fix edge cases in Dutch. \[[#182](https://github.com/kslazarev/numbers_and_words/pull/182)\] \([@mvz](https://github.com/mvz)\)
|
22
|
+
|
23
|
+
## 0.11.10 (January 5, 2021)
|
24
|
+
|
25
|
+
### Bugs
|
26
|
+
* Avoid adding all array extensions to the standard Array class. \[[#179](https://github.com/kslazarev/numbers_and_words/pull/179)\]
|
27
|
+
|
28
|
+
## 0.11.9 (January 4, 2021)
|
29
|
+
|
30
|
+
### Features
|
31
|
+
* Add support for Ruby 3.0. \[[#178](https://github.com/kslazarev/numbers_and_words/pull/178)\]
|
32
|
+
|
33
|
+
## 0.11.8 (June 6, 2020)
|
34
|
+
|
35
|
+
### Features
|
36
|
+
* Add support for Kazakh language. \[[#175](https://github.com/kslazarev/numbers_and_words/pull/175)\] \([@j8sus](https://github.com/j8sus)\)
|
37
|
+
|
38
|
+
## 0.11.7 (June 1, 2020)
|
39
|
+
|
40
|
+
### Features
|
41
|
+
* Add support for Ruby 2.7. \[[#172](https://github.com/kslazarev/numbers_and_words/pull/172)\]
|
42
|
+
* Drop support for Ruby 2.4.
|
43
|
+
|
44
|
+
## 0.11.6 (April 14, 2019)
|
45
|
+
|
46
|
+
### Bugs
|
47
|
+
* Fix wrong spelling in Spanish with precision. \[[#165](https://github.com/kslazarev/numbers_and_words/pull/165)\]
|
48
|
+
|
49
|
+
### Features
|
50
|
+
* Add support for Ruby 2.6. \[[#161](https://github.com/kslazarev/numbers_and_words/pull/161)\]
|
51
|
+
* Drop support for Ruby 2.2.
|
52
|
+
* Drop support for Ruby 2.3.
|
53
|
+
|
54
|
+
## 0.11.5 (March 22, 2018)
|
55
|
+
|
56
|
+
### Bugs
|
57
|
+
* Fix Armenian megs capacity words. \[[#156](https://github.com/kslazarev/numbers_and_words/pull/156)\]
|
58
|
+
|
59
|
+
## 0.11.4 (March 20, 2018)
|
60
|
+
|
61
|
+
### Features
|
62
|
+
* Add support for Armenian language. \[[#155](https://github.com/kslazarev/numbers_and_words/pull/155)\]
|
63
|
+
* Improve CI.
|
64
|
+
* Improve code readability.
|
65
|
+
|
66
|
+
## 0.11.3 (December 3, 2017)
|
67
|
+
|
68
|
+
### Features
|
69
|
+
* Add support for Vietnamese language. \[[#152](https://github.com/kslazarev/numbers_and_words/pull/152)\]
|
70
|
+
|
71
|
+
## 0.11.2 (August 14, 2017)
|
72
|
+
|
73
|
+
### Features
|
74
|
+
* Add full support for Czech language. \[[#148](https://github.com/kslazarev/numbers_and_words/pull/148)\]
|
75
|
+
|
76
|
+
## 0.11.1 (July 23, 2017)
|
77
|
+
|
78
|
+
### Features
|
79
|
+
* Add support for Spanish floating-point numbers. \[[#146](https://github.com/kslazarev/numbers_and_words/pull/146)\]
|
80
|
+
* Add support for French floating-point numbers. \[[#144](https://github.com/kslazarev/numbers_and_words/pull/144)\]
|
81
|
+
|
82
|
+
## 0.11.0 (June 26, 2017)
|
83
|
+
|
84
|
+
### Features
|
85
|
+
* Remove dependency on `ActiveSupport` gem. \[[#141](https://github.com/kslazarev/numbers_and_words/pull/141)\]
|
86
|
+
|
87
|
+
## 0.10.6 (June 11, 2017)
|
88
|
+
|
89
|
+
### Features
|
90
|
+
* Add full support for Brazilian Portuguese. \[[#139](https://github.com/kslazarev/numbers_and_words/pull/139)\]
|
91
|
+
* Add option `precision` to `to_words`. \[[#134](https://github.com/kslazarev/numbers_and_words/issues/134)\] \([@neodelf](https://github.com/neodelf)\) \(assignee: [@neodelf](https://github.com/neodelf)\)
|
92
|
+
|
93
|
+
### Bugs
|
94
|
+
* Fix README typo for 231 in French. \(assignee: [@poilon](https://github.com/poilon)\)
|
95
|
+
* Fix big numbers in Spanish. \[[#129](https://github.com/kslazarev/numbers_and_words/pull/129)\] \([@jlduran](https://github.com/jlduran)\) \(assignee: [@jlduran](https://github.com/jlduran)\)
|
96
|
+
* Fix typo for number twenty-one in Spanish. \[[#127](https://github.com/kslazarev/numbers_and_words/pull/127)\] \([@jlduran](https://github.com/jlduran)\) \(assignee: [@jlduran](https://github.com/jlduran)\)
|
97
|
+
|
98
|
+
## 0.10.5 (March 9, 2016)
|
99
|
+
|
100
|
+
### Bugs
|
101
|
+
* Fix pluralization rules for Spanish. \[[#122](https://github.com/kslazarev/numbers_and_words/pull/122)\] \([@jlduran](https://github.com/jlduran)\)
|
102
|
+
* Fix long scale names in Spanish. \[[#112](https://github.com/kslazarev/numbers_and_words/pull/112)\] \([@jlduran](https://github.com/jlduran)\)
|
103
|
+
* Fix Turkish hundred and thousand numbers. \[[#113](https://github.com/kslazarev/numbers_and_words/pull/113)\] \([@cbilgili](https://github.com/cbilgili)\)
|
104
|
+
* Fix one/other convention in Spanish and French. \[[#116](https://github.com/kslazarev/numbers_and_words/pull/116)\] \([@joseramonc](https://github.com/joseramonc)\)
|
105
|
+
* Fix hundreds in Lithuanian. \[[#117](https://github.com/kslazarev/numbers_and_words/pull/117)\] \([@osegrums](https://github.com/osegrums)\)
|
106
|
+
|
107
|
+
## 0.10.4 (March 02, 2015)
|
108
|
+
|
109
|
+
### Bugs
|
110
|
+
* Fix Lithuanian `other` spelling errors. \[[#109](https://github.com/kslazarev/numbers_and_words/pull/109)\] \([@ViliusLuneckas](https://github.com/ViliusLuneckas)\) \(assignee: [@miks](https://github.com/miks)\)
|
111
|
+
|
112
|
+
## 0.10.3 (May 8, 2014)
|
113
|
+
|
114
|
+
### Features
|
115
|
+
* Add Georgian language. \[[#100](https://github.com/kslazarev/numbers_and_words/pull/100)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
|
116
|
+
|
117
|
+
### Bugs
|
118
|
+
* Simplify estonian tens with ones method. \[[#101](https://github.com/kslazarev/numbers_and_words/pull/101)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
|
119
|
+
|
120
|
+
## 0.10.2 (December 18, 2013)
|
121
|
+
|
122
|
+
### Bugs
|
123
|
+
* Fix latvian one thousand case. \[[#88](https://github.com/kslazarev/numbers_and_words/pull/88)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
|
124
|
+
|
125
|
+
### Supports
|
126
|
+
* Reach 100% coverage. \[[#89](https://github.com/kslazarev/numbers_and_words/pull/89)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
|
127
|
+
|
128
|
+
## 0.10.1 (October 22, 2013)
|
129
|
+
|
130
|
+
### Bugs
|
131
|
+
* Minor orthographic typo in Spanish language. \[[#85](https://github.com/kslazarev/numbers_and_words/pull/85)\] \([@jlduran](https://github.com/jlduran)\) \(assignee: [@jlduran](https://github.com/jlduran)\)
|
132
|
+
|
133
|
+
## 0.10.0 (September 03, 2013)
|
134
|
+
|
135
|
+
### Features
|
136
|
+
* Add Estonian language. \[[#82](https://github.com/kslazarev/numbers_and_words/pull/82)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
|
137
|
+
* Add Lithuanian language. \[[#77](https://github.com/kslazarev/numbers_and_words/pull/77)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
|
138
|
+
|
139
|
+
### Bugs
|
140
|
+
* Fix latvian one hundread cases. \[[#81](https://github.com/kslazarev/numbers_and_words/pull/81)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
|
141
|
+
|
142
|
+
### Supports
|
143
|
+
* Added @miks contacts to contributors list in README. \[[#79](https://github.com/kslazarev/numbers_and_words/issues/79)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@miks](https://github.com/miks)\)
|
144
|
+
|
145
|
+
## 0.9.0 (May 19, 2013)
|
146
|
+
|
147
|
+
### Features
|
148
|
+
* Add Latvian language. \[[#70](https://github.com/kslazarev/numbers_and_words/pull/70)\] \([@martinsspringis](https://github.com/martinsspringis)\) \(assignee: [@martinsspringis](https://github.com/martinsspringis)\)
|
149
|
+
* Add German language. \[[#52](https://github.com/kslazarev/numbers_and_words/pull/52)\] \([@GSI](https://github.com/GSI)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
150
|
+
|
151
|
+
### Supports
|
152
|
+
* Add @martinsspringis contacts and some examples on Latvian language to README. \[[#71](https://github.com/kslazarev/numbers_and_words/issues/71)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@martinsspringis](https://github.com/martinsspringis)\)
|
153
|
+
|
154
|
+
## 0.8.0 (April 29, 2013)
|
155
|
+
|
156
|
+
### Features
|
157
|
+
* Try to use global language by default, if regional language is missing (EnUs is missing). \[[#65](https://github.com/kslazarev/numbers_and_words/issues/65)\] \([@hubrix](https://github.com/hubrix)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
158
|
+
|
159
|
+
### Supports
|
160
|
+
* Add regional languages aliases to README. \[[#67](https://github.com/kslazarev/numbers_and_words/issues/67)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
161
|
+
* Remove all warnings in gem. (ruby -w). \[[#66](https://github.com/kslazarev/numbers_and_words/pull/66)\] \([@nikhaldi](https://github.com/nikhaldi)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
162
|
+
|
163
|
+
## 0.7.1 (April 22, 2013)
|
164
|
+
|
165
|
+
### Bugs
|
166
|
+
* Wrong hundreds separator with British. \[[#62](https://github.com/kslazarev/numbers_and_words/issues/62)\] \([@eLod](https://github.com/eLod)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
167
|
+
|
168
|
+
## 0.7.0 (April 14, 2013)
|
169
|
+
|
170
|
+
### Features
|
171
|
+
* Send number's options through array. \[[#60](https://github.com/kslazarev/numbers_and_words/issues/60)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
172
|
+
* Add British English. \[[#57](https://github.com/kslazarev/numbers_and_words/issues/57)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@eLod](https://github.com/eLod)\)
|
173
|
+
|
174
|
+
## 0.6.1 (April 11, 2013)
|
175
|
+
|
176
|
+
### Bugs
|
177
|
+
* Extra 'and' added after round hundreds (using hundreds_with_union: true) in English. \[[#58](https://github.com/kslazarev/numbers_and_words/issues/58)\] \([@mafraba](https://github.com/mafraba)\) \(assignee: [@eLod](https://github.com/eLod)\)
|
178
|
+
|
179
|
+
## 0.6.0 (March 25, 2013)
|
180
|
+
|
181
|
+
### Features
|
182
|
+
* Support fractional form for Ukranian. \[[#54](https://github.com/kslazarev/numbers_and_words/issues/54)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@Shk-Serji](https://github.com/Shk-Serji)\)
|
183
|
+
* Support fractional form for Russian. \[[#53](https://github.com/kslazarev/numbers_and_words/issues/53)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
184
|
+
* Added functionality for spanish . \[[#51](https://github.com/kslazarev/numbers_and_words/pull/51)\] \([@jaambros](https://github.com/jaambros)\) \(assignee: [@jaambros](https://github.com/jaambros)\)
|
185
|
+
* Support ordinal form for English and Hungarian. \[[#50](https://github.com/kslazarev/numbers_and_words/issues/50)\] \([@eLod](https://github.com/eLod)\) \(assignee: [@eLod](https://github.com/eLod)\)
|
186
|
+
* Add option :remove_hyphen for English language. \[[#45](https://github.com/kslazarev/numbers_and_words/issues/45)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
187
|
+
* Add option :hundreds_with_union for English language. \[[#44](https://github.com/kslazarev/numbers_and_words/issues/44)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
188
|
+
* Add Spanish language. (experimental). \[[#42](https://github.com/kslazarev/numbers_and_words/issues/42)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
189
|
+
* Add Swedish language. (experimental). \[[#41](https://github.com/kslazarev/numbers_and_words/issues/41)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
190
|
+
* Add Hungarian language. \[[#40](https://github.com/kslazarev/numbers_and_words/pull/40)\] \([@eLod](https://github.com/eLod)\) \(assignee: [@eLod](https://github.com/eLod)\)
|
191
|
+
* Add option :gender for Russian language. \[[#39](https://github.com/kslazarev/numbers_and_words/issues/39)\] \([@ermolaev](https://github.com/ermolaev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
192
|
+
* Gem numbers_and_words not working for decimal values. \[[#38](https://github.com/kslazarev/numbers_and_words/issues/38)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@eLod](https://github.com/eLod)\)
|
193
|
+
|
194
|
+
### Supports
|
195
|
+
* Update 'code climate' badge. \[[#47](https://github.com/kslazarev/numbers_and_words/issues/47)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
196
|
+
* Add @eLog contacts and project description on Hungarian language to README. \[[#46](https://github.com/kslazarev/numbers_and_words/issues/46)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@eLod](https://github.com/eLod)\)
|
197
|
+
* Add language specific options. \[[#43](https://github.com/kslazarev/numbers_and_words/issues/43)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
198
|
+
|
199
|
+
## 0.5.0 (October 19, 2012)
|
200
|
+
|
201
|
+
### Features
|
202
|
+
* Add Italian language. (experimental). \[[#34](https://github.com/kslazarev/numbers_and_words/issues/34)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
203
|
+
* Add Dutch language. (experimental). \[[#33](https://github.com/kslazarev/numbers_and_words/issues/33)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
204
|
+
* Add French language. \[[#29](https://github.com/kslazarev/numbers_and_words/pull/29)\] \([@sorich87](https://github.com/sorich87)\) \(assignee: [@sorich87](https://github.com/sorich87)\)
|
205
|
+
|
206
|
+
### Supports
|
207
|
+
* Add @sorich87 contacts to README. \[[#36](https://github.com/kslazarev/numbers_and_words/issues/36)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@sorich87](https://github.com/sorich87)\)
|
208
|
+
* Add Code Climate badge. \[[#35](https://github.com/kslazarev/numbers_and_words/issues/35)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
209
|
+
* Refactoring tests. \[[#32](https://github.com/kslazarev/numbers_and_words/issues/32)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
210
|
+
* Refactoring strategies. \[[#31](https://github.com/kslazarev/numbers_and_words/issues/31)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
211
|
+
|
212
|
+
## 0.4.0 (June 24, 2012)
|
213
|
+
|
214
|
+
### Features
|
215
|
+
* Add Turkish language. \[[#26](https://github.com/kslazarev/numbers_and_words/issues/26)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@Shk-Serji](https://github.com/Shk-Serji)\)
|
216
|
+
* Add Ukrainian language. \[[#25](https://github.com/kslazarev/numbers_and_words/issues/25)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@Shk-Serji](https://github.com/Shk-Serji)\)
|
217
|
+
|
218
|
+
### Supports
|
219
|
+
* Combine all connections with i18n library in one sub-module. \[[#28](https://github.com/kslazarev/numbers_and_words/issues/28)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
220
|
+
* Add separate logics for pluralization in different languages. \[[#27](https://github.com/kslazarev/numbers_and_words/issues/27)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
221
|
+
|
222
|
+
## 0.3.2 (June 24, 2012)
|
223
|
+
|
224
|
+
### Bugs
|
225
|
+
* Ломает плюрализацию russian. \[[#22](https://github.com/kslazarev/numbers_and_words/issues/22)\] \([@yura](https://github.com/yura)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
226
|
+
|
227
|
+
## 0.3.1 (May 04, 2012)
|
228
|
+
|
229
|
+
### Bugs
|
230
|
+
* Fixes 80 in English. \[[#18](https://github.com/kslazarev/numbers_and_words/pull/18)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
|
231
|
+
|
232
|
+
### Supports
|
233
|
+
* Add CHANGELOG.md. \[[#19](https://github.com/kslazarev/numbers_and_words/issues/19)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
234
|
+
* Readable specs. \[[#16](https://github.com/kslazarev/numbers_and_words/pull/16)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
235
|
+
|
236
|
+
### Deprecations
|
237
|
+
* Add deprecation warning for using gem 'number_to_words_ru' . \[[#21](https://github.com/kslazarev/numbers_and_words/issues/21)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
238
|
+
|
239
|
+
## 0.3.0 (March 24, 2012)
|
240
|
+
|
241
|
+
### Bugs
|
242
|
+
* Rails 3 will choke on a nested array. \[[#10](https://github.com/kslazarev/numbers_and_words/pull/10)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
|
243
|
+
* English fixes and tests. \[[#9](https://github.com/kslazarev/numbers_and_words/pull/9)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
|
244
|
+
* Namespaced NumbersAndWords. \[[#7](https://github.com/kslazarev/numbers_and_words/pull/7)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
|
245
|
+
|
246
|
+
### Supports
|
247
|
+
* Add contacts to README. \[[#14](https://github.com/kslazarev/numbers_and_words/issues/14)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@dblock](https://github.com/dblock)\)
|
248
|
+
* Fixed typo in readme. \[[#13](https://github.com/kslazarev/numbers_and_words/pull/13)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
|
249
|
+
* Added Travis-ci. \[[#12](https://github.com/kslazarev/numbers_and_words/pull/12)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
|
250
|
+
* Fix README (Russian & English). \[[#11](https://github.com/kslazarev/numbers_and_words/pull/11)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
|
251
|
+
* Rename the repo at https://github.com/kslazarev/number_to_words_ru. \[[#8](https://github.com/kslazarev/numbers_and_words/issues/8)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
252
|
+
* Switch a hard-coded gemspec to Jeweler. \[[#6](https://github.com/kslazarev/numbers_and_words/pull/6)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
|
253
|
+
|
254
|
+
## 0.3.0.alpha (March 24, 2012)
|
255
|
+
|
256
|
+
### Features
|
257
|
+
* Check working with ruby 1.9.3. \[[#4](https://github.com/kslazarev/numbers_and_words/issues/4)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
258
|
+
|
259
|
+
### Bugs
|
260
|
+
* Bundle exec rake problem. \[[#3](https://github.com/kslazarev/numbers_and_words/issues/3)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
261
|
+
|
262
|
+
### Supports
|
263
|
+
* Remove temporary file Gemfile.lock. \[[#5](https://github.com/kslazarev/numbers_and_words/issues/5)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
264
|
+
* Renamed gem from number_to_words_ru to numbers_and_words. \[[#2](https://github.com/kslazarev/numbers_and_words/pull/2)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
|
data/README.rdoc
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
== numbers_and_words
|
2
2
|
|
3
|
-
{<img src="https://badge.fury.io/rb/numbers_and_words.
|
4
|
-
{<img src="https://
|
5
|
-
{<img src="https://
|
6
|
-
{<img src="https://
|
7
|
-
{<img src="https://coveralls.io/repos/kslazarev/numbers_and_words/badge.png?branch=master" alt="Coverage Status" />}[https://coveralls.io/r/kslazarev/numbers_and_words]
|
3
|
+
{<img src="https://badge.fury.io/rb/numbers_and_words.svg?branch=master" alt="Gem Version" />}[http://badge.fury.io/rb/numbers_and_words]
|
4
|
+
{<img src="https://codeclimate.com/github/kslazarev/numbers_and_words.svg?branch=master" />}[https://codeclimate.com/github/kslazarev/numbers_and_words]
|
5
|
+
{<img src="https://secure.travis-ci.org/kslazarev/numbers_and_words.svg?branch=master" />}[http://travis-ci.org/kslazarev/numbers_and_words]
|
6
|
+
{<img src="https://coveralls.io/repos/kslazarev/numbers_and_words/badge.svg?branch=master" alt="Coverage Status" />}[https://coveralls.io/r/kslazarev/numbers_and_words]
|
8
7
|
|
9
|
-
|
8
|
+
Spell out numbers in several languages using the I18n gem.
|
10
9
|
|
11
10
|
Перевод чисел в слова при помощи библиотеки I18n.
|
12
11
|
|
@@ -14,6 +13,12 @@ Converti les nombres en lettres en utilisant la librairie I18n.
|
|
14
13
|
|
15
14
|
Számok betűvel írva az I18n könyvtár segítségével.
|
16
15
|
|
16
|
+
I18n kütüphanesi ile sayıları yazıya çevirir.
|
17
|
+
|
18
|
+
Soletra números em vários idiomas utilizando a biblioteca I18n.
|
19
|
+
|
20
|
+
Deletrea números en varios idiomas utilizando la gema I18n.
|
21
|
+
|
17
22
|
== Supported Languages / Языки / Langues Supportées
|
18
23
|
|
19
24
|
* English [en]
|
@@ -25,17 +30,22 @@ Számok betűvel írva az I18n könyvtár segítségével.
|
|
25
30
|
* Lietuvių [lt]
|
26
31
|
* Latviešu [lv]
|
27
32
|
* Eesti [et]
|
28
|
-
*
|
33
|
+
* ქართული (Georgian) [ka]
|
34
|
+
* Türkçe [tr]
|
29
35
|
* Deutsch** [de]
|
30
36
|
* Italiano** [it]
|
31
|
-
* Nederlands
|
37
|
+
* Nederlands [nl]
|
32
38
|
* Swedish** [se]
|
33
39
|
* English (British)** [en-GB]
|
40
|
+
* Česky [cs]
|
41
|
+
* Português [pt]
|
42
|
+
* Português Brasileiro [pt-BR]
|
43
|
+
* հայերեն (Armenian) [hy]
|
44
|
+
* Қазақша [kz]
|
34
45
|
|
35
46
|
** Experimental
|
36
47
|
|
37
48
|
* {[en-AU], [en-CA], [en-IN], [en-US]}*** => [en]
|
38
|
-
* {[es-419], [es-AR], [es-CL], [es-CO], [es-MX], [es-PE], [es-VE]}*** => [es]
|
39
49
|
* {[fr-CA], [fr-CH]}*** => [fr]
|
40
50
|
* {[de], [de-AT], [de-CH]}*** => [de]
|
41
51
|
* {[it-CH]}*** => [it]
|
@@ -68,6 +78,21 @@ Számok betűvel írva az I18n könyvtár segítségével.
|
|
68
78
|
I18n.with_locale(:et) { 42.to_words }
|
69
79
|
=> "nelikümmend kaks"
|
70
80
|
|
81
|
+
I18n.with_locale(:ka) { 42.to_words }
|
82
|
+
=> "ორმოცდაორი"
|
83
|
+
|
84
|
+
I18n.with_locale(:cs) { 42.to_words }
|
85
|
+
=> "čtyřicetdva"
|
86
|
+
|
87
|
+
I18n.with_locale(:vi) { 42.to_words }
|
88
|
+
=> "bốn mươi hai"
|
89
|
+
|
90
|
+
I18n.with_locale(:hy) { 42.to_words }
|
91
|
+
=> "քառասուն երկու"
|
92
|
+
|
93
|
+
I18n.with_locale(:kz) { 42.to_words }
|
94
|
+
=> "қырық екi"
|
95
|
+
|
71
96
|
21.to_words
|
72
97
|
=> "twenty-one"
|
73
98
|
=> "veintiuno"
|
@@ -79,26 +104,38 @@ Számok betűvel írva az I18n könyvtár segítségével.
|
|
79
104
|
=> "divdesmit viens"
|
80
105
|
=> "kakskümmend üks"
|
81
106
|
=> "yirmi bir"
|
107
|
+
=> "ოცდაერთი"
|
82
108
|
=> "einundzwanzig"
|
83
109
|
=> "ventiuno"
|
84
|
-
=> "
|
110
|
+
=> "eenentwintig"
|
85
111
|
=> "tjugo-en"
|
112
|
+
=> "dvacetjedna"
|
113
|
+
=> "vinte e um"
|
114
|
+
=> "hai mươi mốt"
|
115
|
+
=> "քսան մեկ"
|
116
|
+
=> "жиырма бiр"
|
86
117
|
|
87
118
|
231.to_words
|
88
119
|
=> "two hundred thirty-one"
|
89
120
|
=> "doscientos treinta y uno"
|
90
121
|
=> "двести тридцать один"
|
91
|
-
=> "deux cent trente
|
122
|
+
=> "deux cent trente et un"
|
92
123
|
=> "двiстi тридцять один"
|
93
124
|
=> "kettőszázharmincegy"
|
94
125
|
=> "du šimtai trisdešimt vienas"
|
95
126
|
=> "divi simti trīsdesmit viens"
|
96
127
|
=> "kakssada kolmkümmend üks"
|
128
|
+
=> "ორას ოცდათერთმეტი"
|
97
129
|
=> "iki yüz otuz bir"
|
98
130
|
=> "zweihunderteinunddreißig"
|
99
131
|
=> "2 cento trentauno"
|
100
|
-
=> "
|
132
|
+
=> "tweehonderdeenendertig"
|
101
133
|
=> "två hundra trettio-en"
|
134
|
+
=> "dvě stě třicetjedna"
|
135
|
+
=> "duzentos e trinta e um"
|
136
|
+
=> "hai trăm ba mươi mốt"
|
137
|
+
=> "երկու հարյուր երեսուն մեկ"
|
138
|
+
=> "екi жүз отыз бiр"
|
102
139
|
|
103
140
|
4030.to_words
|
104
141
|
=> "four thousand thirty"
|
@@ -110,11 +147,16 @@ Számok betűvel írva az I18n könyvtár segítségével.
|
|
110
147
|
=> "keturi tūkstančiai trisdešimt"
|
111
148
|
=> "četri tūkstoši trīsdesmit"
|
112
149
|
=> "neli tuhat kolmkümmend"
|
150
|
+
=> "ოთხი ათას ოცდაათი"
|
113
151
|
=> "dört bin otuz"
|
114
152
|
=> "viertausenddreißig"
|
115
153
|
=> "quattro mille trenta"
|
116
154
|
=> "vierthousanddertig"
|
117
155
|
=> "fyra tusen trettio"
|
156
|
+
=> "čtyři tisíce třicet"
|
157
|
+
=> "bốn nghìn không trăm ba mươi"
|
158
|
+
=> "չորս հազար երեսուն"
|
159
|
+
=> "төрт мың отыз"
|
118
160
|
|
119
161
|
1000100.to_words
|
120
162
|
=> "one million one hundred"
|
@@ -126,15 +168,20 @@ Számok betűvel írva az I18n könyvtár segítségével.
|
|
126
168
|
=> "milijonas šimtas"
|
127
169
|
=> "viens miljons simts"
|
128
170
|
=> "üks miljon ükssada"
|
129
|
-
=> "
|
171
|
+
=> "ერთი მილიონ ასი"
|
172
|
+
=> "bir milyon yüz"
|
130
173
|
=> "eine Million einhundert"
|
131
174
|
=> "uno milione 1 cento"
|
132
175
|
=> "één miljoen honderd"
|
133
176
|
=> "en miljoner en hundra"
|
177
|
+
=> "jeden milión jedno sto"
|
178
|
+
=> "một triệu một trăm"
|
179
|
+
=> "մեկ միլիոն հարյուր"
|
180
|
+
=> "бiр миллион бiр жүз"
|
134
181
|
|
135
182
|
1000000000000000000000000000000000.to_words
|
136
183
|
=> "one decillion"
|
137
|
-
=> "
|
184
|
+
=> "mil quintillones"
|
138
185
|
=> "один дециллион"
|
139
186
|
=> "un quintilliard"
|
140
187
|
=> "один децильйон"
|
@@ -147,6 +194,8 @@ Számok betűvel írva az I18n könyvtár segítségével.
|
|
147
194
|
=> "uno decillion"
|
148
195
|
=> "één decillion"
|
149
196
|
=> "en decillion"
|
197
|
+
=> "decilijon"
|
198
|
+
=> "бiр дециллион"
|
150
199
|
|
151
200
|
[1, 2, 3].to_words
|
152
201
|
=> ["one", "two", "three"]
|
@@ -157,10 +206,15 @@ Számok betűvel írva az I18n könyvtár segítségével.
|
|
157
206
|
=> ["vienas", "du", "trys"]
|
158
207
|
=> ["viens", "divi", "trīs"]
|
159
208
|
=> ["üks", "kaks", "kolm"]
|
209
|
+
=> ["ერთი", "ორი", "სამი"]
|
210
|
+
=> ["jedna", "dva", "tři"]
|
211
|
+
=> ["một", "hai", "ba"]
|
212
|
+
=> ["մեկ", "երկու", "երեք"]
|
213
|
+
=> ["бiр", "екi", "үш"]
|
160
214
|
|
161
215
|
[11, 22, 133].to_words
|
162
216
|
=> ["eleven", "twenty-two", "one hundred thirty-three"]
|
163
|
-
=> ["once", "
|
217
|
+
=> ["once", "veintidós", "ciento treinta y tres"]
|
164
218
|
=> ["одиннадцать", "двадцать два", "сто тридцать три"]
|
165
219
|
=> ["onze", "vingt-deux", "cent trente-trois"]
|
166
220
|
=> ["одинадцять", "двадцять два", "сто тридцять три"]
|
@@ -168,11 +222,16 @@ Számok betűvel írva az I18n könyvtár segítségével.
|
|
168
222
|
=> ["vienuolika", "dvidešimt du", "šimtas trisdešimt trys"]
|
169
223
|
=> ["vienpadsmit", "divdesmit divi", "simtu trīsdesmit trīs"]
|
170
224
|
=> ["üksteist", "kakskümmend kaks", "ükssada kolmkümmend kolm"]
|
171
|
-
=> ["
|
225
|
+
=> ["თერთმეტი", "ოცდაორი", "ას ოცდაცამეტი"]
|
226
|
+
=> ["on bir", "yirmi iki", "yüz otuz üç"]
|
172
227
|
=> ["elf", "zweiundzwanzig", "einhundertdreiunddreißig"]
|
173
228
|
=> ["undici", "ventidue", "1 cento trentatre"]
|
174
|
-
=> ["elf", "
|
229
|
+
=> ["elf", "tweeëntwintig", "honderddrieëndertig"]
|
175
230
|
=> ["elva", "tjugo-två", "en hundra trettio-tre"]
|
231
|
+
=> ["jedenáct", "dvacetdva", "jedno sto třicettři"]
|
232
|
+
=> ["mười một", "hai mươi hai", "một trăm ba mươi ba"]
|
233
|
+
=> ["տասնմեկ", "քսան երկու", "հարյուր երեսուն երեք"]
|
234
|
+
=> ["он бiр", "жиырма екi", "бiр жүз отыз үш"]
|
176
235
|
|
177
236
|
21.77.to_words
|
178
237
|
=> "twenty-one and seventy-seven hundredths"
|
@@ -180,6 +239,7 @@ Számok betűvel írva az I18n könyvtár segítségével.
|
|
180
239
|
=> "двадцять одна цiла i сiмдесят сiм сотих"
|
181
240
|
=> "huszonegy egész hetvenhét század"
|
182
241
|
=> "twenty-one point seven seven"
|
242
|
+
=> "hai mươi mốt phẩy bảy mươi bảy"
|
183
243
|
|
184
244
|
== Language options / Языковые опции
|
185
245
|
|
@@ -229,10 +289,85 @@ Számok betűvel írva az I18n könyvtár segítségével.
|
|
229
289
|
I18n.with_locale(:hu) { 21.to_words ordinal: true }
|
230
290
|
=> "huszonegyedik"
|
231
291
|
|
292
|
+
* Brazilian Portuguese
|
293
|
+
|
294
|
+
Change gender form: (gender: [:female || :male])
|
295
|
+
|
296
|
+
I18n.with_locale(:'pt-BR') { 1000000001.to_words gender: :female }
|
297
|
+
=> "um bilhão e uma"
|
298
|
+
|
299
|
+
* Czech
|
300
|
+
|
301
|
+
Change gender form: (gender: [:female || :male || :neuter])
|
302
|
+
|
303
|
+
I18n.with_locale(:'cs') { 1.to_words gender: :female }
|
304
|
+
=> "jedna"
|
305
|
+
|
306
|
+
I18n.with_locale(:'cs') { 1.to_words gender: :male }
|
307
|
+
=> "jeden"
|
308
|
+
|
309
|
+
I18n.with_locale(:'cs') { 1.to_words gender: :neuter }
|
310
|
+
=> "jedno"
|
311
|
+
|
312
|
+
Remove 'zero' from integral part of float: (remove_zero: [true || false])
|
313
|
+
|
314
|
+
I18n.with_locale(:cs) { 0.7.to_words }
|
315
|
+
=> "nula celých sedm desetin"
|
316
|
+
|
317
|
+
I18n.with_locale(:cs) { 0.7.to_words remove_zero: true }
|
318
|
+
=> "sedm desetin"
|
319
|
+
|
320
|
+
Ordinal form: (ordinal: [true || false])
|
321
|
+
|
322
|
+
I18n.with_locale(:cs) { 21.to_words ordinal: true }
|
323
|
+
=> "dvacátý první"
|
324
|
+
|
325
|
+
I18n.with_locale(:cs) { 21.to_words gender: :female, ordinal: true }
|
326
|
+
=> "dvacátá první"
|
327
|
+
|
328
|
+
* Spanish
|
329
|
+
|
330
|
+
Change gender form: (gender: [:female || :male])
|
331
|
+
|
332
|
+
I18n.with_locale(:es) { 1.to_words gender: :female }
|
333
|
+
=> "una"
|
334
|
+
|
335
|
+
I18n.with_locale(:es) { 1.to_words gender: :male }
|
336
|
+
=> "uno"
|
337
|
+
|
338
|
+
Use the apocopated (shortened) form: (apocopated: [true || false])
|
339
|
+
|
340
|
+
I18n.with_locale(:es) { 1.to_words apocopated: true }
|
341
|
+
=> "un"
|
342
|
+
|
343
|
+
Mix gender and apocopated forms:
|
344
|
+
|
345
|
+
I18n.with_locale(:es) { 201.to_words gender: :female, apocopated: true }
|
346
|
+
=> "doscientas un"
|
347
|
+
|
348
|
+
Remove 'zero' from integral part of float: (remove_zero: [true || false])
|
349
|
+
|
350
|
+
I18n.with_locale(:es) { 0.7.to_words }
|
351
|
+
=> "cero con siete décimas"
|
352
|
+
|
353
|
+
I18n.with_locale(:es) { 0.7.to_words remove_zero: true }
|
354
|
+
=> "siete décimas"
|
355
|
+
|
356
|
+
== Other options / Другие опции
|
357
|
+
|
358
|
+
* Precision
|
359
|
+
|
360
|
+
You may pass argument :precision that added zeros to the end of float number:
|
361
|
+
|
362
|
+
I18n.with_locale(:ru) { 0.1.to_words precision: 3 }
|
363
|
+
=> ноль целых и десять сотых
|
364
|
+
|
365
|
+
I18n.with_locale(:es) { 0.2.to_words precision: 2 }
|
366
|
+
=> cero con veinte centésimas
|
367
|
+
|
232
368
|
== Requirements / Требования / Configuration Requise
|
233
369
|
|
234
|
-
*
|
235
|
-
* 1.8.7 <= Ruby <= 1.9.2 (-v 0.9.0)
|
370
|
+
* 2.7 <= Ruby (compatible with/совместимость с/compatible avec Ruby 2.7 and/и/et JRuby);
|
236
371
|
* 0.5.0 <= I18n (earlier versions not tested/ранние версии не тестировались/versions précédentes non testées);
|
237
372
|
|
238
373
|
== Installation / Установка / Installation
|