Config
4 years ago
Helpers
4 years ago
Migrations
4 years ago
Routes
1 year ago
Setup
1 year ago
Wizard
1 year ago
BlockFactory.php
1 year ago
DefaultFormFactory.php
4 years ago
FormRepository.php
1 year ago
LocaleCollection.php
4 years ago
SettingsRepository.php
4 years ago
SettingsRepositoryFactory.php
4 years ago
LocaleCollection.php
312 lines
| 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 | |
| 14 | protected $localeInfo = [ |
| 15 | 'AT' => [ |
| 16 | 'currency_code' => 'EUR', |
| 17 | 'currency_pos' => 'left', |
| 18 | 'thousand_sep' => '.', |
| 19 | 'decimal_sep' => ',', |
| 20 | 'num_decimals' => 2, |
| 21 | 'weight_unit' => 'kg', |
| 22 | 'dimension_unit' => 'cm', |
| 23 | ], |
| 24 | 'AU' => [ |
| 25 | 'currency_code' => 'AUD', |
| 26 | 'currency_pos' => 'left', |
| 27 | 'thousand_sep' => ',', |
| 28 | 'decimal_sep' => '.', |
| 29 | 'num_decimals' => 2, |
| 30 | 'weight_unit' => 'kg', |
| 31 | 'dimension_unit' => 'cm', |
| 32 | ], |
| 33 | 'BA' => [ |
| 34 | 'currency_code' => 'BAM', |
| 35 | 'currency_pos' => 'right_space', |
| 36 | 'thousand_sep' => '.', |
| 37 | 'decimal_sep' => ',', |
| 38 | 'num_decimals' => 2, |
| 39 | 'weight_unit' => 'kg', |
| 40 | 'dimension_unit' => 'cm', |
| 41 | ], |
| 42 | 'BD' => [ |
| 43 | 'currency_code' => 'BDT', |
| 44 | 'currency_pos' => 'left', |
| 45 | 'thousand_sep' => ',', |
| 46 | 'decimal_sep' => '.', |
| 47 | 'num_decimals' => 2, |
| 48 | 'weight_unit' => 'kg', |
| 49 | 'dimension_unit' => 'in', |
| 50 | ], |
| 51 | 'BE' => [ |
| 52 | 'currency_code' => 'EUR', |
| 53 | 'currency_pos' => 'left', |
| 54 | 'thousand_sep' => ' ', |
| 55 | 'decimal_sep' => ',', |
| 56 | 'num_decimals' => 2, |
| 57 | 'weight_unit' => 'kg', |
| 58 | 'dimension_unit' => 'cm', |
| 59 | ], |
| 60 | 'BR' => [ |
| 61 | 'currency_code' => 'BRL', |
| 62 | 'currency_pos' => 'left', |
| 63 | 'thousand_sep' => '.', |
| 64 | 'decimal_sep' => ',', |
| 65 | 'num_decimals' => 2, |
| 66 | 'weight_unit' => 'kg', |
| 67 | 'dimension_unit' => 'cm', |
| 68 | ], |
| 69 | 'CA' => [ |
| 70 | 'currency_code' => 'CAD', |
| 71 | 'currency_pos' => 'left', |
| 72 | 'thousand_sep' => ',', |
| 73 | 'decimal_sep' => '.', |
| 74 | 'num_decimals' => 2, |
| 75 | 'weight_unit' => 'kg', |
| 76 | 'dimension_unit' => 'cm', |
| 77 | ], |
| 78 | 'CH' => [ |
| 79 | 'currency_code' => 'CHF', |
| 80 | 'currency_pos' => 'left_space', |
| 81 | 'thousand_sep' => "'", |
| 82 | 'decimal_sep' => '.', |
| 83 | 'num_decimals' => 2, |
| 84 | 'weight_unit' => 'kg', |
| 85 | 'dimension_unit' => 'cm', |
| 86 | ], |
| 87 | 'DE' => [ |
| 88 | 'currency_code' => 'EUR', |
| 89 | 'currency_pos' => 'left', |
| 90 | 'thousand_sep' => '.', |
| 91 | 'decimal_sep' => ',', |
| 92 | 'num_decimals' => 2, |
| 93 | 'weight_unit' => 'kg', |
| 94 | 'dimension_unit' => 'cm', |
| 95 | ], |
| 96 | 'DK' => [ |
| 97 | 'currency_code' => 'DKK', |
| 98 | 'currency_pos' => 'left_space', |
| 99 | 'thousand_sep' => '.', |
| 100 | 'decimal_sep' => ',', |
| 101 | 'num_decimals' => 2, |
| 102 | 'weight_unit' => 'kg', |
| 103 | 'dimension_unit' => 'cm', |
| 104 | ], |
| 105 | 'ES' => [ |
| 106 | 'currency_code' => 'EUR', |
| 107 | 'currency_pos' => 'right', |
| 108 | 'thousand_sep' => '.', |
| 109 | 'decimal_sep' => ',', |
| 110 | 'num_decimals' => 2, |
| 111 | 'weight_unit' => 'kg', |
| 112 | 'dimension_unit' => 'cm', |
| 113 | ], |
| 114 | 'FI' => [ |
| 115 | 'currency_code' => 'EUR', |
| 116 | 'currency_pos' => 'right_space', |
| 117 | 'thousand_sep' => ' ', |
| 118 | 'decimal_sep' => ',', |
| 119 | 'num_decimals' => 2, |
| 120 | 'weight_unit' => 'kg', |
| 121 | 'dimension_unit' => 'cm', |
| 122 | ], |
| 123 | 'FR' => [ |
| 124 | 'currency_code' => 'EUR', |
| 125 | 'currency_pos' => 'right', |
| 126 | 'thousand_sep' => ' ', |
| 127 | 'decimal_sep' => ',', |
| 128 | 'num_decimals' => 2, |
| 129 | 'weight_unit' => 'kg', |
| 130 | 'dimension_unit' => 'cm', |
| 131 | ], |
| 132 | 'GB' => [ |
| 133 | 'currency_code' => 'GBP', |
| 134 | 'currency_pos' => 'left', |
| 135 | 'thousand_sep' => ',', |
| 136 | 'decimal_sep' => '.', |
| 137 | 'num_decimals' => 2, |
| 138 | 'weight_unit' => 'kg', |
| 139 | 'dimension_unit' => 'cm', |
| 140 | ], |
| 141 | 'HU' => [ |
| 142 | 'currency_code' => 'HUF', |
| 143 | 'currency_pos' => 'right_space', |
| 144 | 'thousand_sep' => ' ', |
| 145 | 'decimal_sep' => ',', |
| 146 | 'num_decimals' => 0, |
| 147 | 'weight_unit' => 'kg', |
| 148 | 'dimension_unit' => 'cm', |
| 149 | ], |
| 150 | 'IT' => [ |
| 151 | 'currency_code' => 'EUR', |
| 152 | 'currency_pos' => 'right', |
| 153 | 'thousand_sep' => '.', |
| 154 | 'decimal_sep' => ',', |
| 155 | 'num_decimals' => 2, |
| 156 | 'weight_unit' => 'kg', |
| 157 | 'dimension_unit' => 'cm', |
| 158 | ], |
| 159 | 'JM' => [ |
| 160 | 'currency_code' => 'JMD', |
| 161 | 'currency_pos' => 'left', |
| 162 | 'thousand_sep' => ',', |
| 163 | 'decimal_sep' => '.', |
| 164 | 'num_decimals' => 2, |
| 165 | 'weight_unit' => 'lb', |
| 166 | 'dimension_unit' => 'in', |
| 167 | ], |
| 168 | 'JP' => [ |
| 169 | 'currency_code' => 'JPY', |
| 170 | 'currency_pos' => 'left', |
| 171 | 'thousand_sep' => ',', |
| 172 | 'decimal_sep' => '.', |
| 173 | 'num_decimals' => 0, |
| 174 | 'weight_unit' => 'kg', |
| 175 | 'dimension_unit' => 'cm', |
| 176 | ], |
| 177 | 'KR' => [ |
| 178 | 'currency_code' => 'KRW', |
| 179 | 'currency_pos' => 'right', |
| 180 | 'thousand_sep' => ',', |
| 181 | 'decimal_sep' => '.', |
| 182 | 'num_decimals' => 0, |
| 183 | 'weight_unit' => 'kg', |
| 184 | 'dimension_unit' => 'cm', |
| 185 | ], |
| 186 | 'LI' => [ |
| 187 | 'currency_code' => 'CHF', |
| 188 | 'currency_pos' => 'left_space', |
| 189 | 'thousand_sep' => "'", |
| 190 | 'decimal_sep' => '.', |
| 191 | 'num_decimals' => 2, |
| 192 | 'weight_unit' => 'kg', |
| 193 | 'dimension_unit' => 'cm', |
| 194 | ], |
| 195 | 'MD' => [ |
| 196 | 'currency_code' => 'MDL', |
| 197 | 'currency_pos' => 'right_space', |
| 198 | 'thousand_sep' => '.', |
| 199 | 'decimal_sep' => ',', |
| 200 | 'num_decimals' => 2, |
| 201 | 'weight_unit' => 'kg', |
| 202 | 'dimension_unit' => 'cm', |
| 203 | ], |
| 204 | 'NL' => [ |
| 205 | 'currency_code' => 'EUR', |
| 206 | 'currency_pos' => 'left', |
| 207 | 'thousand_sep' => ',', |
| 208 | 'decimal_sep' => '.', |
| 209 | 'num_decimals' => 2, |
| 210 | 'weight_unit' => 'kg', |
| 211 | 'dimension_unit' => 'cm', |
| 212 | ], |
| 213 | 'NO' => [ |
| 214 | 'currency_code' => 'Kr', |
| 215 | 'currency_pos' => 'left_space', |
| 216 | 'thousand_sep' => '.', |
| 217 | 'decimal_sep' => ',', |
| 218 | 'num_decimals' => 2, |
| 219 | 'weight_unit' => 'kg', |
| 220 | 'dimension_unit' => 'cm', |
| 221 | ], |
| 222 | 'NP' => [ |
| 223 | 'currency_code' => 'NPR', |
| 224 | 'currency_pos' => 'left_space', |
| 225 | 'thousand_sep' => ',', |
| 226 | 'decimal_sep' => '.', |
| 227 | 'num_decimals' => 2, |
| 228 | 'weight_unit' => 'kg', |
| 229 | 'dimension_unit' => 'cm', |
| 230 | ], |
| 231 | 'PL' => [ |
| 232 | 'currency_code' => 'PLN', |
| 233 | 'currency_pos' => 'right_space', |
| 234 | 'thousand_sep' => ' ', |
| 235 | 'decimal_sep' => ',', |
| 236 | 'num_decimals' => 2, |
| 237 | 'weight_unit' => 'kg', |
| 238 | 'dimension_unit' => 'cm', |
| 239 | ], |
| 240 | 'PY' => [ |
| 241 | 'currency_code' => 'PYG', |
| 242 | 'currency_pos' => 'left', |
| 243 | 'thousand_sep' => '.', |
| 244 | 'decimal_sep' => ',', |
| 245 | 'num_decimals' => 2, |
| 246 | 'weight_unit' => 'kg', |
| 247 | 'dimension_unit' => 'cm', |
| 248 | ], |
| 249 | 'RO' => [ |
| 250 | 'currency_code' => 'RON', |
| 251 | 'currency_pos' => 'right_space', |
| 252 | 'thousand_sep' => '.', |
| 253 | 'decimal_sep' => ',', |
| 254 | 'num_decimals' => 2, |
| 255 | 'weight_unit' => 'kg', |
| 256 | 'dimension_unit' => 'cm', |
| 257 | ], |
| 258 | 'RS' => [ |
| 259 | 'currency_code' => 'RSD', |
| 260 | 'currency_pos' => 'right_space', |
| 261 | 'thousand_sep' => '.', |
| 262 | 'decimal_sep' => ',', |
| 263 | 'num_decimals' => 2, |
| 264 | 'weight_unit' => 'kg', |
| 265 | 'dimension_unit' => 'cm', |
| 266 | 'tax_rates' => [], |
| 267 | ], |
| 268 | 'TH' => [ |
| 269 | 'currency_code' => 'THB', |
| 270 | 'currency_pos' => 'left', |
| 271 | 'thousand_sep' => ',', |
| 272 | 'decimal_sep' => '.', |
| 273 | 'num_decimals' => 2, |
| 274 | 'weight_unit' => 'kg', |
| 275 | 'dimension_unit' => 'cm', |
| 276 | ], |
| 277 | 'TR' => [ |
| 278 | 'currency_code' => 'TRY', |
| 279 | 'currency_pos' => 'left_space', |
| 280 | 'thousand_sep' => '.', |
| 281 | 'decimal_sep' => ',', |
| 282 | 'num_decimals' => 2, |
| 283 | 'weight_unit' => 'kg', |
| 284 | 'dimension_unit' => 'cm', |
| 285 | ], |
| 286 | 'US' => [ |
| 287 | 'currency_code' => 'USD', |
| 288 | 'currency_pos' => 'left', |
| 289 | 'thousand_sep' => ',', |
| 290 | 'decimal_sep' => '.', |
| 291 | 'num_decimals' => 2, |
| 292 | 'weight_unit' => 'oz', |
| 293 | 'dimension_unit' => 'in', |
| 294 | ], |
| 295 | 'ZA' => [ |
| 296 | 'currency_code' => 'ZAR', |
| 297 | 'currency_pos' => 'left', |
| 298 | 'thousand_sep' => ',', |
| 299 | 'decimal_sep' => '.', |
| 300 | 'num_decimals' => 2, |
| 301 | 'weight_unit' => 'kg', |
| 302 | 'dimension_unit' => 'cm', |
| 303 | ], |
| 304 | ]; |
| 305 | |
| 306 | public function pluck($key) |
| 307 | { |
| 308 | return wp_list_pluck($this->localeInfo, $key); |
| 309 | } |
| 310 | |
| 311 | } |
| 312 |