bigcartel-currency-locales 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.travis.yml +12 -0
- data/Appraisals +19 -0
- data/Gemfile +3 -0
- data/README.md +23 -0
- data/Rakefile +25 -0
- data/bigcartel-currency-locales.gemspec +21 -0
- data/gemfiles/2.3.gemfile +10 -0
- data/gemfiles/2.3.gemfile.lock +44 -0
- data/gemfiles/3.0.gemfile +8 -0
- data/gemfiles/3.0.gemfile.lock +99 -0
- data/gemfiles/3.1.gemfile +8 -0
- data/gemfiles/3.1.gemfile.lock +110 -0
- data/gemfiles/3.2.gemfile +8 -0
- data/gemfiles/3.2.gemfile.lock +109 -0
- data/lib/currency-locales.rb +12 -0
- data/lib/currency-locales/locales/cs.yml +26 -0
- data/lib/currency-locales/locales/da.yml +26 -0
- data/lib/currency-locales/locales/en-AU.yml +26 -0
- data/lib/currency-locales/locales/en-GB.yml +26 -0
- data/lib/currency-locales/locales/en-PH.yml +27 -0
- data/lib/currency-locales/locales/en-US.yml +26 -0
- data/lib/currency-locales/locales/es-MX.yml +26 -0
- data/lib/currency-locales/locales/eu.yml +26 -0
- data/lib/currency-locales/locales/gsw-CH.yml +26 -0
- data/lib/currency-locales/locales/hu.yml +26 -0
- data/lib/currency-locales/locales/il.yml +26 -0
- data/lib/currency-locales/locales/ja.yml +30 -0
- data/lib/currency-locales/locales/ms-MY.yml +26 -0
- data/lib/currency-locales/locales/nb.yml +22 -0
- data/lib/currency-locales/locales/pl.yml +27 -0
- data/lib/currency-locales/locales/pt-BR.yml +26 -0
- data/lib/currency-locales/locales/sv-SE.yml +26 -0
- data/lib/currency-locales/locales/th.yml +26 -0
- data/lib/currency-locales/locales/tr.yml +29 -0
- data/lib/currency-locales/locales/zh-TW.yml +30 -0
- data/lib/currency-locales/railtie.rb +11 -0
- data/lib/currency-locales/version.rb +5 -0
- data/rails/init.rb +1 -0
- data/spec/integration/currency_locales_spec.rb +421 -0
- data/spec/spec_helper.rb +27 -0
- metadata +125 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'currency-locales/railtie' if defined?(::Rails) && defined?(::Rails::Railtie)
|
2
|
+
|
3
|
+
module BigCartel
|
4
|
+
module CurrencyLocales
|
5
|
+
class << self
|
6
|
+
def insert
|
7
|
+
locales = Dir[File.join(File.dirname(__FILE__), 'currency-locales', 'locales', '*.yml')]
|
8
|
+
I18n.load_path.concat(locales)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
cs:
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: ","
|
5
|
+
delimiter: ""
|
6
|
+
precision: 2
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%n%u"
|
13
|
+
unit: "Kč"
|
14
|
+
separator: ","
|
15
|
+
delimiter: ""
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: ""
|
@@ -0,0 +1,26 @@
|
|
1
|
+
da:
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: ","
|
5
|
+
delimiter: "."
|
6
|
+
precision: 2
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%u%n"
|
13
|
+
unit: "kr"
|
14
|
+
separator: ","
|
15
|
+
delimiter: "."
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: "."
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"en-AU":
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: "."
|
5
|
+
delimiter: ","
|
6
|
+
precision: 2
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%u%n"
|
13
|
+
unit: "$"
|
14
|
+
separator: "."
|
15
|
+
delimiter: ","
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: ","
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"en-GB":
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: "."
|
5
|
+
delimiter: ","
|
6
|
+
precision: 2
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%u%n"
|
13
|
+
unit: "£"
|
14
|
+
separator: "."
|
15
|
+
delimiter: ","
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: ","
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"en-PH":
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: "."
|
5
|
+
delimiter: ","
|
6
|
+
precision: 2
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%u%n"
|
13
|
+
unit: "₱"
|
14
|
+
separator: "."
|
15
|
+
delimiter: ","
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: ","
|
27
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"en-US":
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: "."
|
5
|
+
delimiter: ","
|
6
|
+
precision: 2
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%u%n"
|
13
|
+
unit: "$"
|
14
|
+
separator: "."
|
15
|
+
delimiter: ","
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: ","
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"es-MX":
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
delimiter: ","
|
5
|
+
precision: 2
|
6
|
+
significant: false
|
7
|
+
strip_insignificant_zeros: false
|
8
|
+
separator: "."
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%u%n"
|
13
|
+
unit: "$"
|
14
|
+
separator: "."
|
15
|
+
delimiter: ","
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: ","
|
@@ -0,0 +1,26 @@
|
|
1
|
+
eu:
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: "."
|
5
|
+
delimiter: ","
|
6
|
+
precision: 2
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%u%n"
|
13
|
+
unit: "€"
|
14
|
+
separator: "."
|
15
|
+
delimiter: ","
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: ","
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"gsw-CH":
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
precision: 2
|
5
|
+
separator: '.'
|
6
|
+
delimiter: ","
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
unit: 'SFr.'
|
13
|
+
format: '%u%n'
|
14
|
+
separator: '.'
|
15
|
+
delimiter: ","
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: "'"
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: ","
|
@@ -0,0 +1,26 @@
|
|
1
|
+
hu:
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
precision: 2
|
5
|
+
separator: ","
|
6
|
+
delimiter: ""
|
7
|
+
|
8
|
+
currency:
|
9
|
+
format:
|
10
|
+
unit: 'Ft'
|
11
|
+
precision: 0
|
12
|
+
format: '%n%u'
|
13
|
+
separator: ","
|
14
|
+
delimiter: ""
|
15
|
+
|
16
|
+
percentage:
|
17
|
+
format:
|
18
|
+
delimiter: ""
|
19
|
+
|
20
|
+
precision:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
paypal:
|
25
|
+
format:
|
26
|
+
precision: 0
|
@@ -0,0 +1,26 @@
|
|
1
|
+
il:
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: "."
|
5
|
+
delimiter: ","
|
6
|
+
precision: 2
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%u%n"
|
13
|
+
unit: "₪"
|
14
|
+
separator: "."
|
15
|
+
delimiter: ","
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: ","
|
@@ -0,0 +1,30 @@
|
|
1
|
+
ja:
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: "."
|
5
|
+
delimiter: ","
|
6
|
+
precision: 2
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%u%n"
|
13
|
+
unit: "¥"
|
14
|
+
separator: "."
|
15
|
+
delimiter: ","
|
16
|
+
precision: 0
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: ","
|
27
|
+
|
28
|
+
paypal:
|
29
|
+
format:
|
30
|
+
precision: 0
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"ms-MY":
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: "."
|
5
|
+
delimiter: ","
|
6
|
+
precision: 2
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%u%n"
|
13
|
+
unit: "RM"
|
14
|
+
separator: "."
|
15
|
+
delimiter: ","
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: ","
|
@@ -0,0 +1,22 @@
|
|
1
|
+
nb:
|
2
|
+
number:
|
3
|
+
format: &number_format
|
4
|
+
precision: 2
|
5
|
+
separator: ","
|
6
|
+
delimiter: ""
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
unit: "kr"
|
13
|
+
format: "%n%u"
|
14
|
+
<<: *number_format
|
15
|
+
|
16
|
+
percentage:
|
17
|
+
format:
|
18
|
+
delimiter: ""
|
19
|
+
|
20
|
+
precision:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
@@ -0,0 +1,27 @@
|
|
1
|
+
pl:
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: ","
|
5
|
+
delimiter: ""
|
6
|
+
precision: 2
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%n%u"
|
13
|
+
unit: "zł"
|
14
|
+
separator: ","
|
15
|
+
delimiter: ""
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: true
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: ""
|
27
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"pt-BR":
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: ","
|
5
|
+
delimiter: "."
|
6
|
+
precision: 2
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%u%n"
|
13
|
+
unit: "R$"
|
14
|
+
separator: ","
|
15
|
+
delimiter: "."
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: "."
|