PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 2.13.1
GiveWP – Donation Plugin and Fundraising Platform v2.13.1
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / src / Onboarding / LocaleCollection.php
LocaleCollection.php
310 lines 7.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\Onboarding;
4
5 /**
6 * Fork of woocommerce/18n/locale-info
7 *
8 * @since 2.8.0
9 * @since 2.11.0 Added KR locale info (#5831)
10 */
11 class LocaleCollection {
12
13 protected $localeInfo = [
14 'AT' => [
15 'currency_code' => 'EUR',
16 'currency_pos' => 'left',
17 'thousand_sep' => '.',
18 'decimal_sep' => ',',
19 'num_decimals' => 2,
20 'weight_unit' => 'kg',
21 'dimension_unit' => 'cm',
22 ],
23 'AU' => [
24 'currency_code' => 'AUD',
25 'currency_pos' => 'left',
26 'thousand_sep' => ',',
27 'decimal_sep' => '.',
28 'num_decimals' => 2,
29 'weight_unit' => 'kg',
30 'dimension_unit' => 'cm',
31 ],
32 'BA' => [
33 'currency_code' => 'BAM',
34 'currency_pos' => 'right_space',
35 'thousand_sep' => '.',
36 'decimal_sep' => ',',
37 'num_decimals' => 2,
38 'weight_unit' => 'kg',
39 'dimension_unit' => 'cm',
40 ],
41 'BD' => [
42 'currency_code' => 'BDT',
43 'currency_pos' => 'left',
44 'thousand_sep' => ',',
45 'decimal_sep' => '.',
46 'num_decimals' => 2,
47 'weight_unit' => 'kg',
48 'dimension_unit' => 'in',
49 ],
50 'BE' => [
51 'currency_code' => 'EUR',
52 'currency_pos' => 'left',
53 'thousand_sep' => ' ',
54 'decimal_sep' => ',',
55 'num_decimals' => 2,
56 'weight_unit' => 'kg',
57 'dimension_unit' => 'cm',
58 ],
59 'BR' => [
60 'currency_code' => 'BRL',
61 'currency_pos' => 'left',
62 'thousand_sep' => '.',
63 'decimal_sep' => ',',
64 'num_decimals' => 2,
65 'weight_unit' => 'kg',
66 'dimension_unit' => 'cm',
67 ],
68 'CA' => [
69 'currency_code' => 'CAD',
70 'currency_pos' => 'left',
71 'thousand_sep' => ',',
72 'decimal_sep' => '.',
73 'num_decimals' => 2,
74 'weight_unit' => 'kg',
75 'dimension_unit' => 'cm',
76 ],
77 'CH' => [
78 'currency_code' => 'CHF',
79 'currency_pos' => 'left_space',
80 'thousand_sep' => "'",
81 'decimal_sep' => '.',
82 'num_decimals' => 2,
83 'weight_unit' => 'kg',
84 'dimension_unit' => 'cm',
85 ],
86 'DE' => [
87 'currency_code' => 'EUR',
88 'currency_pos' => 'left',
89 'thousand_sep' => '.',
90 'decimal_sep' => ',',
91 'num_decimals' => 2,
92 'weight_unit' => 'kg',
93 'dimension_unit' => 'cm',
94 ],
95 'DK' => [
96 'currency_code' => 'DKK',
97 'currency_pos' => 'left_space',
98 'thousand_sep' => '.',
99 'decimal_sep' => ',',
100 'num_decimals' => 2,
101 'weight_unit' => 'kg',
102 'dimension_unit' => 'cm',
103 ],
104 'ES' => [
105 'currency_code' => 'EUR',
106 'currency_pos' => 'right',
107 'thousand_sep' => '.',
108 'decimal_sep' => ',',
109 'num_decimals' => 2,
110 'weight_unit' => 'kg',
111 'dimension_unit' => 'cm',
112 ],
113 'FI' => [
114 'currency_code' => 'EUR',
115 'currency_pos' => 'right_space',
116 'thousand_sep' => ' ',
117 'decimal_sep' => ',',
118 'num_decimals' => 2,
119 'weight_unit' => 'kg',
120 'dimension_unit' => 'cm',
121 ],
122 'FR' => [
123 'currency_code' => 'EUR',
124 'currency_pos' => 'right',
125 'thousand_sep' => ' ',
126 'decimal_sep' => ',',
127 'num_decimals' => 2,
128 'weight_unit' => 'kg',
129 'dimension_unit' => 'cm',
130 ],
131 'GB' => [
132 'currency_code' => 'GBP',
133 'currency_pos' => 'left',
134 'thousand_sep' => ',',
135 'decimal_sep' => '.',
136 'num_decimals' => 2,
137 'weight_unit' => 'kg',
138 'dimension_unit' => 'cm',
139 ],
140 'HU' => [
141 'currency_code' => 'HUF',
142 'currency_pos' => 'right_space',
143 'thousand_sep' => ' ',
144 'decimal_sep' => ',',
145 'num_decimals' => 0,
146 'weight_unit' => 'kg',
147 'dimension_unit' => 'cm',
148 ],
149 'IT' => [
150 'currency_code' => 'EUR',
151 'currency_pos' => 'right',
152 'thousand_sep' => '.',
153 'decimal_sep' => ',',
154 'num_decimals' => 2,
155 'weight_unit' => 'kg',
156 'dimension_unit' => 'cm',
157 ],
158 'JM' => [
159 'currency_code' => 'JMD',
160 'currency_pos' => 'left',
161 'thousand_sep' => ',',
162 'decimal_sep' => '.',
163 'num_decimals' => 2,
164 'weight_unit' => 'lb',
165 'dimension_unit' => 'in',
166 ],
167 'JP' => [
168 'currency_code' => 'JPY',
169 'currency_pos' => 'left',
170 'thousand_sep' => ',',
171 'decimal_sep' => '.',
172 'num_decimals' => 0,
173 'weight_unit' => 'kg',
174 'dimension_unit' => 'cm',
175 ],
176 'KR' => [
177 'currency_code' => 'KRW',
178 'currency_pos' => 'right',
179 'thousand_sep' => ',',
180 'decimal_sep' => '.',
181 'num_decimals' => 0,
182 'weight_unit' => 'kg',
183 'dimension_unit' => 'cm',
184 ],
185 'LI' => [
186 'currency_code' => 'CHF',
187 'currency_pos' => 'left_space',
188 'thousand_sep' => "'",
189 'decimal_sep' => '.',
190 'num_decimals' => 2,
191 'weight_unit' => 'kg',
192 'dimension_unit' => 'cm',
193 ],
194 'MD' => [
195 'currency_code' => 'MDL',
196 'currency_pos' => 'right_space',
197 'thousand_sep' => '.',
198 'decimal_sep' => ',',
199 'num_decimals' => 2,
200 'weight_unit' => 'kg',
201 'dimension_unit' => 'cm',
202 ],
203 'NL' => [
204 'currency_code' => 'EUR',
205 'currency_pos' => 'left',
206 'thousand_sep' => ',',
207 'decimal_sep' => '.',
208 'num_decimals' => 2,
209 'weight_unit' => 'kg',
210 'dimension_unit' => 'cm',
211 ],
212 'NO' => [
213 'currency_code' => 'Kr',
214 'currency_pos' => 'left_space',
215 'thousand_sep' => '.',
216 'decimal_sep' => ',',
217 'num_decimals' => 2,
218 'weight_unit' => 'kg',
219 'dimension_unit' => 'cm',
220 ],
221 'NP' => [
222 'currency_code' => 'NPR',
223 'currency_pos' => 'left_space',
224 'thousand_sep' => ',',
225 'decimal_sep' => '.',
226 'num_decimals' => 2,
227 'weight_unit' => 'kg',
228 'dimension_unit' => 'cm',
229 ],
230 'PL' => [
231 'currency_code' => 'PLN',
232 'currency_pos' => 'right_space',
233 'thousand_sep' => ' ',
234 'decimal_sep' => ',',
235 'num_decimals' => 2,
236 'weight_unit' => 'kg',
237 'dimension_unit' => 'cm',
238 ],
239 'PY' => [
240 'currency_code' => 'PYG',
241 'currency_pos' => 'left',
242 'thousand_sep' => '.',
243 'decimal_sep' => ',',
244 'num_decimals' => 2,
245 'weight_unit' => 'kg',
246 'dimension_unit' => 'cm',
247 ],
248 'RO' => [
249 'currency_code' => 'RON',
250 'currency_pos' => 'right_space',
251 'thousand_sep' => '.',
252 'decimal_sep' => ',',
253 'num_decimals' => 2,
254 'weight_unit' => 'kg',
255 'dimension_unit' => 'cm',
256 ],
257 'RS' => [
258 'currency_code' => 'RSD',
259 'currency_pos' => 'right_space',
260 'thousand_sep' => '.',
261 'decimal_sep' => ',',
262 'num_decimals' => 2,
263 'weight_unit' => 'kg',
264 'dimension_unit' => 'cm',
265 'tax_rates' => [],
266 ],
267 'TH' => [
268 'currency_code' => 'THB',
269 'currency_pos' => 'left',
270 'thousand_sep' => ',',
271 'decimal_sep' => '.',
272 'num_decimals' => 2,
273 'weight_unit' => 'kg',
274 'dimension_unit' => 'cm',
275 ],
276 'TR' => [
277 'currency_code' => 'TRY',
278 'currency_pos' => 'left_space',
279 'thousand_sep' => '.',
280 'decimal_sep' => ',',
281 'num_decimals' => 2,
282 'weight_unit' => 'kg',
283 'dimension_unit' => 'cm',
284 ],
285 'US' => [
286 'currency_code' => 'USD',
287 'currency_pos' => 'left',
288 'thousand_sep' => ',',
289 'decimal_sep' => '.',
290 'num_decimals' => 2,
291 'weight_unit' => 'oz',
292 'dimension_unit' => 'in',
293 ],
294 'ZA' => [
295 'currency_code' => 'ZAR',
296 'currency_pos' => 'left',
297 'thousand_sep' => ',',
298 'decimal_sep' => '.',
299 'num_decimals' => 2,
300 'weight_unit' => 'kg',
301 'dimension_unit' => 'cm',
302 ],
303 ];
304
305 public function pluck( $key ) {
306 return wp_list_pluck( $this->localeInfo, $key );
307 }
308
309 }
310