currencyFormatter-rails 0.1.0
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 +7 -0
- data/.gitignore +12 -0
- data/.gitmodules +3 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/CurrencyFormatter-rails.gemspec +36 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +20 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/Rakefile +6 -0
- data/VERSIONS.md +6 -0
- data/lib/currencyFormatter/rails.rb +3 -0
- data/lib/currencyFormatter/rails/engine.rb +5 -0
- data/lib/currencyFormatter/rails/version.rb +5 -0
- data/vendor/assets/javascripts/currencyFormatter.js +1280 -0
- metadata +93 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a9805062d5523c5e2106e73ce99b915ebdfde9e3
|
4
|
+
data.tar.gz: 0e588975585ead3e7e8591f177346b14f7ae8b8d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f02a6e6d4481dfe591f13777c619795bdd3fea4aef7197496dd1c38484f38d87b70527ca4ac45e09f5439cec87110a5e6f57c47731dee0e625173695de4d1ab0
|
7
|
+
data.tar.gz: daa80dd3be474e24f55401a0c8b24ee483c69f056deb220faece59a6e73d997e9af13ddbfb01b5d1731cfdca784b6d852db7e2cf20e269dee406e441852e44d1
|
data/.gitignore
ADDED
data/.gitmodules
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at tanvir002700@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
@@ -0,0 +1,36 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "currencyFormatter/rails/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "currencyFormatter-rails"
|
8
|
+
spec.version = CurrencyFormatter::Rails::VERSION
|
9
|
+
spec.authors = ["tanvir hasan"]
|
10
|
+
spec.email = ["tanvir002700@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{This gem packages the js currencyFormatter.js plugin. So you never have to download a custom package through the web interface again.}
|
13
|
+
spec.description = %q{CurrencyFormatter.js allows you to format numbers as currencies. It contains 155 currency definitions and 715 locale definitions out of the box. It handles unusually formatted currencies, such as the INR.}
|
14
|
+
spec.homepage = "https://rubygems.org/gems/currencyFormatter-rails"
|
15
|
+
spec.license = "MIT"
|
16
|
+
spec.metadata = { 'source_code_uri' => 'https://github.com/tanvir002700/currencyFormatter-rails' }
|
17
|
+
|
18
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
19
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
20
|
+
if spec.respond_to?(:metadata)
|
21
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
22
|
+
else
|
23
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
24
|
+
"public gem pushes."
|
25
|
+
end
|
26
|
+
|
27
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
28
|
+
f.match(%r{^(test|spec|features)/})
|
29
|
+
end
|
30
|
+
spec.bindir = "exe"
|
31
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
32
|
+
spec.require_paths = ["lib"]
|
33
|
+
|
34
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
35
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
36
|
+
end
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
currencyFormatter-rails (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
rake (10.5.0)
|
10
|
+
|
11
|
+
PLATFORMS
|
12
|
+
ruby
|
13
|
+
|
14
|
+
DEPENDENCIES
|
15
|
+
bundler (~> 1.16)
|
16
|
+
currencyFormatter-rails!
|
17
|
+
rake (~> 10.0)
|
18
|
+
|
19
|
+
BUNDLED WITH
|
20
|
+
1.16.0
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 tanvir hasan
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# CurrencyFormatter::Rails
|
2
|
+
|
3
|
+
[](https://rubygems.org/gems/currencyFormatter-rails)
|
4
|
+
[](https://rubygems.org/gems/currencyFormatter-rails)
|
5
|
+
[](https://github.com/tanvir002700/currencyFormatter-rails)
|
6
|
+
[](https://github.com/tanvir002700/currencyFormatter-rails/blob/master/LICENSE)
|
7
|
+
|
8
|
+
This gem packages the javascript currencyFormatter.js plugin. So you never have to download a custom package through the web interface again.
|
9
|
+
|
10
|
+
CurrencyFormatter.js allows you to format numbers as currencies. It contains 155 currency definitions and 715 locale definitions out of the box. It handles unusually formatted currencies, such as the INR.
|
11
|
+
|
12
|
+
See VERSIONS.md to see which versions of tabulator-rails bundle which versions of currencyFormatter.js.
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
Add this line to your application's Gemfile:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem 'CurrencyFormatter-rails'
|
20
|
+
```
|
21
|
+
|
22
|
+
And then execute:
|
23
|
+
|
24
|
+
$ bundle
|
25
|
+
|
26
|
+
Or install it yourself as:
|
27
|
+
|
28
|
+
$ gem install CurrencyFormatter-rails
|
29
|
+
|
30
|
+
And then edit your app/assets/stylesheets/application.js file to look something like:
|
31
|
+
``` css
|
32
|
+
/*
|
33
|
+
*= require_self
|
34
|
+
*= require currencyFormatter
|
35
|
+
*= require_tree .
|
36
|
+
*/
|
37
|
+
```
|
38
|
+
|
39
|
+
## Usage
|
40
|
+
|
41
|
+
View [CurrencyFormatter.js](https://osrec.github.io/currencyFormatter.js/) for complete useage information.
|
42
|
+
|
43
|
+
## Contributing
|
44
|
+
|
45
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/tanvir002700/CurrencyFormatter-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
46
|
+
|
47
|
+
## License
|
48
|
+
|
49
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
50
|
+
|
51
|
+
## Code of Conduct
|
52
|
+
|
53
|
+
Everyone interacting in the CurrencyFormatter::Rails project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/tanvir002700/CurrencyFormatter-rails/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/VERSIONS.md
ADDED
@@ -0,0 +1,1280 @@
|
|
1
|
+
// CurrencyFormatter.js
|
2
|
+
// ---------------------------------------------------------------------
|
3
|
+
// Version: 2.0
|
4
|
+
// Release Date: 9 Jan 2018
|
5
|
+
// Created by the Bx team at OSREC Technologies (https://osrec.co.uk)
|
6
|
+
//
|
7
|
+
// Check out Bx @ https://usebx.com for free invoicing, expenses & project management
|
8
|
+
// If you use this library in a commercial project, we appreciate a link back to https://osrec.co.uk :)
|
9
|
+
|
10
|
+
var OSREC = OSREC || {};
|
11
|
+
|
12
|
+
OSREC.CurrencyFormatter =
|
13
|
+
{
|
14
|
+
symbols:
|
15
|
+
{
|
16
|
+
AED: 'د.إ.',
|
17
|
+
AFN: '؋',
|
18
|
+
ALL: 'Lekë',
|
19
|
+
AMD: '֏',
|
20
|
+
ANG: 'Naf',
|
21
|
+
AOA: 'Kz',
|
22
|
+
ARS: '$',
|
23
|
+
AUD: '$',
|
24
|
+
AWG: 'Afl.',
|
25
|
+
AZN: '₼',
|
26
|
+
BAM: 'KM',
|
27
|
+
BBD: '$',
|
28
|
+
BDT: '৳',
|
29
|
+
BGN: 'лв.',
|
30
|
+
BHD: 'د.ب.',
|
31
|
+
BIF: 'FBu',
|
32
|
+
BMD: '$',
|
33
|
+
BND: '$',
|
34
|
+
BOB: 'Bs',
|
35
|
+
BRL: 'R$',
|
36
|
+
BSD: '$',
|
37
|
+
BTN: 'Nu.',
|
38
|
+
BWP: 'P',
|
39
|
+
BYR: 'р.',
|
40
|
+
BZD: '$',
|
41
|
+
CAD: '$',
|
42
|
+
CDF: 'FC',
|
43
|
+
CHF: 'CHF',
|
44
|
+
CLP: '$',
|
45
|
+
CNY: '¥',
|
46
|
+
COP: '$',
|
47
|
+
CRC: '₡',
|
48
|
+
CUC: '$',
|
49
|
+
CUP: '$',
|
50
|
+
CVE: '',
|
51
|
+
CZK: 'Kč',
|
52
|
+
DJF: 'Fdj',
|
53
|
+
DKK: 'kr',
|
54
|
+
DOP: '$',
|
55
|
+
DZD: 'DA',
|
56
|
+
EGP: '£',
|
57
|
+
ERN: 'Nfk',
|
58
|
+
ETB: 'Br',
|
59
|
+
EUR: '€',
|
60
|
+
FJD: '$',
|
61
|
+
FKP: '£',
|
62
|
+
GBP: '£',
|
63
|
+
GEL: '₾',
|
64
|
+
GHS: 'GH₵',
|
65
|
+
GIP: '£',
|
66
|
+
GMD: 'D',
|
67
|
+
GNF: 'FG',
|
68
|
+
GTQ: 'Q',
|
69
|
+
GYD: '$',
|
70
|
+
HKD: 'HK$',
|
71
|
+
HNL: 'L',
|
72
|
+
HRK: 'kn',
|
73
|
+
HTG: 'G',
|
74
|
+
HUF: 'Ft',
|
75
|
+
IDR: 'Rp',
|
76
|
+
ILS: '₪',
|
77
|
+
INR: '₹',
|
78
|
+
IQD: 'د.ع.',
|
79
|
+
IRR: 'ریال',
|
80
|
+
ISK: 'kr',
|
81
|
+
JMD: '$',
|
82
|
+
JOD: 'د.أ.',
|
83
|
+
JPY: '¥',
|
84
|
+
KES: 'Ksh',
|
85
|
+
KGS: 'сом',
|
86
|
+
KHR: '៛',
|
87
|
+
KMF: 'CF',
|
88
|
+
KPW: '₩',
|
89
|
+
KRW: '₩',
|
90
|
+
KWD: 'د.ك.',
|
91
|
+
KYD: '$',
|
92
|
+
KZT: '₸',
|
93
|
+
LAK: '₭',
|
94
|
+
LBP: 'L£',
|
95
|
+
LKR: 'Rs',
|
96
|
+
LRD: '$',
|
97
|
+
LSL: 'lLS',
|
98
|
+
LYD: 'د.ل.',
|
99
|
+
MAD: 'د.م.',
|
100
|
+
MDL: 'L',
|
101
|
+
MGA: 'Ar',
|
102
|
+
MKD: 'den',
|
103
|
+
MMK: 'K',
|
104
|
+
MNT: '₮',
|
105
|
+
MOP: 'MOP$',
|
106
|
+
MRO: 'UM',
|
107
|
+
MUR: 'Rs',
|
108
|
+
MWK: 'MK',
|
109
|
+
MXN: '$',
|
110
|
+
MYR: 'RM',
|
111
|
+
MZN: 'MTn',
|
112
|
+
NAD: '$',
|
113
|
+
NGN: '₦',
|
114
|
+
NIO: 'C$',
|
115
|
+
NOK: 'kr',
|
116
|
+
NPR: 'Rs',
|
117
|
+
NZD: '$',
|
118
|
+
OMR: 'ر.ع.',
|
119
|
+
PAB: 'B/.',
|
120
|
+
PEN: 'S/.',
|
121
|
+
PGK: 'K',
|
122
|
+
PHP: '₱',
|
123
|
+
PKR: 'ر',
|
124
|
+
PLN: 'zł',
|
125
|
+
PYG: '₲',
|
126
|
+
QAR: 'ر.ق.',
|
127
|
+
RSD: 'дин.',
|
128
|
+
RUB: '₽',
|
129
|
+
RWF: 'RF',
|
130
|
+
SAR: 'ر.س.',
|
131
|
+
SBD: '$',
|
132
|
+
SCR: 'SR',
|
133
|
+
SDG: 'ج.س.',
|
134
|
+
SEK: 'kr',
|
135
|
+
SGD: '$',
|
136
|
+
SHP: '£',
|
137
|
+
SLL: 'Le',
|
138
|
+
SOS: 'S',
|
139
|
+
SRD: '$',
|
140
|
+
SSP: '£',
|
141
|
+
STD: 'Db',
|
142
|
+
SYP: '£',
|
143
|
+
SZL: 'E',
|
144
|
+
THB: '฿',
|
145
|
+
TMT: 'ТМТ',
|
146
|
+
TND: 'DT',
|
147
|
+
TOP: 'T$',
|
148
|
+
TRY: '₺',
|
149
|
+
TTD: '$',
|
150
|
+
TWD: '$',
|
151
|
+
TZS: 'TSh',
|
152
|
+
UAH: '₴',
|
153
|
+
UGX: 'USh',
|
154
|
+
USD: '$',
|
155
|
+
UYU: '$',
|
156
|
+
UZS: 'сўм',
|
157
|
+
VEF: 'Bs',
|
158
|
+
VND: '₫',
|
159
|
+
VUV: 'VT',
|
160
|
+
WST: 'WS$',
|
161
|
+
XAF: 'FCFA',
|
162
|
+
XCD: '$',
|
163
|
+
XOF: 'CFA',
|
164
|
+
XPF: 'CFP',
|
165
|
+
YER: 'ر.ي.',
|
166
|
+
ZAR: 'R',
|
167
|
+
ZMW: 'K'
|
168
|
+
},
|
169
|
+
|
170
|
+
defaultLocales:
|
171
|
+
{
|
172
|
+
AED: 'ar_AE',
|
173
|
+
AFN: 'fa_AF',
|
174
|
+
ALL: 'sq',
|
175
|
+
AMD: 'hy',
|
176
|
+
ANG: 'nl',
|
177
|
+
AOA: 'pt_AO',
|
178
|
+
ARS: 'es_AR',
|
179
|
+
AUD: 'en',
|
180
|
+
AWG: 'nl_AW',
|
181
|
+
AZN: 'az',
|
182
|
+
BAM: 'bs',
|
183
|
+
BBD: 'en_BB',
|
184
|
+
BDT: 'bn_BD',
|
185
|
+
BGN: 'bg',
|
186
|
+
BHD: 'ar_BH',
|
187
|
+
BIF: 'fr_BI',
|
188
|
+
BMD: 'en_BM',
|
189
|
+
BND: 'ms_BN',
|
190
|
+
BOB: 'es_BO',
|
191
|
+
BRL: 'pt_BR',
|
192
|
+
BSD: 'en_BS',
|
193
|
+
BTN: 'dz',
|
194
|
+
BWP: 'en_BW',
|
195
|
+
BYR: 'be',
|
196
|
+
BZD: 'en_BZ',
|
197
|
+
CAD: 'en_CA',
|
198
|
+
CDF: 'fr_CD',
|
199
|
+
CHF: 'de_CH',
|
200
|
+
CLP: 'es_CL',
|
201
|
+
CNY: 'zh_Hans_CN',
|
202
|
+
COP: 'es_CO',
|
203
|
+
CRC: 'es_CR',
|
204
|
+
CUP: 'es_CU',
|
205
|
+
CVE: 'pt_CV',
|
206
|
+
CZK: 'cs',
|
207
|
+
DJF: 'fr_DJ',
|
208
|
+
DKK: 'da_DK',
|
209
|
+
DOP: 'es_DO',
|
210
|
+
DZD: 'ar_DZ',
|
211
|
+
EGP: 'ar_EG',
|
212
|
+
ERN: 'ti_ER',
|
213
|
+
ETB: 'am',
|
214
|
+
EUR: 'de',
|
215
|
+
FJD: 'en_FJ',
|
216
|
+
FKP: 'en_FK',
|
217
|
+
GBP: 'en',
|
218
|
+
GEL: 'ka',
|
219
|
+
GHS: 'en_GH',
|
220
|
+
GIP: 'en_GI',
|
221
|
+
GMD: 'en_GM',
|
222
|
+
GNF: 'fr_GN',
|
223
|
+
GTQ: 'es_GT',
|
224
|
+
GYD: 'en_GY',
|
225
|
+
HKD: 'zh_Hans_HK',
|
226
|
+
HNL: 'es_HN',
|
227
|
+
HRK: 'hr_HR',
|
228
|
+
HTG: 'en',
|
229
|
+
HUF: 'hu_HU',
|
230
|
+
IDR: 'id',
|
231
|
+
ILS: 'he',
|
232
|
+
INR: 'en_IN',
|
233
|
+
IQD: 'ar_IQ',
|
234
|
+
IRR: 'fa_IR',
|
235
|
+
ISK: 'is',
|
236
|
+
JMD: 'en_JM',
|
237
|
+
JOD: 'ar_JO',
|
238
|
+
JPY: 'ja',
|
239
|
+
KES: 'en_KE',
|
240
|
+
KGS: 'ky',
|
241
|
+
KHR: 'km',
|
242
|
+
KMF: 'ar',
|
243
|
+
KPW: 'ko_KP',
|
244
|
+
KRW: 'ko_KR',
|
245
|
+
KWD: 'ar_KW',
|
246
|
+
KYD: 'en_KY',
|
247
|
+
KZT: 'kk',
|
248
|
+
LAK: 'lo',
|
249
|
+
LBP: 'ar_LB',
|
250
|
+
LKR: 'si',
|
251
|
+
LRD: 'en_LR',
|
252
|
+
LSL: 'en_LS',
|
253
|
+
LYD: 'ar_LY',
|
254
|
+
MAD: 'ar',
|
255
|
+
MDL: 'ro',
|
256
|
+
MGA: 'fr_MG',
|
257
|
+
MKD: 'mk',
|
258
|
+
MMK: 'my',
|
259
|
+
MNT: 'mn',
|
260
|
+
MOP: 'zh',
|
261
|
+
MRO: 'ar_MR',
|
262
|
+
MUR: 'en_MU',
|
263
|
+
MVR: 'en',
|
264
|
+
MWK: 'en',
|
265
|
+
MXN: 'es_MX',
|
266
|
+
MYR: 'ms_MY',
|
267
|
+
MZN: 'pt_MZ',
|
268
|
+
NAD: 'en_NA',
|
269
|
+
NGN: 'en_NG',
|
270
|
+
NIO: 'es_NI',
|
271
|
+
NOK: 'nb_NO',
|
272
|
+
NPR: 'ne',
|
273
|
+
NZD: 'en_NZ',
|
274
|
+
OMR: 'ar_OM',
|
275
|
+
PAB: 'es_PA',
|
276
|
+
PEN: 'es_PE',
|
277
|
+
PGK: 'en_PG',
|
278
|
+
PHP: 'fil',
|
279
|
+
PKR: 'ur_PK',
|
280
|
+
PLN: 'pl',
|
281
|
+
PYG: 'es_PY',
|
282
|
+
QAR: 'ar_QA',
|
283
|
+
RON: 'ro',
|
284
|
+
RSD: 'sr',
|
285
|
+
RUB: 'ru',
|
286
|
+
RWF: 'rw',
|
287
|
+
SAR: 'ar_SA',
|
288
|
+
SBD: 'en_SB',
|
289
|
+
SCR: 'en_SC',
|
290
|
+
SDG: 'ar_SD',
|
291
|
+
SEK: 'sv_SE',
|
292
|
+
SGD: 'en_SG',
|
293
|
+
SHP: 'en_SH',
|
294
|
+
SLL: 'en_SL',
|
295
|
+
SOS: 'so_SO',
|
296
|
+
SRD: 'nl_SR',
|
297
|
+
SSP: 'en',
|
298
|
+
STD: 'pt_ST',
|
299
|
+
SYP: 'ar_SY',
|
300
|
+
SZL: 'en_SZ',
|
301
|
+
THB: 'th',
|
302
|
+
TJS: 'en',
|
303
|
+
TMT: 'tk',
|
304
|
+
TND: 'ar_TN',
|
305
|
+
TOP: 'to',
|
306
|
+
TRY: 'tr_TR',
|
307
|
+
TTD: 'en_TT',
|
308
|
+
TWD: 'zh_Hant_TW',
|
309
|
+
TZS: 'sw_TZ',
|
310
|
+
UAH: 'uk',
|
311
|
+
UGX: 'en_UG',
|
312
|
+
USD: 'en_US',
|
313
|
+
UYU: 'es_UY',
|
314
|
+
UZS: 'uz',
|
315
|
+
VEF: 'es_VE',
|
316
|
+
VND: 'vi',
|
317
|
+
VUV: 'en_BI',
|
318
|
+
WST: 'en_AS',
|
319
|
+
XAF: 'fr',
|
320
|
+
XCD: 'en',
|
321
|
+
XOF: 'fr',
|
322
|
+
XPF: 'fr_PF',
|
323
|
+
YER: 'ar_YE',
|
324
|
+
ZAR: 'zu',
|
325
|
+
ZMW: 'en_ZM',
|
326
|
+
ZWL: 'en_ZW',
|
327
|
+
|
328
|
+
},
|
329
|
+
|
330
|
+
locales:
|
331
|
+
{
|
332
|
+
af: { p: '!#,##0.00', g: ' ', d: ',' },
|
333
|
+
af_NA: { h: 'af' },
|
334
|
+
af_ZA: { h: 'af' },
|
335
|
+
agq: { p: '#,##0.00!', g: ' ', d: ',' },
|
336
|
+
agq_CM: { h: 'agq' },
|
337
|
+
ak: { p: '!#,##0.00', g: ',', d: '.' },
|
338
|
+
ak_GH: { h: 'ak' },
|
339
|
+
am: { p: '!#,##0.00', g: ',', d: '.' },
|
340
|
+
am_ET: { h: 'am' },
|
341
|
+
ar: { p: '! #,##0.00', g: ',', d: '.' },
|
342
|
+
ar_001: { h: 'ar' },
|
343
|
+
ar_AE: { h: 'ar' },
|
344
|
+
ar_BH: { h: 'ar' },
|
345
|
+
ar_DJ: { h: 'ar' },
|
346
|
+
ar_DZ: { p: '! #,##0.00', g: '.', d: ',' },
|
347
|
+
ar_EG: { h: 'ar' },
|
348
|
+
ar_EH: { h: 'ar' },
|
349
|
+
ar_ER: { h: 'ar' },
|
350
|
+
ar_IL: { h: 'ar' },
|
351
|
+
ar_IQ: { h: 'ar' },
|
352
|
+
ar_JO: { h: 'ar' },
|
353
|
+
ar_KM: { h: 'ar' },
|
354
|
+
ar_KW: { h: 'ar' },
|
355
|
+
ar_LB: { p: '! #,##0.00', g: '.', d: ',' },
|
356
|
+
ar_LY: { p: '! #,##0.00', g: '.', d: ',' },
|
357
|
+
ar_MA: { p: '! #,##0.00', g: '.', d: ',' },
|
358
|
+
ar_MR: { p: '! #,##0.00', g: '.', d: ',' },
|
359
|
+
ar_OM: { h: 'ar' },
|
360
|
+
ar_PS: { h: 'ar' },
|
361
|
+
ar_QA: { h: 'ar' },
|
362
|
+
ar_SA: { h: 'ar' },
|
363
|
+
ar_SD: { h: 'ar' },
|
364
|
+
ar_SO: { h: 'ar' },
|
365
|
+
ar_SS: { h: 'ar' },
|
366
|
+
ar_SY: { h: 'ar' },
|
367
|
+
ar_TD: { h: 'ar' },
|
368
|
+
ar_TN: { p: '! #,##0.00', g: '.', d: ',' },
|
369
|
+
ar_YE: { h: 'ar' },
|
370
|
+
as: { p: '! #,##,##0.00', g: ',', d: '.' },
|
371
|
+
as_IN: { h: 'as' },
|
372
|
+
asa: { p: '#,##0.00 !', g: ',', d: '.' },
|
373
|
+
asa_TZ: { h: 'asa' },
|
374
|
+
ast: { p: '#,##0.00 !', g: '.', d: ',' },
|
375
|
+
ast_ES: { h: 'ast' },
|
376
|
+
az: { p: '! #,##0.00', g: '.', d: ',' },
|
377
|
+
az_Cyrl: { h: 'az' },
|
378
|
+
az_Cyrl_AZ: { h: 'az' },
|
379
|
+
az_Latn: { h: 'az' },
|
380
|
+
az_Latn_AZ: { h: 'az' },
|
381
|
+
bas: { p: '#,##0.00 !', g: ' ', d: ',' },
|
382
|
+
bas_CM: { h: 'bas' },
|
383
|
+
be: { p: '#,##0.00 !', g: ' ', d: ',' },
|
384
|
+
be_BY: { h: 'be' },
|
385
|
+
bem: { p: '!#,##0.00', g: ',', d: '.' },
|
386
|
+
bem_ZM: { h: 'bem' },
|
387
|
+
bez: { p: '#,##0.00!', g: ',', d: '.' },
|
388
|
+
bez_TZ: { h: 'bez' },
|
389
|
+
bg: { p: '#,##0.00 !', g: ' ', d: ',' },
|
390
|
+
bg_BG: { h: 'bg' },
|
391
|
+
bm: { p: '!#,##0.00', g: ',', d: '.' },
|
392
|
+
bm_ML: { h: 'bm' },
|
393
|
+
bn: { p: '#,##,##0.00!', g: ',', d: '.' },
|
394
|
+
bn_BD: { h: 'bn' },
|
395
|
+
bn_IN: { h: 'bn' },
|
396
|
+
bo: { p: '! #,##0.00', g: ',', d: '.' },
|
397
|
+
bo_CN: { h: 'bo' },
|
398
|
+
bo_IN: { h: 'bo' },
|
399
|
+
br: { p: '#,##0.00 !', g: ' ', d: ',' },
|
400
|
+
br_FR: { h: 'br' },
|
401
|
+
brx: { p: '! #,##,##0.00', g: ',', d: '.' },
|
402
|
+
brx_IN: { h: 'brx' },
|
403
|
+
bs: { p: '#,##0.00 !', g: '.', d: ',' },
|
404
|
+
bs_Cyrl: { h: 'bs' },
|
405
|
+
bs_Cyrl_BA: { h: 'bs' },
|
406
|
+
bs_Latn: { h: 'bs' },
|
407
|
+
bs_Latn_BA: { h: 'bs' },
|
408
|
+
ca: { p: '#,##0.00 !', g: '.', d: ',' },
|
409
|
+
ca_AD: { h: 'ca' },
|
410
|
+
ca_ES: { h: 'ca' },
|
411
|
+
ca_ES_VALENCIA: { h: 'ca' },
|
412
|
+
ca_FR: { h: 'ca' },
|
413
|
+
ca_IT: { h: 'ca' },
|
414
|
+
ce: { p: '#,##0.00 !', g: ',', d: '.' },
|
415
|
+
ce_RU: { h: 'ce' },
|
416
|
+
cgg: { p: '!#,##0.00', g: ',', d: '.' },
|
417
|
+
cgg_UG: { h: 'cgg' },
|
418
|
+
chr: { p: '!#,##0.00', g: ',', d: '.' },
|
419
|
+
chr_US: { h: 'chr' },
|
420
|
+
ckb: { p: '!#,##0.00', g: ',', d: '.' },
|
421
|
+
ckb_IQ: { h: 'ckb' },
|
422
|
+
ckb_IR: { h: 'ckb' },
|
423
|
+
cs: { p: '#,##0.00 !', g: ' ', d: ',' },
|
424
|
+
cs_CZ: { h: 'cs' },
|
425
|
+
cu: { p: '#,##0.00 !', g: ' ', d: ',' },
|
426
|
+
cu_RU: { h: 'cu' },
|
427
|
+
cy: { p: '!#,##0.00', g: ',', d: '.' },
|
428
|
+
cy_GB: { h: 'cy' },
|
429
|
+
da: { p: '#,##0.00 !', g: '.', d: ',' },
|
430
|
+
da_DK: { h: 'da' },
|
431
|
+
da_GL: { h: 'da' },
|
432
|
+
dav: { p: '!#,##0.00', g: ',', d: '.' },
|
433
|
+
dav_KE: { h: 'dav' },
|
434
|
+
de: { p: '#,##0.00 !', g: '.', d: ',' },
|
435
|
+
de_AT: { p: '! #,##0.00', g: ' ', d: ',' },
|
436
|
+
de_BE: { h: 'de' },
|
437
|
+
de_CH: { p: '! #,##0.00;!-#,##0.00', g: '\'', d: '.' },
|
438
|
+
de_DE: { h: 'de' },
|
439
|
+
de_LI: { p: '! #,##0.00', g: '\'', d: '.' },
|
440
|
+
de_LU: { h: 'de' },
|
441
|
+
dje: { p: '#,##0.00!', g: ' ', d: '.' },
|
442
|
+
dje_NE: { h: 'dje' },
|
443
|
+
dsb: { p: '#,##0.00 !', g: '.', d: ',' },
|
444
|
+
dsb_DE: { h: 'dsb' },
|
445
|
+
dua: { p: '#,##0.00 !', g: ' ', d: ',' },
|
446
|
+
dua_CM: { h: 'dua' },
|
447
|
+
dyo: { p: '#,##0.00 !', g: ' ', d: ',' },
|
448
|
+
dyo_SN: { h: 'dyo' },
|
449
|
+
dz: { p: '!#,##,##0.00', g: ',', d: '.' },
|
450
|
+
dz_BT: { h: 'dz' },
|
451
|
+
ebu: { p: '!#,##0.00', g: ',', d: '.' },
|
452
|
+
ebu_KE: { h: 'ebu' },
|
453
|
+
ee: { p: '!#,##0.00', g: ',', d: '.' },
|
454
|
+
ee_GH: { h: 'ee' },
|
455
|
+
ee_TG: { h: 'ee' },
|
456
|
+
el: { p: '#,##0.00 !', g: '.', d: ',' },
|
457
|
+
el_CY: { h: 'el' },
|
458
|
+
el_GR: { h: 'el' },
|
459
|
+
en: { p: '!#,##0.00', g: ',', d: '.' },
|
460
|
+
en_001: { h: 'en' },
|
461
|
+
en_150: { p: '#,##0.00 !', g: '.', d: ',' },
|
462
|
+
en_AG: { h: 'en' },
|
463
|
+
en_AI: { h: 'en' },
|
464
|
+
en_AS: { h: 'en' },
|
465
|
+
en_AT: { p: '! #,##0.00', g: ',', d: '.' },
|
466
|
+
en_AU: { h: 'en' },
|
467
|
+
en_BB: { h: 'en' },
|
468
|
+
en_BE: { p: '#,##0.00 !', g: '.', d: ',' },
|
469
|
+
en_BI: { h: 'en' },
|
470
|
+
en_BM: { h: 'en' },
|
471
|
+
en_BS: { h: 'en' },
|
472
|
+
en_BW: { h: 'en' },
|
473
|
+
en_BZ: { h: 'en' },
|
474
|
+
en_CA: { h: 'en' },
|
475
|
+
en_CC: { h: 'en' },
|
476
|
+
en_CH: { p: '! #,##0.00;!-#,##0.00', g: ',', d: '.' },
|
477
|
+
en_CK: { h: 'en' },
|
478
|
+
en_CM: { h: 'en' },
|
479
|
+
en_CX: { h: 'en' },
|
480
|
+
en_CY: { h: 'en' },
|
481
|
+
en_DE: { h: 'en' },
|
482
|
+
en_DG: { h: 'en' },
|
483
|
+
en_DK: { h: 'en' },
|
484
|
+
en_DM: { h: 'en' },
|
485
|
+
en_ER: { h: 'en' },
|
486
|
+
en_FI: { p: '!#,##0.00', g: ' ', d: '.' },
|
487
|
+
en_FJ: { h: 'en' },
|
488
|
+
en_FK: { h: 'en' },
|
489
|
+
en_FM: { h: 'en' },
|
490
|
+
en_GB: { h: 'en' },
|
491
|
+
en_GD: { h: 'en' },
|
492
|
+
en_GG: { h: 'en' },
|
493
|
+
en_GH: { h: 'en' },
|
494
|
+
en_GI: { h: 'en' },
|
495
|
+
en_GM: { h: 'en' },
|
496
|
+
en_GU: { h: 'en' },
|
497
|
+
en_GY: { h: 'en' },
|
498
|
+
en_HK: { h: 'en' },
|
499
|
+
en_IE: { h: 'en' },
|
500
|
+
en_IL: { h: 'en' },
|
501
|
+
en_IM: { h: 'en' },
|
502
|
+
en_IN: { p: '! #,##,##0.00', g: ',', d: '.' },
|
503
|
+
en_IO: { h: 'en' },
|
504
|
+
en_JE: { h: 'en' },
|
505
|
+
en_JM: { h: 'en' },
|
506
|
+
en_KE: { h: 'en' },
|
507
|
+
en_KI: { h: 'en' },
|
508
|
+
en_KN: { h: 'en' },
|
509
|
+
en_KY: { h: 'en' },
|
510
|
+
en_LC: { h: 'en' },
|
511
|
+
en_LR: { h: 'en' },
|
512
|
+
en_LS: { h: 'en' },
|
513
|
+
en_MG: { h: 'en' },
|
514
|
+
en_MH: { h: 'en' },
|
515
|
+
en_MO: { h: 'en' },
|
516
|
+
en_MP: { h: 'en' },
|
517
|
+
en_MS: { h: 'en' },
|
518
|
+
en_MT: { h: 'en' },
|
519
|
+
en_MU: { h: 'en' },
|
520
|
+
en_MW: { h: 'en' },
|
521
|
+
en_MY: { h: 'en' },
|
522
|
+
en_NA: { h: 'en' },
|
523
|
+
en_NF: { h: 'en' },
|
524
|
+
en_NG: { h: 'en' },
|
525
|
+
en_NL: { p: '! #,##0.00;! -#,##0.00', g: ',', d: '.' },
|
526
|
+
en_NR: { h: 'en' },
|
527
|
+
en_NU: { h: 'en' },
|
528
|
+
en_NZ: { h: 'en' },
|
529
|
+
en_PG: { h: 'en' },
|
530
|
+
en_PH: { h: 'en' },
|
531
|
+
en_PK: { h: 'en' },
|
532
|
+
en_PN: { h: 'en' },
|
533
|
+
en_PR: { h: 'en' },
|
534
|
+
en_PW: { h: 'en' },
|
535
|
+
en_RW: { h: 'en' },
|
536
|
+
en_SB: { h: 'en' },
|
537
|
+
en_SC: { h: 'en' },
|
538
|
+
en_SD: { h: 'en' },
|
539
|
+
en_SE: { p: '!#,##0.00', g: ' ', d: '.' },
|
540
|
+
en_SG: { h: 'en' },
|
541
|
+
en_SH: { h: 'en' },
|
542
|
+
en_SI: { h: 'en' },
|
543
|
+
en_SL: { h: 'en' },
|
544
|
+
en_SS: { h: 'en' },
|
545
|
+
en_SX: { h: 'en' },
|
546
|
+
en_SZ: { h: 'en' },
|
547
|
+
en_TC: { h: 'en' },
|
548
|
+
en_TK: { h: 'en' },
|
549
|
+
en_TO: { h: 'en' },
|
550
|
+
en_TT: { h: 'en' },
|
551
|
+
en_TV: { h: 'en' },
|
552
|
+
en_TZ: { h: 'en' },
|
553
|
+
en_UG: { h: 'en' },
|
554
|
+
en_UM: { h: 'en' },
|
555
|
+
en_US: { h: 'en' },
|
556
|
+
en_US_POSIX: { p: '! #0.00', g: ',', d: '.' },
|
557
|
+
en_VC: { h: 'en' },
|
558
|
+
en_VG: { h: 'en' },
|
559
|
+
en_VI: { h: 'en' },
|
560
|
+
en_VU: { h: 'en' },
|
561
|
+
en_WS: { h: 'en' },
|
562
|
+
en_ZA: { p: '!#,##0.00', g: ' ', d: ',' },
|
563
|
+
en_ZM: { h: 'en' },
|
564
|
+
en_ZW: { h: 'en' },
|
565
|
+
eo: { p: '!#,##0.00', g: ' ', d: ',' },
|
566
|
+
eo_001: { h: 'eo' },
|
567
|
+
es: { p: '#,##0.00 !', g: '.', d: ',' },
|
568
|
+
es_419: { p: '!#,##0.00', g: ',', d: '.' },
|
569
|
+
es_AR: { p: '! #,##0.00', g: '.', d: ',' },
|
570
|
+
es_BO: { h: 'es' },
|
571
|
+
es_BR: { h: 'es' },
|
572
|
+
es_CL: { p: '!#,##0.00;!-#,##0.00', g: '.', d: ',' },
|
573
|
+
es_CO: { p: '! #,##0.00', g: '.', d: ',' },
|
574
|
+
es_CR: { p: '#,##0.00 !', g: ' ', d: ',' },
|
575
|
+
es_CU: { h: 'es' },
|
576
|
+
es_DO: { h: 'es' },
|
577
|
+
es_EA: { h: 'es' },
|
578
|
+
es_EC: { p: '!#,##0.00;!-#,##0.00', g: '.', d: ',' },
|
579
|
+
es_ES: { h: 'es' },
|
580
|
+
es_GQ: { p: '!#,##0.00', g: '.', d: ',' },
|
581
|
+
es_GT: { h: 'es' },
|
582
|
+
es_HN: { h: 'es' },
|
583
|
+
es_IC: { h: 'es' },
|
584
|
+
es_MX: { h: 'es' },
|
585
|
+
es_NI: { h: 'es' },
|
586
|
+
es_PA: { h: 'es' },
|
587
|
+
es_PE: { h: 'es' },
|
588
|
+
es_PH: { h: 'es' },
|
589
|
+
es_PR: { h: 'es' },
|
590
|
+
es_PY: { p: '! #,##0.00;! -#,##0.00', g: '.', d: ',' },
|
591
|
+
es_SV: { h: 'es' },
|
592
|
+
es_US: { h: 'es' },
|
593
|
+
es_UY: { p: '! #,##0.00', g: '.', d: ',' },
|
594
|
+
es_VE: { p: '!#,##0.00;!-#,##0.00', g: '.', d: ',' },
|
595
|
+
et: { p: '#,##0.00 !', g: ' ', d: ',' },
|
596
|
+
et_EE: { h: 'et' },
|
597
|
+
eu: { p: '#,##0.00 !', g: '.', d: ',' },
|
598
|
+
eu_ES: { h: 'eu' },
|
599
|
+
ewo: { p: '#,##0.00 !', g: ' ', d: ',' },
|
600
|
+
ewo_CM: { h: 'ewo' },
|
601
|
+
fa: { p: '!#,##0.00', g: ',', d: '.' },
|
602
|
+
fa_AF: { h: 'fa' },
|
603
|
+
fa_IR: { h: 'fa' },
|
604
|
+
ff: { p: '#,##0.00 !', g: ' ', d: ',' },
|
605
|
+
ff_CM: { h: 'ff' },
|
606
|
+
ff_GN: { h: 'ff' },
|
607
|
+
ff_MR: { h: 'ff' },
|
608
|
+
ff_SN: { h: 'ff' },
|
609
|
+
fi: { p: '#,##0.00 !', g: ' ', d: ',' },
|
610
|
+
fi_FI: { h: 'fi' },
|
611
|
+
fil: { p: '!#,##0.00', g: ',', d: '.' },
|
612
|
+
fil_PH: { h: 'fil' },
|
613
|
+
fo: { p: '#,##0.00 !', g: '.', d: ',' },
|
614
|
+
fo_DK: { h: 'fo' },
|
615
|
+
fo_FO: { h: 'fo' },
|
616
|
+
fr: { p: '#,##0.00 !', g: ' ', d: ',' },
|
617
|
+
fr_BE: { p: '#,##0.00 !', g: '.', d: ',' },
|
618
|
+
fr_BF: { h: 'fr' },
|
619
|
+
fr_BI: { h: 'fr' },
|
620
|
+
fr_BJ: { h: 'fr' },
|
621
|
+
fr_BL: { h: 'fr' },
|
622
|
+
fr_CA: { h: 'fr' },
|
623
|
+
fr_CD: { h: 'fr' },
|
624
|
+
fr_CF: { h: 'fr' },
|
625
|
+
fr_CG: { h: 'fr' },
|
626
|
+
fr_CH: { p: '! #,##0.00;!-#,##0.00', g: ' ', d: '.' },
|
627
|
+
fr_CI: { h: 'fr' },
|
628
|
+
fr_CM: { h: 'fr' },
|
629
|
+
fr_DJ: { h: 'fr' },
|
630
|
+
fr_DZ: { h: 'fr' },
|
631
|
+
fr_FR: { h: 'fr' },
|
632
|
+
fr_GA: { h: 'fr' },
|
633
|
+
fr_GF: { h: 'fr' },
|
634
|
+
fr_GN: { h: 'fr' },
|
635
|
+
fr_GP: { h: 'fr' },
|
636
|
+
fr_GQ: { h: 'fr' },
|
637
|
+
fr_HT: { h: 'fr' },
|
638
|
+
fr_KM: { h: 'fr' },
|
639
|
+
fr_LU: { p: '#,##0.00 !', g: '.', d: ',' },
|
640
|
+
fr_MA: { p: '#,##0.00 !', g: '.', d: ',' },
|
641
|
+
fr_MC: { h: 'fr' },
|
642
|
+
fr_MF: { h: 'fr' },
|
643
|
+
fr_MG: { h: 'fr' },
|
644
|
+
fr_ML: { h: 'fr' },
|
645
|
+
fr_MQ: { h: 'fr' },
|
646
|
+
fr_MR: { h: 'fr' },
|
647
|
+
fr_MU: { h: 'fr' },
|
648
|
+
fr_NC: { h: 'fr' },
|
649
|
+
fr_NE: { h: 'fr' },
|
650
|
+
fr_PF: { h: 'fr' },
|
651
|
+
fr_PM: { h: 'fr' },
|
652
|
+
fr_RE: { h: 'fr' },
|
653
|
+
fr_RW: { h: 'fr' },
|
654
|
+
fr_SC: { h: 'fr' },
|
655
|
+
fr_SN: { h: 'fr' },
|
656
|
+
fr_SY: { h: 'fr' },
|
657
|
+
fr_TD: { h: 'fr' },
|
658
|
+
fr_TG: { h: 'fr' },
|
659
|
+
fr_TN: { h: 'fr' },
|
660
|
+
fr_VU: { h: 'fr' },
|
661
|
+
fr_WF: { h: 'fr' },
|
662
|
+
fr_YT: { h: 'fr' },
|
663
|
+
fur: { p: '! #,##0.00', g: '.', d: ',' },
|
664
|
+
fur_IT: { h: 'fur' },
|
665
|
+
fy: { p: '! #,##0.00;! #,##0.00-', g: '.', d: ',' },
|
666
|
+
fy_NL: { h: 'fy' },
|
667
|
+
ga: { p: '!#,##0.00', g: ',', d: '.' },
|
668
|
+
ga_IE: { h: 'ga' },
|
669
|
+
gd: { p: '!#,##0.00', g: ',', d: '.' },
|
670
|
+
gd_GB: { h: 'gd' },
|
671
|
+
gl: { p: '#,##0.00 !', g: '.', d: ',' },
|
672
|
+
gl_ES: { h: 'gl' },
|
673
|
+
gsw: { p: '#,##0.00 !', g: '’', d: '.' },
|
674
|
+
gsw_CH: { h: 'gsw' },
|
675
|
+
gsw_FR: { h: 'gsw' },
|
676
|
+
gsw_LI: { h: 'gsw' },
|
677
|
+
gu: { p: '!#,##,##0.00', g: ',', d: '.' },
|
678
|
+
gu_IN: { h: 'gu' },
|
679
|
+
guz: { p: '!#,##0.00', g: ',', d: '.' },
|
680
|
+
guz_KE: { h: 'guz' },
|
681
|
+
gv: { p: '!#,##0.00', g: ',', d: '.' },
|
682
|
+
gv_IM: { h: 'gv' },
|
683
|
+
ha: { p: '! #,##0.00', g: ',', d: '.' },
|
684
|
+
ha_GH: { h: 'ha' },
|
685
|
+
ha_NE: { h: 'ha' },
|
686
|
+
ha_NG: { h: 'ha' },
|
687
|
+
haw: { p: '!#,##0.00', g: ',', d: '.' },
|
688
|
+
haw_US: { h: 'haw' },
|
689
|
+
he: { p: '#,##0.00 !', g: ',', d: '.' },
|
690
|
+
he_IL: { h: 'he' },
|
691
|
+
hi: { p: '!#,##,##0.00', g: ',', d: '.' },
|
692
|
+
hi_IN: { h: 'hi' },
|
693
|
+
hr: { p: '#,##0.00 !', g: '.', d: ',' },
|
694
|
+
hr_BA: { h: 'hr' },
|
695
|
+
hr_HR: { h: 'hr' },
|
696
|
+
hsb: { p: '#,##0.00 !', g: '.', d: ',' },
|
697
|
+
hsb_DE: { h: 'hsb' },
|
698
|
+
hu: { p: '#,##0.00 !', g: ' ', d: ',' },
|
699
|
+
hu_HU: { h: 'hu' },
|
700
|
+
hy: { p: '! #,##0.00', g: '.', d: ',' },
|
701
|
+
hy_AM: { h: 'hy' },
|
702
|
+
id: { p: '!#,##0.00', g: '.', d: ',' },
|
703
|
+
id_ID: { h: 'id' },
|
704
|
+
ig: { p: '!#,##0.00', g: ',', d: '.' },
|
705
|
+
ig_NG: { h: 'ig' },
|
706
|
+
ii: { p: '!#,##0.00', g: ',', d: '.' },
|
707
|
+
ii_CN: { h: 'ii' },
|
708
|
+
is: { p: '#,##0.00 !', g: '.', d: ',' },
|
709
|
+
is_IS: { h: 'is' },
|
710
|
+
it: { p: '#,##0.00 !', g: '.', d: ',' },
|
711
|
+
it_CH: { p: '! #,##0.00;!-#,##0.00', g: '\'', d: '.' },
|
712
|
+
it_IT: { h: 'it' },
|
713
|
+
it_SM: { h: 'it' },
|
714
|
+
ja: { p: '!#,##0.00', g: ',', d: '.' },
|
715
|
+
ja_JP: { h: 'ja' },
|
716
|
+
jgo: { p: '! #,##0.00', g: '.', d: ',' },
|
717
|
+
jgo_CM: { h: 'jgo' },
|
718
|
+
jmc: { p: '!#,##0.00', g: ',', d: '.' },
|
719
|
+
jmc_TZ: { h: 'jmc' },
|
720
|
+
ka: { p: '#,##0.00 !', g: ' ', d: ',' },
|
721
|
+
ka_GE: { h: 'ka' },
|
722
|
+
kab: { p: '#,##0.00!', g: ' ', d: ',' },
|
723
|
+
kab_DZ: { h: 'kab' },
|
724
|
+
kam: { p: '!#,##0.00', g: ',', d: '.' },
|
725
|
+
kam_KE: { h: 'kam' },
|
726
|
+
kde: { p: '!#,##0.00', g: ',', d: '.' },
|
727
|
+
kde_TZ: { h: 'kde' },
|
728
|
+
kea: { p: '#,##0.00 !', g: ' ', d: ',' },
|
729
|
+
kea_CV: { h: 'kea' },
|
730
|
+
khq: { p: '#,##0.00!', g: ' ', d: '.' },
|
731
|
+
khq_ML: { h: 'khq' },
|
732
|
+
ki: { p: '!#,##0.00', g: ',', d: '.' },
|
733
|
+
ki_KE: { h: 'ki' },
|
734
|
+
kk: { p: '#,##0.00 !', g: ' ', d: ',' },
|
735
|
+
kk_KZ: { h: 'kk' },
|
736
|
+
kkj: { p: '!#,##0.00', g: '.', d: ',' },
|
737
|
+
kkj_CM: { h: 'kkj' },
|
738
|
+
kl: { p: '!#,##0.00;!-#,##0.00', g: '.', d: ',' },
|
739
|
+
kl_GL: { h: 'kl' },
|
740
|
+
kln: { p: '!#,##0.00', g: ',', d: '.' },
|
741
|
+
kln_KE: { h: 'kln' },
|
742
|
+
km: { p: '!#,##0.00', g: '.', d: ',' },
|
743
|
+
km_KH: { h: 'km' },
|
744
|
+
kn: { p: '!#,##0.00', g: ',', d: '.' },
|
745
|
+
kn_IN: { h: 'kn' },
|
746
|
+
ko: { p: '!#,##0.00', g: ',', d: '.' },
|
747
|
+
ko_KP: { h: 'ko' },
|
748
|
+
ko_KR: { h: 'ko' },
|
749
|
+
kok: { p: '! #,##,##0.00', g: ',', d: '.' },
|
750
|
+
kok_IN: { h: 'kok' },
|
751
|
+
ks: { p: '! #,##,##0.00', g: ',', d: '.' },
|
752
|
+
ks_IN: { h: 'ks' },
|
753
|
+
ksb: { p: '#,##0.00!', g: ',', d: '.' },
|
754
|
+
ksb_TZ: { h: 'ksb' },
|
755
|
+
ksf: { p: '#,##0.00 !', g: ' ', d: ',' },
|
756
|
+
ksf_CM: { h: 'ksf' },
|
757
|
+
ksh: { p: '#,##0.00 !', g: ' ', d: ',' },
|
758
|
+
ksh_DE: { h: 'ksh' },
|
759
|
+
kw: { p: '!#,##0.00', g: ',', d: '.' },
|
760
|
+
kw_GB: { h: 'kw' },
|
761
|
+
ky: { p: '#,##0.00 !', g: ' ', d: ',' },
|
762
|
+
ky_KG: { h: 'ky' },
|
763
|
+
lag: { p: '!#,##0.00', g: ',', d: '.' },
|
764
|
+
lag_TZ: { h: 'lag' },
|
765
|
+
lb: { p: '#,##0.00 !', g: '.', d: ',' },
|
766
|
+
lb_LU: { h: 'lb' },
|
767
|
+
lg: { p: '#,##0.00!', g: ',', d: '.' },
|
768
|
+
lg_UG: { h: 'lg' },
|
769
|
+
lkt: { p: '!#,##0.00', g: ',', d: '.' },
|
770
|
+
lkt_US: { h: 'lkt' },
|
771
|
+
ln: { p: '#,##0.00 !', g: '.', d: ',' },
|
772
|
+
ln_AO: { h: 'ln' },
|
773
|
+
ln_CD: { h: 'ln' },
|
774
|
+
ln_CF: { h: 'ln' },
|
775
|
+
ln_CG: { h: 'ln' },
|
776
|
+
lo: { p: '!#,##0.00;!-#,##0.00', g: '.', d: ',' },
|
777
|
+
lo_LA: { h: 'lo' },
|
778
|
+
lrc: { p: '! #,##0.00', g: ',', d: '.' },
|
779
|
+
lrc_IQ: { h: 'lrc' },
|
780
|
+
lrc_IR: { h: 'lrc' },
|
781
|
+
lt: { p: '#,##0.00 !', g: ' ', d: ',' },
|
782
|
+
lt_LT: { h: 'lt' },
|
783
|
+
lu: { p: '#,##0.00!', g: '.', d: ',' },
|
784
|
+
lu_CD: { h: 'lu' },
|
785
|
+
luo: { p: '#,##0.00!', g: ',', d: '.' },
|
786
|
+
luo_KE: { h: 'luo' },
|
787
|
+
luy: { p: '!#,##0.00;!- #,##0.00', g: ',', d: '.' },
|
788
|
+
luy_KE: { h: 'luy' },
|
789
|
+
lv: { p: '#0.00 !', g: ' ', d: ',' },
|
790
|
+
lv_LV: { h: 'lv' },
|
791
|
+
mas: { p: '!#,##0.00', g: ',', d: '.' },
|
792
|
+
mas_KE: { h: 'mas' },
|
793
|
+
mas_TZ: { h: 'mas' },
|
794
|
+
mer: { p: '!#,##0.00', g: ',', d: '.' },
|
795
|
+
mer_KE: { h: 'mer' },
|
796
|
+
mfe: { p: '!#,##0.00', g: ' ', d: '.' },
|
797
|
+
mfe_MU: { h: 'mfe' },
|
798
|
+
mg: { p: '!#,##0.00', g: ',', d: '.' },
|
799
|
+
mg_MG: { h: 'mg' },
|
800
|
+
mgh: { p: '!#,##0.00', g: '.', d: ',' },
|
801
|
+
mgh_MZ: { h: 'mgh' },
|
802
|
+
mgo: { p: '! #,##0.00', g: ',', d: '.' },
|
803
|
+
mgo_CM: { h: 'mgo' },
|
804
|
+
mk: { p: '! #,##0.00', g: '.', d: ',' },
|
805
|
+
mk_MK: { h: 'mk' },
|
806
|
+
ml: { p: '!#,##0.00', g: ',', d: '.' },
|
807
|
+
ml_IN: { h: 'ml' },
|
808
|
+
mn: { p: '! #,##0.00', g: ',', d: '.' },
|
809
|
+
mn_MN: { h: 'mn' },
|
810
|
+
mr: { p: '!#,##0.00', g: ',', d: '.' },
|
811
|
+
mr_IN: { h: 'mr' },
|
812
|
+
ms: { p: '!#,##0.00', g: ',', d: '.' },
|
813
|
+
ms_BN: { p: '! #,##0.00', g: '.', d: ',' },
|
814
|
+
ms_MY: { h: 'ms' },
|
815
|
+
ms_SG: { h: 'ms' },
|
816
|
+
mt: { p: '!#,##0.00', g: ',', d: '.' },
|
817
|
+
mt_MT: { h: 'mt' },
|
818
|
+
mua: { p: '!#,##0.00', g: '.', d: ',' },
|
819
|
+
mua_CM: { h: 'mua' },
|
820
|
+
my: { p: '! #,##0.00', g: ',', d: '.' },
|
821
|
+
my_MM: { h: 'my' },
|
822
|
+
mzn: { p: '!#,##0.00', g: ',', d: '.' },
|
823
|
+
mzn_IR: { h: 'mzn' },
|
824
|
+
naq: { p: '!#,##0.00', g: ',', d: '.' },
|
825
|
+
naq_NA: { h: 'naq' },
|
826
|
+
nb: { p: '! #,##0.00', g: ' ', d: ',' },
|
827
|
+
nb_NO: { h: 'nb' },
|
828
|
+
nb_SJ: { h: 'nb' },
|
829
|
+
nd: { p: '!#,##0.00', g: ',', d: '.' },
|
830
|
+
nd_ZW: { h: 'nd' },
|
831
|
+
ne: { p: '! #,##0.00', g: ',', d: '.' },
|
832
|
+
ne_IN: { h: 'ne' },
|
833
|
+
ne_NP: { h: 'ne' },
|
834
|
+
nl: { p: '! #,##0.00;! -#,##0.00', g: '.', d: ',' },
|
835
|
+
nl_AW: { h: 'nl' },
|
836
|
+
nl_BE: { p: '#,##0.00 !', g: '.', d: ',' },
|
837
|
+
nl_BQ: { h: 'nl' },
|
838
|
+
nl_CW: { h: 'nl' },
|
839
|
+
nl_NL: { h: 'nl' },
|
840
|
+
nl_SR: { h: 'nl' },
|
841
|
+
nl_SX: { h: 'nl' },
|
842
|
+
nmg: { p: '#,##0.00 !', g: ' ', d: ',' },
|
843
|
+
nmg_CM: { h: 'nmg' },
|
844
|
+
nn: { p: '#,##0.00 !', g: ' ', d: ',' },
|
845
|
+
nn_NO: { h: 'nn' },
|
846
|
+
nnh: { p: '! #,##0.00', g: '.', d: ',' },
|
847
|
+
nnh_CM: { h: 'nnh' },
|
848
|
+
nus: { p: '!#,##0.00', g: ',', d: '.' },
|
849
|
+
nus_SS: { h: 'nus' },
|
850
|
+
nyn: { p: '!#,##0.00', g: ',', d: '.' },
|
851
|
+
nyn_UG: { h: 'nyn' },
|
852
|
+
om: { p: '!#,##0.00', g: ',', d: '.' },
|
853
|
+
om_ET: { h: 'om' },
|
854
|
+
om_KE: { h: 'om' },
|
855
|
+
or: { p: '! #,##,##0.00', g: ',', d: '.' },
|
856
|
+
or_IN: { h: 'or' },
|
857
|
+
os: { p: '! #,##0.00', g: ' ', d: ',' },
|
858
|
+
os_GE: { h: 'os' },
|
859
|
+
os_RU: { h: 'os' },
|
860
|
+
pa: { p: '! #,##,##0.00', g: ',', d: '.' },
|
861
|
+
pa_Arab: { h: 'pa' },
|
862
|
+
pa_Arab_PK: { h: 'pa' },
|
863
|
+
pa_Guru: { h: 'pa' },
|
864
|
+
pa_Guru_IN: { h: 'pa' },
|
865
|
+
pl: { p: '#,##0.00 !', g: ' ', d: ',' },
|
866
|
+
pl_PL: { h: 'pl' },
|
867
|
+
prg: { p: '#,##0.00 !', g: ' ', d: ',' },
|
868
|
+
prg_001: { h: 'prg' },
|
869
|
+
ps: { p: '#,##0.00 !', g: '.', d: ',' },
|
870
|
+
ps_AF: { h: 'ps' },
|
871
|
+
pt: { p: '!#,##0.00', g: '.', d: ',' },
|
872
|
+
pt_AO: { h: 'pt' },
|
873
|
+
pt_BR: { h: 'pt' },
|
874
|
+
pt_CH: { h: 'pt' },
|
875
|
+
pt_CV: { h: 'pt' },
|
876
|
+
pt_GQ: { h: 'pt' },
|
877
|
+
pt_GW: { h: 'pt' },
|
878
|
+
pt_LU: { h: 'pt' },
|
879
|
+
pt_MO: { h: 'pt' },
|
880
|
+
pt_MZ: { h: 'pt' },
|
881
|
+
pt_PT: { p: '#,##0.00 !', g: ' ', d: ',' },
|
882
|
+
pt_ST: { h: 'pt' },
|
883
|
+
pt_TL: { h: 'pt' },
|
884
|
+
qu: { p: '! #,##0.00', g: ',', d: '.' },
|
885
|
+
qu_BO: { p: '! #,##0.00', g: '.', d: ',' },
|
886
|
+
qu_EC: { h: 'qu' },
|
887
|
+
qu_PE: { h: 'qu' },
|
888
|
+
rm: { p: '#,##0.00 !', g: '’', d: '.' },
|
889
|
+
rm_CH: { h: 'rm' },
|
890
|
+
rn: { p: '#,##0.00!', g: '.', d: ',' },
|
891
|
+
rn_BI: { h: 'rn' },
|
892
|
+
ro: { p: '#,##0.00 !', g: '.', d: ',' },
|
893
|
+
ro_MD: { h: 'ro' },
|
894
|
+
ro_RO: { h: 'ro' },
|
895
|
+
rof: { p: '!#,##0.00', g: ',', d: '.' },
|
896
|
+
rof_TZ: { h: 'rof' },
|
897
|
+
root: { p: '! #,##0.00', g: ',', d: '.' },
|
898
|
+
ru: { p: '#,##0.00 !', g: ' ', d: ',' },
|
899
|
+
ru_BY: { h: 'ru' },
|
900
|
+
ru_KG: { h: 'ru' },
|
901
|
+
ru_KZ: { h: 'ru' },
|
902
|
+
ru_MD: { h: 'ru' },
|
903
|
+
ru_RU: { h: 'ru' },
|
904
|
+
ru_UA: { h: 'ru' },
|
905
|
+
rw: { p: '!#,##0.00', g: '.', d: ',' },
|
906
|
+
rw_RW: { h: 'rw' },
|
907
|
+
rwk: { p: '#,##0.00!', g: ',', d: '.' },
|
908
|
+
rwk_TZ: { h: 'rwk' },
|
909
|
+
sah: { p: '!#,##0.00', g: ',', d: '.' },
|
910
|
+
sah_RU: { h: 'sah' },
|
911
|
+
saq: { p: '!#,##0.00', g: ',', d: '.' },
|
912
|
+
saq_KE: { h: 'saq' },
|
913
|
+
sbp: { p: '#,##0.00!', g: ',', d: '.' },
|
914
|
+
sbp_TZ: { h: 'sbp' },
|
915
|
+
se: { p: '#,##0.00 !', g: ' ', d: ',' },
|
916
|
+
se_FI: { h: 'se' },
|
917
|
+
se_NO: { h: 'se' },
|
918
|
+
se_SE: { h: 'se' },
|
919
|
+
seh: { p: '#,##0.00!', g: '.', d: ',' },
|
920
|
+
seh_MZ: { h: 'seh' },
|
921
|
+
ses: { p: '#,##0.00!', g: ' ', d: '.' },
|
922
|
+
ses_ML: { h: 'ses' },
|
923
|
+
sg: { p: '!#,##0.00;!-#,##0.00', g: '.', d: ',' },
|
924
|
+
sg_CF: { h: 'sg' },
|
925
|
+
shi: { p: '#,##0.00!', g: ' ', d: ',' },
|
926
|
+
shi_Latn: { h: 'shi' },
|
927
|
+
shi_Latn_MA: { h: 'shi' },
|
928
|
+
shi_Tfng: { h: 'shi' },
|
929
|
+
shi_Tfng_MA: { h: 'shi' },
|
930
|
+
si: { p: '!#,##0.00', g: ',', d: '.' },
|
931
|
+
si_LK: { h: 'si' },
|
932
|
+
sk: { p: '#,##0.00 !', g: ' ', d: ',' },
|
933
|
+
sk_SK: { h: 'sk' },
|
934
|
+
sl: { p: '#,##0.00 !', g: '.', d: ',' },
|
935
|
+
sl_SI: { h: 'sl' },
|
936
|
+
smn: { p: '!#,##0.00', g: ',', d: '.' },
|
937
|
+
smn_FI: { h: 'smn' },
|
938
|
+
sn: { p: '!#,##0.00', g: ',', d: '.' },
|
939
|
+
sn_ZW: { h: 'sn' },
|
940
|
+
so: { p: '!#,##0.00', g: ',', d: '.' },
|
941
|
+
so_DJ: { h: 'so' },
|
942
|
+
so_ET: { h: 'so' },
|
943
|
+
so_KE: { h: 'so' },
|
944
|
+
so_SO: { h: 'so' },
|
945
|
+
sq: { p: '#,##0.00 !', g: ' ', d: ',' },
|
946
|
+
sq_AL: { h: 'sq' },
|
947
|
+
sq_MK: { h: 'sq' },
|
948
|
+
sq_XK: { h: 'sq' },
|
949
|
+
sr: { p: '#,##0.00 !', g: '.', d: ',' },
|
950
|
+
sr_Cyrl: { h: 'sr' },
|
951
|
+
sr_Cyrl_BA: { h: 'sr' },
|
952
|
+
sr_Cyrl_ME: { h: 'sr' },
|
953
|
+
sr_Cyrl_RS: { h: 'sr' },
|
954
|
+
sr_Cyrl_XK: { h: 'sr' },
|
955
|
+
sr_Latn: { h: 'sr' },
|
956
|
+
sr_Latn_BA: { h: 'sr' },
|
957
|
+
sr_Latn_ME: { h: 'sr' },
|
958
|
+
sr_Latn_RS: { h: 'sr' },
|
959
|
+
sr_Latn_XK: { h: 'sr' },
|
960
|
+
sv: { p: '#,##0.00 !', g: ' ', d: ',' },
|
961
|
+
sv_AX: { h: 'sv' },
|
962
|
+
sv_FI: { h: 'sv' },
|
963
|
+
sv_SE: { h: 'sv' },
|
964
|
+
sw: { p: '!#,##0.00', g: ',', d: '.' },
|
965
|
+
sw_CD: { p: '!#,##0.00', g: '.', d: ',' },
|
966
|
+
sw_KE: { h: 'sw' },
|
967
|
+
sw_TZ: { h: 'sw' },
|
968
|
+
sw_UG: { h: 'sw' },
|
969
|
+
ta: { p: '! #,##,##0.00', g: ',', d: '.' },
|
970
|
+
ta_IN: { h: 'ta' },
|
971
|
+
ta_LK: { h: 'ta' },
|
972
|
+
ta_MY: { p: '! #,##0.00', g: ',', d: '.' },
|
973
|
+
ta_SG: { p: '! #,##0.00', g: ',', d: '.' },
|
974
|
+
te: { p: '!#,##,##0.00', g: ',', d: '.' },
|
975
|
+
te_IN: { h: 'te' },
|
976
|
+
teo: { p: '!#,##0.00', g: ',', d: '.' },
|
977
|
+
teo_KE: { h: 'teo' },
|
978
|
+
teo_UG: { h: 'teo' },
|
979
|
+
th: { p: '!#,##0.00', g: ',', d: '.' },
|
980
|
+
th_TH: { h: 'th' },
|
981
|
+
ti: { p: '!#,##0.00', g: ',', d: '.' },
|
982
|
+
ti_ER: { h: 'ti' },
|
983
|
+
ti_ET: { h: 'ti' },
|
984
|
+
tk: { p: '#,##0.00 !', g: ' ', d: ',' },
|
985
|
+
tk_TM: { h: 'tk' },
|
986
|
+
to: { p: '! #,##0.00', g: ',', d: '.' },
|
987
|
+
to_TO: { h: 'to' },
|
988
|
+
tr: { p: '#,##0.00 !', g: '.', d: ',' },
|
989
|
+
tr_CY: { h: 'tr' },
|
990
|
+
tr_TR: { h: 'tr' },
|
991
|
+
twq: { p: '#,##0.00!', g: ' ', d: '.' },
|
992
|
+
twq_NE: { h: 'twq' },
|
993
|
+
tzm: { p: '#,##0.00 !', g: ' ', d: ',' },
|
994
|
+
tzm_MA: { h: 'tzm' },
|
995
|
+
ug: { p: '!#,##0.00', g: ',', d: '.' },
|
996
|
+
ug_CN: { h: 'ug' },
|
997
|
+
uk: { p: '#,##0.00 !', g: ' ', d: ',' },
|
998
|
+
uk_UA: { h: 'uk' },
|
999
|
+
ur: { p: '! #,##,##0.00', g: ',', d: '.' },
|
1000
|
+
ur_IN: { h: 'ur' },
|
1001
|
+
ur_PK: { h: 'ur' },
|
1002
|
+
uz: { p: '#,##0.00 !', g: ' ', d: ',' },
|
1003
|
+
uz_Arab: { p: '#,##0.00 !', g: '.', d: ',' },
|
1004
|
+
uz_Arab_AF: { h: 'uz' },
|
1005
|
+
uz_Cyrl: { p: '! #,##0.00', g: ' ', d: ',' },
|
1006
|
+
uz_Cyrl_UZ: { h: 'uz' },
|
1007
|
+
uz_Latn: { h: 'uz' },
|
1008
|
+
uz_Latn_UZ: { h: 'uz' },
|
1009
|
+
vai: { p: '!#,##0.00', g: ',', d: '.' },
|
1010
|
+
vai_Latn: { h: 'vai' },
|
1011
|
+
vai_Latn_LR: { h: 'vai' },
|
1012
|
+
vai_Vaii: { h: 'vai' },
|
1013
|
+
vai_Vaii_LR: { h: 'vai' },
|
1014
|
+
vi: { p: '! #,##0.00', g: '.', d: ',' },
|
1015
|
+
vi_VN: { h: 'vi' },
|
1016
|
+
vo: { p: '!#,##0.00', g: ',', d: '.' },
|
1017
|
+
vo_001: { h: 'vo' },
|
1018
|
+
vun: { p: '!#,##0.00', g: ',', d: '.' },
|
1019
|
+
vun_TZ: { h: 'vun' },
|
1020
|
+
wae: { p: '!#,##0.00', g: '’', d: ',' },
|
1021
|
+
wae_CH: { h: 'wae' },
|
1022
|
+
xog: { p: '#,##0.00 !', g: ',', d: '.' },
|
1023
|
+
xog_UG: { h: 'xog' },
|
1024
|
+
yav: { p: '#,##0.00 !', g: ' ', d: ',' },
|
1025
|
+
yav_CM: { h: 'yav' },
|
1026
|
+
yi: { p: '!#,##0.00', g: ',', d: '.' },
|
1027
|
+
yi_001: { h: 'yi' },
|
1028
|
+
yo: { p: '!#,##0.00', g: ',', d: '.' },
|
1029
|
+
yo_BJ: { h: 'yo' },
|
1030
|
+
yo_NG: { h: 'yo' },
|
1031
|
+
yue: { p: '!#,##0.00', g: ',', d: '.' },
|
1032
|
+
yue_HK: { h: 'yue' },
|
1033
|
+
zgh: { p: '#,##0.00!', g: ' ', d: ',' },
|
1034
|
+
zgh_MA: { h: 'zgh' },
|
1035
|
+
zh: { p: '!#,##0.00', g: ',', d: '.' },
|
1036
|
+
zh_Hans: { h: 'zh' },
|
1037
|
+
zh_Hans_CN: { h: 'zh' },
|
1038
|
+
zh_Hans_HK: { h: 'zh' },
|
1039
|
+
zh_Hans_MO: { h: 'zh' },
|
1040
|
+
zh_Hans_SG: { h: 'zh' },
|
1041
|
+
zh_Hant: { h: 'zh' },
|
1042
|
+
zh_Hant_HK: { h: 'zh' },
|
1043
|
+
zh_Hant_MO: { h: 'zh' },
|
1044
|
+
zh_Hant_TW: { h: 'zh' },
|
1045
|
+
zu: { p: '!#,##0.00', g: ',', d: '.' },
|
1046
|
+
zu_ZA: { h: 'zu' },
|
1047
|
+
},
|
1048
|
+
|
1049
|
+
getFormatDetails: function(p)
|
1050
|
+
{
|
1051
|
+
var locales = OSREC.CurrencyFormatter.locales;
|
1052
|
+
var defaultLocales = OSREC.CurrencyFormatter.defaultLocales;
|
1053
|
+
var symbols = OSREC.CurrencyFormatter.symbols;
|
1054
|
+
|
1055
|
+
var locale, currency, symbol, pattern, decimal, group;
|
1056
|
+
|
1057
|
+
// Perform checks on inputs and set up defaults as needed (defaults to en, USD)
|
1058
|
+
|
1059
|
+
p = p || {};
|
1060
|
+
|
1061
|
+
currency = (p.currency || 'USD').toUpperCase();
|
1062
|
+
locale = locales[p.locale || defaultLocales[currency]];
|
1063
|
+
|
1064
|
+
if(typeof locale.h !== 'undefined') { locale = locales[locale.h]; } // Locale inheritance
|
1065
|
+
|
1066
|
+
symbol = (p.symbol || symbols[currency]) || currency;
|
1067
|
+
pattern = p.pattern || locale.p;
|
1068
|
+
decimal = p.decimal || locale.d;
|
1069
|
+
group = p.group || locale.g;
|
1070
|
+
|
1071
|
+
return { pattern: pattern, decimal: decimal, group: group, symbol: symbol };
|
1072
|
+
|
1073
|
+
},
|
1074
|
+
|
1075
|
+
toFixed: function( n, precision )
|
1076
|
+
{
|
1077
|
+
return ( Math.round( Number(n) * Math.pow(10, precision) )/ Math.pow(10, precision) ).toFixed(precision);
|
1078
|
+
},
|
1079
|
+
|
1080
|
+
getFormatter: function(p)
|
1081
|
+
{
|
1082
|
+
var formatDetails = OSREC.CurrencyFormatter.getFormatDetails(p);
|
1083
|
+
|
1084
|
+
var pattern = formatDetails.pattern;
|
1085
|
+
var decimal = formatDetails.decimal;
|
1086
|
+
var group = formatDetails.group;
|
1087
|
+
var symbol = formatDetails.symbol;
|
1088
|
+
|
1089
|
+
// encodePattern Function - returns a few simple characteristics of the pattern provided
|
1090
|
+
|
1091
|
+
var encodePattern = function(pattern)
|
1092
|
+
{
|
1093
|
+
var numberFormatPattern = pattern.trim().match(/[#0,\.]+/)[0];
|
1094
|
+
|
1095
|
+
var split = numberFormatPattern.split('.');
|
1096
|
+
var c = split[0]; // Decimal chars
|
1097
|
+
var m = split[1]; // Decimal mantissa
|
1098
|
+
|
1099
|
+
var groups = c.split(',');
|
1100
|
+
var groupLengths = groups.map(function(g) { return g.length; });
|
1101
|
+
var zeroLength = (groups[groups.length - 1].match(/0/g) || []).length;
|
1102
|
+
var decimalPlaces = typeof m === 'undefined' ? 0 : m.length;
|
1103
|
+
var paddingSplit = pattern.split(numberFormatPattern);
|
1104
|
+
|
1105
|
+
var encodedPattern =
|
1106
|
+
{
|
1107
|
+
pattern: pattern,
|
1108
|
+
decimalPlaces: decimalPlaces,
|
1109
|
+
frontPadding: paddingSplit[0],
|
1110
|
+
backPadding: paddingSplit[1],
|
1111
|
+
groupLengths: groupLengths,
|
1112
|
+
zeroLength: zeroLength
|
1113
|
+
};
|
1114
|
+
|
1115
|
+
return encodedPattern;
|
1116
|
+
}
|
1117
|
+
|
1118
|
+
// Zero Padding helper function
|
1119
|
+
|
1120
|
+
var pad = function(n, width)
|
1121
|
+
{
|
1122
|
+
n = n + '';
|
1123
|
+
return n.length >= width ? n : new Array(width - n.length + 1).join('0') + n;
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
// Format function
|
1127
|
+
|
1128
|
+
var format = function(n, f)
|
1129
|
+
{
|
1130
|
+
var formattedNumber = OSREC.CurrencyFormatter.toFixed(Math.abs(n), f.decimalPlaces);
|
1131
|
+
|
1132
|
+
var splitNumber = formattedNumber.split(".");
|
1133
|
+
|
1134
|
+
var segment = "";
|
1135
|
+
|
1136
|
+
var cursor = splitNumber[0].length;
|
1137
|
+
|
1138
|
+
var maxGroupIndex = f.groupLengths.length - 1;
|
1139
|
+
|
1140
|
+
var groupIndex = maxGroupIndex;
|
1141
|
+
|
1142
|
+
if(maxGroupIndex > 0)
|
1143
|
+
{
|
1144
|
+
while(cursor > 0)
|
1145
|
+
{
|
1146
|
+
if(groupIndex < 1) { groupIndex = 1; } // Always reset to the last group length (useful for big numbers)
|
1147
|
+
|
1148
|
+
var currentGroupLength = f.groupLengths[groupIndex];
|
1149
|
+
|
1150
|
+
var start = cursor-currentGroupLength;
|
1151
|
+
|
1152
|
+
segment = splitNumber[0].substring(start, cursor) + f.group + segment;
|
1153
|
+
|
1154
|
+
cursor -= currentGroupLength;
|
1155
|
+
|
1156
|
+
--groupIndex;
|
1157
|
+
}
|
1158
|
+
|
1159
|
+
segment = segment.substring(0, segment.length-1);
|
1160
|
+
}
|
1161
|
+
else
|
1162
|
+
{
|
1163
|
+
segment = splitNumber[0];
|
1164
|
+
}
|
1165
|
+
|
1166
|
+
if(segment.length < f.zeroLength) { segment = pad(segment, f.zeroLength); }
|
1167
|
+
|
1168
|
+
var formattedNumber = f.frontPadding + segment + ( typeof splitNumber[1] === 'undefined' ? '' : (f.decimal + splitNumber[1]) ) + f.backPadding;
|
1169
|
+
|
1170
|
+
return formattedNumber.replace(/\!/g, symbol);
|
1171
|
+
|
1172
|
+
};
|
1173
|
+
|
1174
|
+
// Use encode function to work out pattern
|
1175
|
+
|
1176
|
+
var patternArray = pattern.split(";");
|
1177
|
+
|
1178
|
+
var positiveFormat = encodePattern(patternArray[0]);
|
1179
|
+
|
1180
|
+
positiveFormat.symbol = symbol;
|
1181
|
+
positiveFormat.decimal = decimal;
|
1182
|
+
positiveFormat.group = group;
|
1183
|
+
|
1184
|
+
var negativeFormat = typeof patternArray[1] === 'undefined' ? encodePattern("-" + patternArray[0]) : encodePattern(patternArray[1]);
|
1185
|
+
|
1186
|
+
negativeFormat.symbol = symbol;
|
1187
|
+
negativeFormat.decimal = decimal;
|
1188
|
+
negativeFormat.group = group;
|
1189
|
+
|
1190
|
+
var zero = typeof patternArray[2] === 'undefined' ? format(0, positiveFormat) : patternArray[2];
|
1191
|
+
|
1192
|
+
return function(n)
|
1193
|
+
{
|
1194
|
+
var formattedNumber;
|
1195
|
+
n = Number(n);
|
1196
|
+
if(n > 0) { formattedNumber = format(n, positiveFormat); }
|
1197
|
+
else if(n == 0) { formattedNumber = zero.replace('!', symbol); }
|
1198
|
+
else { formattedNumber = format(n, negativeFormat); }
|
1199
|
+
return formattedNumber;
|
1200
|
+
};
|
1201
|
+
|
1202
|
+
},
|
1203
|
+
|
1204
|
+
formatAll: function(p)
|
1205
|
+
{
|
1206
|
+
var formatter = OSREC.CurrencyFormatter.getFormatter(p);
|
1207
|
+
|
1208
|
+
var matches = document.querySelectorAll(p.selector);
|
1209
|
+
|
1210
|
+
for (var i = 0; i < matches.length; ++i)
|
1211
|
+
{
|
1212
|
+
matches[i].innerHTML = formatter(matches[i].textContent);
|
1213
|
+
}
|
1214
|
+
},
|
1215
|
+
|
1216
|
+
formatEach: function(selector)
|
1217
|
+
{
|
1218
|
+
var formatters = {}
|
1219
|
+
|
1220
|
+
var matches = document.querySelectorAll(selector);
|
1221
|
+
|
1222
|
+
for (var i = 0; i < matches.length; ++i)
|
1223
|
+
{
|
1224
|
+
try
|
1225
|
+
{
|
1226
|
+
|
1227
|
+
var ccy = matches[i].getAttribute("data-ccy");
|
1228
|
+
|
1229
|
+
if (typeof formatters[ccy] === 'undefined')
|
1230
|
+
{
|
1231
|
+
formatters[ccy] = OSREC.CurrencyFormatter.getFormatter({currency: ccy});
|
1232
|
+
}
|
1233
|
+
|
1234
|
+
var formatter = formatters[ccy];
|
1235
|
+
|
1236
|
+
matches[i].innerHTML = formatter(matches[i].textContent);
|
1237
|
+
}
|
1238
|
+
catch (e)
|
1239
|
+
{
|
1240
|
+
console.log(e);
|
1241
|
+
}
|
1242
|
+
}
|
1243
|
+
},
|
1244
|
+
|
1245
|
+
format: function(n, p)
|
1246
|
+
{
|
1247
|
+
var formatterFunction = OSREC.CurrencyFormatter.getFormatter(p);
|
1248
|
+
|
1249
|
+
return formatterFunction(n);
|
1250
|
+
},
|
1251
|
+
|
1252
|
+
parse: function(str, p)
|
1253
|
+
{
|
1254
|
+
var decimal = OSREC.CurrencyFormatter.getFormatDetails(p).decimal;
|
1255
|
+
var mult = str.indexOf('-') >= 0 ? -1 : 1;
|
1256
|
+
return Math.abs(Number(str.replace(new RegExp(`[^0-9${decimal}]`, 'g'), '').replace(decimal, '.'))) * mult;
|
1257
|
+
}
|
1258
|
+
};
|
1259
|
+
|
1260
|
+
|
1261
|
+
var hasDefine = typeof define === 'function';
|
1262
|
+
var hasExports = typeof module !== 'undefined' && module.exports;
|
1263
|
+
var root = (typeof window === 'undefined') ? global : window;
|
1264
|
+
|
1265
|
+
if (hasDefine)
|
1266
|
+
{
|
1267
|
+
// AMD Module
|
1268
|
+
define([], function() { return OSREC.CurrencyFormatter; });
|
1269
|
+
}
|
1270
|
+
else if (hasExports)
|
1271
|
+
{
|
1272
|
+
// Node.js Module
|
1273
|
+
module.exports = OSREC.CurrencyFormatter;
|
1274
|
+
}
|
1275
|
+
else
|
1276
|
+
{
|
1277
|
+
// Assign to the global object
|
1278
|
+
// This makes sure that the object really is assigned to the global scope
|
1279
|
+
root.OSREC = OSREC;
|
1280
|
+
}
|