countries 5.0.2 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.markdown +13 -7
- data/Rakefile +15 -21
- data/UPGRADE.md +15 -2
- data/countries.gemspec +0 -1
- data/lib/countries/cache/locales/ab.json +1 -1
- data/lib/countries/cache/locales/af.json +1 -1
- data/lib/countries/cache/locales/ak.json +1 -1
- data/lib/countries/cache/locales/am.json +1 -1
- data/lib/countries/cache/locales/an.json +1 -1
- data/lib/countries/cache/locales/ar.json +1 -1
- data/lib/countries/cache/locales/as.json +1 -1
- data/lib/countries/cache/locales/ay.json +1 -1
- data/lib/countries/cache/locales/az.json +1 -1
- data/lib/countries/cache/locales/ba.json +1 -1
- data/lib/countries/cache/locales/be.json +1 -1
- data/lib/countries/cache/locales/bg.json +1 -1
- data/lib/countries/cache/locales/bi.json +1 -1
- data/lib/countries/cache/locales/bn-in.json +1 -1
- data/lib/countries/cache/locales/bn.json +1 -1
- data/lib/countries/cache/locales/br.json +1 -1
- data/lib/countries/cache/locales/bs.json +1 -1
- data/lib/countries/cache/locales/ca.json +1 -1
- data/lib/countries/cache/locales/ce.json +1 -1
- data/lib/countries/cache/locales/ch.json +1 -1
- data/lib/countries/cache/locales/cs.json +1 -1
- data/lib/countries/cache/locales/cv.json +1 -1
- data/lib/countries/cache/locales/cy.json +1 -1
- data/lib/countries/cache/locales/da.json +1 -1
- data/lib/countries/cache/locales/de.json +1 -1
- data/lib/countries/cache/locales/dv.json +1 -1
- data/lib/countries/cache/locales/dz.json +1 -1
- data/lib/countries/cache/locales/ee.json +1 -1
- data/lib/countries/cache/locales/el.json +1 -1
- data/lib/countries/cache/locales/en.json +1 -1
- data/lib/countries/cache/locales/eo.json +1 -1
- data/lib/countries/cache/locales/es.json +1 -1
- data/lib/countries/cache/locales/et.json +1 -1
- data/lib/countries/cache/locales/eu.json +1 -1
- data/lib/countries/cache/locales/fa.json +1 -1
- data/lib/countries/cache/locales/ff.json +1 -1
- data/lib/countries/cache/locales/fi.json +1 -1
- data/lib/countries/cache/locales/fo.json +1 -1
- data/lib/countries/cache/locales/fr.json +1 -1
- data/lib/countries/cache/locales/fy.json +1 -1
- data/lib/countries/cache/locales/ga.json +1 -1
- data/lib/countries/cache/locales/gl.json +1 -1
- data/lib/countries/cache/locales/gn.json +1 -1
- data/lib/countries/cache/locales/gu.json +1 -1
- data/lib/countries/cache/locales/gv.json +1 -1
- data/lib/countries/cache/locales/ha.json +1 -1
- data/lib/countries/cache/locales/he.json +1 -1
- data/lib/countries/cache/locales/hi.json +1 -1
- data/lib/countries/cache/locales/hr.json +1 -1
- data/lib/countries/cache/locales/ht.json +1 -1
- data/lib/countries/cache/locales/hu.json +1 -1
- data/lib/countries/cache/locales/hy.json +1 -1
- data/lib/countries/cache/locales/ia.json +1 -1
- data/lib/countries/cache/locales/id.json +1 -1
- data/lib/countries/cache/locales/io.json +1 -1
- data/lib/countries/cache/locales/is.json +1 -1
- data/lib/countries/cache/locales/it.json +1 -1
- data/lib/countries/cache/locales/iu.json +1 -1
- data/lib/countries/cache/locales/ja.json +1 -1
- data/lib/countries/cache/locales/ka.json +1 -1
- data/lib/countries/cache/locales/ki.json +1 -1
- data/lib/countries/cache/locales/kk.json +1 -1
- data/lib/countries/cache/locales/kl.json +1 -1
- data/lib/countries/cache/locales/km.json +1 -1
- data/lib/countries/cache/locales/kn.json +1 -1
- data/lib/countries/cache/locales/ko.json +1 -1
- data/lib/countries/cache/locales/kv.json +1 -1
- data/lib/countries/cache/locales/kw.json +1 -1
- data/lib/countries/cache/locales/ky.json +1 -1
- data/lib/countries/cache/locales/lo.json +1 -1
- data/lib/countries/cache/locales/lt.json +1 -1
- data/lib/countries/cache/locales/lv.json +1 -1
- data/lib/countries/cache/locales/mi.json +1 -1
- data/lib/countries/cache/locales/mk.json +1 -1
- data/lib/countries/cache/locales/ml.json +1 -1
- data/lib/countries/cache/locales/mn.json +1 -1
- data/lib/countries/cache/locales/mr.json +1 -1
- data/lib/countries/cache/locales/ms.json +1 -1
- data/lib/countries/cache/locales/mt.json +1 -1
- data/lib/countries/cache/locales/my.json +1 -1
- data/lib/countries/cache/locales/na.json +1 -1
- data/lib/countries/cache/locales/nb.json +1 -1
- data/lib/countries/cache/locales/ne.json +1 -1
- data/lib/countries/cache/locales/nl.json +1 -1
- data/lib/countries/cache/locales/nn.json +1 -1
- data/lib/countries/cache/locales/nv.json +1 -1
- data/lib/countries/cache/locales/oc.json +1 -1
- data/lib/countries/cache/locales/or.json +1 -1
- data/lib/countries/cache/locales/pa.json +1 -1
- data/lib/countries/cache/locales/pi.json +1 -1
- data/lib/countries/cache/locales/pl.json +1 -1
- data/lib/countries/cache/locales/ps.json +1 -1
- data/lib/countries/cache/locales/pt-br.json +1 -1
- data/lib/countries/cache/locales/pt.json +1 -1
- data/lib/countries/cache/locales/ro.json +1 -1
- data/lib/countries/cache/locales/ru.json +1 -1
- data/lib/countries/cache/locales/rw.json +1 -1
- data/lib/countries/cache/locales/sc.json +1 -1
- data/lib/countries/cache/locales/sd.json +1 -1
- data/lib/countries/cache/locales/si.json +1 -1
- data/lib/countries/cache/locales/sk.json +1 -1
- data/lib/countries/cache/locales/sl.json +1 -1
- data/lib/countries/cache/locales/so.json +1 -1
- data/lib/countries/cache/locales/sq.json +1 -1
- data/lib/countries/cache/locales/sr.json +1 -1
- data/lib/countries/cache/locales/sv.json +1 -1
- data/lib/countries/cache/locales/sw.json +1 -1
- data/lib/countries/cache/locales/ta.json +1 -1
- data/lib/countries/cache/locales/te.json +1 -1
- data/lib/countries/cache/locales/tg.json +1 -1
- data/lib/countries/cache/locales/th.json +1 -1
- data/lib/countries/cache/locales/ti.json +1 -1
- data/lib/countries/cache/locales/tk.json +1 -1
- data/lib/countries/cache/locales/tl.json +1 -1
- data/lib/countries/cache/locales/tr.json +1 -1
- data/lib/countries/cache/locales/tt.json +1 -1
- data/lib/countries/cache/locales/ug.json +1 -1
- data/lib/countries/cache/locales/uk.json +1 -1
- data/lib/countries/cache/locales/ur.json +1 -1
- data/lib/countries/cache/locales/uz.json +1 -1
- data/lib/countries/cache/locales/ve.json +1 -1
- data/lib/countries/cache/locales/vi.json +1 -1
- data/lib/countries/cache/locales/wa.json +1 -1
- data/lib/countries/cache/locales/wo.json +1 -1
- data/lib/countries/cache/locales/xh.json +1 -1
- data/lib/countries/cache/locales/yo.json +1 -1
- data/lib/countries/cache/locales/zh-cn.json +1 -1
- data/lib/countries/cache/locales/zh-hk.json +1 -1
- data/lib/countries/cache/locales/zh-tw.json +1 -1
- data/lib/countries/cache/locales/zu.json +1 -1
- data/lib/countries/country/class_methods.rb +9 -7
- data/lib/countries/country.rb +29 -3
- data/lib/countries/data/subdivisions/AD.yaml +14 -7
- data/lib/countries/data/subdivisions/AE.yaml +14 -7
- data/lib/countries/data/subdivisions/AF.yaml +196 -201
- data/lib/countries/data/subdivisions/AG.yaml +16 -22
- data/lib/countries/data/subdivisions/AL.yaml +24 -12
- data/lib/countries/data/subdivisions/AM.yaml +22 -11
- data/lib/countries/data/subdivisions/AO.yaml +36 -18
- data/lib/countries/data/subdivisions/AR.yaml +48 -24
- data/lib/countries/data/subdivisions/AT.yaml +18 -9
- data/lib/countries/data/subdivisions/AU.yaml +16 -8
- data/lib/countries/data/subdivisions/AZ.yaml +434 -412
- data/lib/countries/data/subdivisions/BA.yaml +75 -223
- data/lib/countries/data/subdivisions/BB.yaml +22 -11
- data/lib/countries/data/subdivisions/BD.yaml +188 -116
- data/lib/countries/data/subdivisions/BE.yaml +174 -161
- data/lib/countries/data/subdivisions/BF.yaml +2918 -2860
- data/lib/countries/data/subdivisions/BG.yaml +56 -28
- data/lib/countries/data/subdivisions/BH.yaml +8 -21
- data/lib/countries/data/subdivisions/BI.yaml +176 -157
- data/lib/countries/data/subdivisions/BJ.yaml +24 -12
- data/lib/countries/data/subdivisions/BN.yaml +8 -4
- data/lib/countries/data/subdivisions/BO.yaml +18 -9
- data/lib/countries/data/subdivisions/BQ.yaml +6 -3
- data/lib/countries/data/subdivisions/BR.yaml +54 -27
- data/lib/countries/data/subdivisions/BS.yaml +575 -697
- data/lib/countries/data/subdivisions/BT.yaml +40 -20
- data/lib/countries/data/subdivisions/BW.yaml +337 -321
- data/lib/countries/data/subdivisions/BY.yaml +106 -116
- data/lib/countries/data/subdivisions/BZ.yaml +12 -6
- data/lib/countries/data/subdivisions/CA.yaml +26 -13
- data/lib/countries/data/subdivisions/CD.yaml +488 -525
- data/lib/countries/data/subdivisions/CF.yaml +34 -17
- data/lib/countries/data/subdivisions/CG.yaml +40 -28
- data/lib/countries/data/subdivisions/CH.yaml +52 -26
- data/lib/countries/data/subdivisions/CI.yaml +244 -516
- data/lib/countries/data/subdivisions/CL.yaml +81 -65
- data/lib/countries/data/subdivisions/CM.yaml +20 -10
- data/lib/countries/data/subdivisions/CN.yaml +2152 -2084
- data/lib/countries/data/subdivisions/CO.yaml +66 -33
- data/lib/countries/data/subdivisions/CR.yaml +14 -7
- data/lib/countries/data/subdivisions/CU.yaml +32 -16
- data/lib/countries/data/subdivisions/CV.yaml +427 -401
- data/lib/countries/data/subdivisions/CY.yaml +12 -6
- data/lib/countries/data/subdivisions/CZ.yaml +1116 -85
- data/lib/countries/data/subdivisions/DE.yaml +32 -16
- data/lib/countries/data/subdivisions/DJ.yaml +12 -6
- data/lib/countries/data/subdivisions/DK.yaml +25 -17
- data/lib/countries/data/subdivisions/DM.yaml +20 -10
- data/lib/countries/data/subdivisions/DO.yaml +84 -42
- data/lib/countries/data/subdivisions/DZ.yaml +96 -48
- data/lib/countries/data/subdivisions/EC.yaml +158 -134
- data/lib/countries/data/subdivisions/EE.yaml +501 -334
- data/lib/countries/data/subdivisions/EG.yaml +54 -27
- data/lib/countries/data/subdivisions/ER.yaml +12 -6
- data/lib/countries/data/subdivisions/ES.yaml +1459 -1390
- data/lib/countries/data/subdivisions/ET.yaml +22 -11
- data/lib/countries/data/subdivisions/FI.yaml +185 -1
- data/lib/countries/data/subdivisions/FJ.yaml +443 -424
- data/lib/countries/data/subdivisions/FM.yaml +8 -4
- data/lib/countries/data/subdivisions/FR.yaml +438 -275
- data/lib/countries/data/subdivisions/GA.yaml +18 -9
- data/lib/countries/data/subdivisions/GB.yaml +1185 -1708
- data/lib/countries/data/subdivisions/GD.yaml +14 -7
- data/lib/countries/data/subdivisions/GE.yaml +24 -12
- data/lib/countries/data/subdivisions/GH.yaml +114 -155
- data/lib/countries/data/subdivisions/GL.yaml +24 -79
- data/lib/countries/data/subdivisions/GM.yaml +12 -6
- data/lib/countries/data/subdivisions/GN.yaml +444 -403
- data/lib/countries/data/subdivisions/GQ.yaml +24 -13
- data/lib/countries/data/subdivisions/GR.yaml +114 -73
- data/lib/countries/data/subdivisions/GT.yaml +44 -22
- data/lib/countries/data/subdivisions/GW.yaml +69 -57
- data/lib/countries/data/subdivisions/GY.yaml +20 -10
- data/lib/countries/data/subdivisions/HN.yaml +36 -18
- data/lib/countries/data/subdivisions/HR.yaml +42 -21
- data/lib/countries/data/subdivisions/HT.yaml +73 -63
- data/lib/countries/data/subdivisions/HU.yaml +106 -63
- data/lib/countries/data/subdivisions/ID.yaml +229 -188
- data/lib/countries/data/subdivisions/IE.yaml +128 -97
- data/lib/countries/data/subdivisions/IL.yaml +12 -6
- data/lib/countries/data/subdivisions/IN.yaml +245 -396
- data/lib/countries/data/subdivisions/IQ.yaml +111 -91
- data/lib/countries/data/subdivisions/IR.yaml +1463 -1451
- data/lib/countries/data/subdivisions/IS.yaml +160 -25
- data/lib/countries/data/subdivisions/IT.yaml +8740 -8292
- data/lib/countries/data/subdivisions/JM.yaml +28 -14
- data/lib/countries/data/subdivisions/JO.yaml +24 -12
- data/lib/countries/data/subdivisions/JP.yaml +94 -47
- data/lib/countries/data/subdivisions/KE.yaml +95 -48
- data/lib/countries/data/subdivisions/KG.yaml +95 -86
- data/lib/countries/data/subdivisions/KH.yaml +64 -39
- data/lib/countries/data/subdivisions/KI.yaml +6 -3
- data/lib/countries/data/subdivisions/KM.yaml +6 -3
- data/lib/countries/data/subdivisions/KN.yaml +32 -16
- data/lib/countries/data/subdivisions/KP.yaml +24 -227
- data/lib/countries/data/subdivisions/KR.yaml +34 -17
- data/lib/countries/data/subdivisions/KW.yaml +12 -6
- data/lib/countries/data/subdivisions/KZ.yaml +47 -102
- data/lib/countries/data/subdivisions/LA.yaml +36 -34
- data/lib/countries/data/subdivisions/LB.yaml +71 -63
- data/lib/countries/data/subdivisions/LC.yaml +116 -106
- data/lib/countries/data/subdivisions/LI.yaml +22 -11
- data/lib/countries/data/subdivisions/LK.yaml +445 -411
- data/lib/countries/data/subdivisions/LR.yaml +146 -129
- data/lib/countries/data/subdivisions/LS.yaml +20 -10
- data/lib/countries/data/subdivisions/LT.yaml +1706 -1636
- data/lib/countries/data/subdivisions/LU.yaml +24 -12
- data/lib/countries/data/subdivisions/LV.yaml +1623 -1577
- data/lib/countries/data/subdivisions/LY.yaml +44 -22
- data/lib/countries/data/subdivisions/MA.yaml +810 -1589
- data/lib/countries/data/subdivisions/MC.yaml +261 -244
- data/lib/countries/data/subdivisions/MD.yaml +74 -79
- data/lib/countries/data/subdivisions/ME.yaml +217 -195
- data/lib/countries/data/subdivisions/MG.yaml +12 -6
- data/lib/countries/data/subdivisions/MH.yaml +167 -140
- data/lib/countries/data/subdivisions/MK.yaml +160 -80
- data/lib/countries/data/subdivisions/ML.yaml +48 -37
- data/lib/countries/data/subdivisions/MM.yaml +30 -15
- data/lib/countries/data/subdivisions/MN.yaml +44 -22
- data/lib/countries/data/subdivisions/MR.yaml +30 -34
- data/lib/countries/data/subdivisions/MT.yaml +136 -68
- data/lib/countries/data/subdivisions/MU.yaml +24 -262
- data/lib/countries/data/subdivisions/MV.yaml +161 -254
- data/lib/countries/data/subdivisions/MW.yaml +250 -219
- data/lib/countries/data/subdivisions/MX.yaml +64 -32
- data/lib/countries/data/subdivisions/MY.yaml +32 -16
- data/lib/countries/data/subdivisions/MZ.yaml +22 -11
- data/lib/countries/data/subdivisions/NA.yaml +58 -44
- data/lib/countries/data/subdivisions/NE.yaml +16 -8
- data/lib/countries/data/subdivisions/NG.yaml +74 -37
- data/lib/countries/data/subdivisions/NI.yaml +34 -17
- data/lib/countries/data/subdivisions/NL.yaml +303 -285
- data/lib/countries/data/subdivisions/NO.yaml +39 -17
- data/lib/countries/data/subdivisions/NP.yaml +302 -276
- data/lib/countries/data/subdivisions/NR.yaml +28 -14
- data/lib/countries/data/subdivisions/NZ.yaml +34 -17
- data/lib/countries/data/subdivisions/OM.yaml +260 -311
- data/lib/countries/data/subdivisions/PA.yaml +57 -44
- data/lib/countries/data/subdivisions/PE.yaml +107 -81
- data/lib/countries/data/subdivisions/PG.yaml +163 -158
- data/lib/countries/data/subdivisions/PH.yaml +5062 -4992
- data/lib/countries/data/subdivisions/PK.yaml +145 -235
- data/lib/countries/data/subdivisions/PL.yaml +51 -3
- data/lib/countries/data/subdivisions/PS.yaml +32 -16
- data/lib/countries/data/subdivisions/PT.yaml +40 -20
- data/lib/countries/data/subdivisions/PW.yaml +32 -16
- data/lib/countries/data/subdivisions/PY.yaml +36 -18
- data/lib/countries/data/subdivisions/QA.yaml +27 -78
- data/lib/countries/data/subdivisions/RO.yaml +84 -42
- data/lib/countries/data/subdivisions/RS.yaml +104 -72
- data/lib/countries/data/subdivisions/RU.yaml +166 -83
- data/lib/countries/data/subdivisions/RW.yaml +10 -5
- data/lib/countries/data/subdivisions/SA.yaml +26 -13
- data/lib/countries/data/subdivisions/SB.yaml +20 -10
- data/lib/countries/data/subdivisions/SC.yaml +54 -25
- data/lib/countries/data/subdivisions/SD.yaml +798 -780
- data/lib/countries/data/subdivisions/SE.yaml +42 -21
- data/lib/countries/data/subdivisions/SG.yaml +15 -10
- data/lib/countries/data/subdivisions/SH.yaml +21 -32
- data/lib/countries/data/subdivisions/SI.yaml +475 -263
- data/lib/countries/data/subdivisions/SK.yaml +16 -8
- data/lib/countries/data/subdivisions/SL.yaml +23 -18
- data/lib/countries/data/subdivisions/SM.yaml +18 -9
- data/lib/countries/data/subdivisions/SN.yaml +188 -174
- data/lib/countries/data/subdivisions/SO.yaml +36 -18
- data/lib/countries/data/subdivisions/SR.yaml +20 -10
- data/lib/countries/data/subdivisions/SS.yaml +20 -10
- data/lib/countries/data/subdivisions/ST.yaml +38 -52
- data/lib/countries/data/subdivisions/SV.yaml +28 -14
- data/lib/countries/data/subdivisions/SY.yaml +28 -14
- data/lib/countries/data/subdivisions/SZ.yaml +8 -4
- data/lib/countries/data/subdivisions/TD.yaml +312 -303
- data/lib/countries/data/subdivisions/TG.yaml +10 -5
- data/lib/countries/data/subdivisions/TH.yaml +211 -133
- data/lib/countries/data/subdivisions/TJ.yaml +161 -156
- data/lib/countries/data/subdivisions/TL.yaml +26 -13
- data/lib/countries/data/subdivisions/TM.yaml +12 -6
- data/lib/countries/data/subdivisions/TN.yaml +48 -24
- data/lib/countries/data/subdivisions/TO.yaml +10 -5
- data/lib/countries/data/subdivisions/TR.yaml +162 -81
- data/lib/countries/data/subdivisions/TT.yaml +128 -160
- data/lib/countries/data/subdivisions/TV.yaml +57 -63
- data/lib/countries/data/subdivisions/TW.yaml +143 -183
- data/lib/countries/data/subdivisions/TZ.yaml +62 -31
- data/lib/countries/data/subdivisions/UA.yaml +55 -28
- data/lib/countries/data/subdivisions/UG.yaml +4806 -4660
- data/lib/countries/data/subdivisions/UM.yaml +18 -9
- data/lib/countries/data/subdivisions/US.yaml +114 -57
- data/lib/countries/data/subdivisions/UY.yaml +99 -80
- data/lib/countries/data/subdivisions/UZ.yaml +28 -14
- data/lib/countries/data/subdivisions/VC.yaml +12 -6
- data/lib/countries/data/subdivisions/VE.yaml +50 -25
- data/lib/countries/data/subdivisions/VN.yaml +3576 -3513
- data/lib/countries/data/subdivisions/VU.yaml +12 -6
- data/lib/countries/data/subdivisions/WF.yaml +6 -3
- data/lib/countries/data/subdivisions/WS.yaml +22 -11
- data/lib/countries/data/subdivisions/YE.yaml +222 -200
- data/lib/countries/data/subdivisions/ZA.yaml +86 -100
- data/lib/countries/data/subdivisions/ZM.yaml +20 -10
- data/lib/countries/data/subdivisions/ZW.yaml +20 -10
- data/lib/countries/data/translations/countries-ab.yaml +254 -0
- data/lib/countries/data/translations/countries-af.yaml +254 -0
- data/lib/countries/data/translations/countries-ak.yaml +254 -0
- data/lib/countries/data/translations/countries-am.yaml +254 -0
- data/lib/countries/data/translations/countries-an.yaml +254 -0
- data/lib/countries/data/translations/countries-ar.yaml +254 -0
- data/lib/countries/data/translations/countries-as.yaml +254 -0
- data/lib/countries/data/translations/countries-ay.yaml +254 -0
- data/lib/countries/data/translations/countries-az.yaml +254 -0
- data/lib/countries/data/translations/countries-ba.yaml +254 -0
- data/lib/countries/data/translations/countries-be.yaml +254 -0
- data/lib/countries/data/translations/countries-bg.yaml +254 -0
- data/lib/countries/data/translations/countries-bi.yaml +254 -0
- data/lib/countries/data/translations/countries-bn.yaml +254 -0
- data/lib/countries/data/translations/countries-bn_IN.yaml +254 -0
- data/lib/countries/data/translations/countries-br.yaml +254 -0
- data/lib/countries/data/translations/countries-bs.yaml +254 -0
- data/lib/countries/data/translations/countries-ca.yaml +254 -0
- data/lib/countries/data/translations/countries-ce.yaml +254 -0
- data/lib/countries/data/translations/countries-ch.yaml +254 -0
- data/lib/countries/data/translations/countries-cs.yaml +254 -0
- data/lib/countries/data/translations/countries-cv.yaml +254 -0
- data/lib/countries/data/translations/countries-cy.yaml +254 -0
- data/lib/countries/data/translations/countries-da.yaml +254 -0
- data/lib/countries/data/translations/countries-de.yaml +254 -0
- data/lib/countries/data/translations/countries-dv.yaml +254 -0
- data/lib/countries/data/translations/countries-dz.yaml +254 -0
- data/lib/countries/data/translations/countries-ee.yaml +254 -0
- data/lib/countries/data/translations/countries-el.yaml +254 -0
- data/lib/countries/data/translations/countries-en.yaml +254 -0
- data/lib/countries/data/translations/countries-eo.yaml +254 -0
- data/lib/countries/data/translations/countries-es.yaml +254 -0
- data/lib/countries/data/translations/countries-et.yaml +254 -0
- data/lib/countries/data/translations/countries-eu.yaml +254 -0
- data/lib/countries/data/translations/countries-fa.yaml +254 -0
- data/lib/countries/data/translations/countries-ff.yaml +254 -0
- data/lib/countries/data/translations/countries-fi.yaml +254 -0
- data/lib/countries/data/translations/countries-fo.yaml +254 -0
- data/lib/countries/data/translations/countries-fr.yaml +254 -0
- data/lib/countries/data/translations/countries-fy.yaml +254 -0
- data/lib/countries/data/translations/countries-ga.yaml +254 -0
- data/lib/countries/data/translations/countries-gl.yaml +254 -0
- data/lib/countries/data/translations/countries-gn.yaml +254 -0
- data/lib/countries/data/translations/countries-gu.yaml +254 -0
- data/lib/countries/data/translations/countries-gv.yaml +254 -0
- data/lib/countries/data/translations/countries-ha.yaml +254 -0
- data/lib/countries/data/translations/countries-he.yaml +254 -0
- data/lib/countries/data/translations/countries-hi.yaml +254 -0
- data/lib/countries/data/translations/countries-hr.yaml +254 -0
- data/lib/countries/data/translations/countries-ht.yaml +254 -0
- data/lib/countries/data/translations/countries-hu.yaml +254 -0
- data/lib/countries/data/translations/countries-hy.yaml +254 -0
- data/lib/countries/data/translations/countries-ia.yaml +254 -0
- data/lib/countries/data/translations/countries-id.yaml +254 -0
- data/lib/countries/data/translations/countries-io.yaml +254 -0
- data/lib/countries/data/translations/countries-is.yaml +254 -0
- data/lib/countries/data/translations/countries-it.yaml +254 -0
- data/lib/countries/data/translations/countries-iu.yaml +254 -0
- data/lib/countries/data/translations/countries-ja.yaml +254 -0
- data/lib/countries/data/translations/countries-ka.yaml +254 -0
- data/lib/countries/data/translations/countries-ki.yaml +254 -0
- data/lib/countries/data/translations/countries-kk.yaml +254 -0
- data/lib/countries/data/translations/countries-kl.yaml +254 -0
- data/lib/countries/data/translations/countries-km.yaml +254 -0
- data/lib/countries/data/translations/countries-kn.yaml +254 -0
- data/lib/countries/data/translations/countries-ko.yaml +254 -0
- data/lib/countries/data/translations/countries-ku.yaml +254 -0
- data/lib/countries/data/translations/countries-kv.yaml +254 -0
- data/lib/countries/data/translations/countries-kw.yaml +254 -0
- data/lib/countries/data/translations/countries-ky.yaml +254 -0
- data/lib/countries/data/translations/countries-lo.yaml +254 -0
- data/lib/countries/data/translations/countries-lt.yaml +254 -0
- data/lib/countries/data/translations/countries-lv.yaml +254 -0
- data/lib/countries/data/translations/countries-mi.yaml +254 -0
- data/lib/countries/data/translations/countries-mk.yaml +254 -0
- data/lib/countries/data/translations/countries-ml.yaml +254 -0
- data/lib/countries/data/translations/countries-mn.yaml +254 -0
- data/lib/countries/data/translations/countries-mr.yaml +254 -0
- data/lib/countries/data/translations/countries-ms.yaml +254 -0
- data/lib/countries/data/translations/countries-mt.yaml +254 -0
- data/lib/countries/data/translations/countries-my.yaml +254 -0
- data/lib/countries/data/translations/countries-na.yaml +254 -0
- data/lib/countries/data/translations/countries-nb.yaml +254 -0
- data/lib/countries/data/translations/countries-ne.yaml +254 -0
- data/lib/countries/data/translations/countries-nl.yaml +254 -0
- data/lib/countries/data/translations/countries-nn.yaml +254 -0
- data/lib/countries/data/translations/countries-nv.yaml +254 -0
- data/lib/countries/data/translations/countries-oc.yaml +254 -0
- data/lib/countries/data/translations/countries-or.yaml +254 -0
- data/lib/countries/data/translations/countries-pa.yaml +254 -0
- data/lib/countries/data/translations/countries-pi.yaml +254 -0
- data/lib/countries/data/translations/countries-pl.yaml +254 -0
- data/lib/countries/data/translations/countries-ps.yaml +254 -0
- data/lib/countries/data/translations/countries-pt.yaml +254 -0
- data/lib/countries/data/translations/countries-pt_BR.yaml +254 -0
- data/lib/countries/data/translations/countries-ro.yaml +254 -0
- data/lib/countries/data/translations/countries-ru.yaml +254 -0
- data/lib/countries/data/translations/countries-rw.yaml +254 -0
- data/lib/countries/data/translations/countries-sc.yaml +254 -0
- data/lib/countries/data/translations/countries-sd.yaml +254 -0
- data/lib/countries/data/translations/countries-si.yaml +254 -0
- data/lib/countries/data/translations/countries-sk.yaml +254 -0
- data/lib/countries/data/translations/countries-sl.yaml +254 -0
- data/lib/countries/data/translations/countries-so.yaml +254 -0
- data/lib/countries/data/translations/countries-sq.yaml +254 -0
- data/lib/countries/data/translations/countries-sr.yaml +254 -0
- data/lib/countries/data/translations/countries-sv.yaml +254 -0
- data/lib/countries/data/translations/countries-sw.yaml +254 -0
- data/lib/countries/data/translations/countries-ta.yaml +254 -0
- data/lib/countries/data/translations/countries-te.yaml +254 -0
- data/lib/countries/data/translations/countries-tg.yaml +254 -0
- data/lib/countries/data/translations/countries-th.yaml +254 -0
- data/lib/countries/data/translations/countries-ti.yaml +254 -0
- data/lib/countries/data/translations/countries-tk.yaml +254 -0
- data/lib/countries/data/translations/countries-tl.yaml +254 -0
- data/lib/countries/data/translations/countries-tr.yaml +254 -0
- data/lib/countries/data/translations/countries-tt.yaml +254 -0
- data/lib/countries/data/translations/countries-ug.yaml +254 -0
- data/lib/countries/data/translations/countries-uk.yaml +254 -0
- data/lib/countries/data/translations/countries-ur.yaml +254 -0
- data/lib/countries/data/translations/countries-uz.yaml +254 -0
- data/lib/countries/data/translations/countries-ve.yaml +254 -0
- data/lib/countries/data/translations/countries-vi.yaml +254 -0
- data/lib/countries/data/translations/countries-wa.yaml +254 -0
- data/lib/countries/data/translations/countries-wo.yaml +254 -0
- data/lib/countries/data/translations/countries-xh.yaml +254 -0
- data/lib/countries/data/translations/countries-yo.yaml +254 -0
- data/lib/countries/data/translations/countries-zh_CN.yaml +254 -0
- data/lib/countries/data/translations/countries-zh_HK.yaml +254 -0
- data/lib/countries/data/translations/countries-zh_TW.yaml +254 -0
- data/lib/countries/data/translations/countries-zu.yaml +254 -0
- data/lib/countries/data.rb +14 -8
- data/lib/countries/iso3166.rb +0 -1
- data/lib/countries/sources/cldr/subdivision_updater.rb +1 -1
- data/lib/countries/subdivision.rb +19 -8
- data/lib/countries/version.rb +1 -1
- data/spec/country_spec.rb +63 -19
- data/spec/data_spec.rb +63 -5
- metadata +133 -24
- data/lib/countries/cache/locales/zh.json +0 -1
- data/lib/countries/data/subdivisions/AI.yaml +0 -197
- data/lib/countries/data/subdivisions/BM.yaml +0 -155
- data/lib/countries/data/subdivisions/CK.yaml +0 -155
- data/lib/countries/data/subdivisions/EH.yaml +0 -80
- data/lib/countries/data/subdivisions/SJ.yaml +0 -29
- data/lib/countries/data/subdivisions/TK.yaml +0 -43
- data/lib/countries/data/translation_corrections.yaml +0 -53
@@ -1 +1 @@
|
|
1
|
-
{"
|
1
|
+
{"AD":"安道尔","AE":"阿联酋","AF":"阿富汗","AG":"安提瓜和巴布达","AI":"安圭拉","AL":"阿尔巴尼亚","AM":"亚美尼亚","AO":"安哥拉","AQ":"南极洲","AR":"阿根廷","AS":"美属萨摩亚","AT":"奥地利","AU":"澳大利亚","AW":"阿鲁巴","AX":"奥兰群岛","AZ":"阿塞拜疆","BA":"波斯尼亚和黑塞哥维那","BB":"巴巴多斯","BD":"孟加拉","BE":"比利时","BF":"布基纳法索","BG":"保加利亚","BH":"巴林","BI":"布隆迪","BJ":"贝宁","BL":"圣巴泰勒米岛","BM":"百慕大","BN":"文莱","BO":"波利维亚","BQ":"博奈尔、圣尤斯特歇斯岛和萨巴","BR":"巴西","BS":"巴哈马","BT":"不丹","BV":"布维群岛","BW":"博兹瓦那","BY":"白俄罗斯","BZ":"伯利兹","CA":"加拿大","CC":"科科斯群岛","CD":"刚果民主共和国","CF":"中非","CG":"刚果","CH":"瑞士","CI":"科特迪瓦","CK":"库克群岛","CL":"智利","CM":"喀麦隆","CN":"中国","CO":"哥伦比亚","CR":"哥斯达黎加","CU":"古巴","CV":"佛得角","CW":"库拉索","CX":"圣诞岛","CY":"塞浦路斯","CZ":"捷克","DE":"德国","DJ":"吉布提","DK":"丹麦","DM":"多米尼克","DO":"多米尼加共和国","DZ":"阿尔及利亚","EC":"厄瓜多尔","EE":"爱沙尼亚","EG":"埃及","EH":"西撒哈拉","ER":"厄立特里亚","ES":"西班牙","ET":"埃塞俄比亚","FI":"芬兰","FJ":"斐济","FK":"福克兰群岛(马尔维纳斯)","FM":"密克罗尼西亚","FO":"法罗群岛","FR":"法国","GA":"加蓬","GB":"英国","GD":"格林纳达","GE":"格鲁吉亚","GF":"法属圭亚那","GG":"根西岛","GH":"加纳","GI":"直布罗陀","GL":"格陵兰","GM":"冈比亚","GN":"几内亚","GP":"瓜德罗普","GQ":"赤道几内亚","GR":"希腊","GS":"南乔治亚岛和南桑德韦奇岛","GT":"瓜地马拉","GU":"关岛","GW":"几内亚比绍","GY":"圭亚那","HK":"香港","HM":"赫德岛与麦克唐纳群岛","HN":"洪都拉斯","HR":"克罗地亚","HT":"海地","HU":"匈牙利","ID":"印度尼西亚","IE":"爱尔兰","IL":"以色列","IM":"曼岛","IN":"印度","IO":"英属印度洋领地","IQ":"伊拉克","IR":"伊朗","IS":"冰岛","IT":"意大利","JE":"泽西岛","JM":"牙买加","JO":"约旦","JP":"日本","KE":"肯尼亚","KG":"吉尔吉斯坦","KH":"柬埔寨","KI":"基里巴斯","KM":"科摩罗","KN":"圣基茨和尼维斯","KP":"朝鲜","KR":"韩国","KW":"科威特","KY":"开曼群岛","KZ":"哈萨克斯坦","LA":"老挝人民民主共和国","LB":"黎巴嫩","LC":"圣路西亚","LI":"列支敦士登","LK":"斯里兰卡","LR":"利比里亚","LS":"莱索托","LT":"立陶宛","LU":"卢森堡","LV":"拉脱维亚","LY":"利比亚","MA":"摩洛哥","MC":"摩纳哥","MD":"摩尔多瓦","ME":"黑山","MF":"法属圣马丁","MG":"马达加斯加","MH":"马绍尔群岛","MK":"北马其顿","ML":"马里","MM":"缅甸","MN":"蒙古","MO":"澳门","MP":"北马里亚纳群岛","MQ":"马提尼克","MR":"毛里塔尼亚","MS":"蒙塞拉特岛","MT":"马尔他","MU":"毛里求斯","MV":"马尔代夫","MW":"马拉维","MX":"墨西哥","MY":"马来西亚","MZ":"莫桑比克","NA":"纳米比亚","NC":"新喀里多尼亚","NE":"尼日尔","NF":"诺福克岛","NG":"尼日利亚","NI":"尼加拉瓜","NL":"荷兰","NO":"挪威","NP":"尼泊尔","NR":"瑙鲁","NU":"纽埃","NZ":"新西兰","OM":"阿曼","PA":"巴拿马","PE":"秘鲁","PF":"法属玻利尼西亚","PG":"巴布亚新几内亚","PH":"菲律宾","PK":"巴基斯坦","PL":"波兰","PM":"圣皮埃尔和密克隆","PN":"皮特克恩","PR":"波多黎各","PS":"巴勒斯坦","PT":"葡萄牙","PW":"帕劳","PY":"巴拉圭","QA":"卡塔尔","RE":"留尼汪","RO":"罗马尼亚","RS":"塞尔维亚","RU":"俄罗斯","RW":"卢旺达","SA":"沙特阿拉伯","SB":"所罗门群岛","SC":"塞舌尔","SD":"苏丹","SE":"瑞典","SG":"新加坡","SH":"圣赫勒拿-阿森松-特里斯坦达库尼亚","SI":"斯洛文尼亚","SJ":"斯瓦尔巴特和扬马延岛","SK":"斯洛伐克","SL":"塞拉利昂","SM":"圣马力诺市","SN":"塞内加尔","SO":"索马里","SR":"苏里南","SS":"南苏丹","ST":"圣多美和普林西比","SV":"萨尔瓦多","SX":"荷属圣马丁","SY":"叙利亚","SZ":"斯威士兰","TC":"特克斯和凯科斯群岛","TD":"乍得","TF":"法属南半球领地","TG":"多哥","TH":"泰国","TJ":"塔吉克斯坦","TK":"托克劳","TL":"东帝汶","TM":"土库曼斯坦","TN":"突尼斯","TO":"汤加","TR":"土耳其","TT":"特里尼达和多巴哥","TV":"图瓦卢","TW":"台湾","TZ":"坦桑尼亚","UA":"乌克兰","UG":"乌干达","UM":"美国本土外小岛屿","US":"美国","UY":"乌拉圭","UZ":"乌兹别克斯坦","VA":"梵地冈","VC":"圣文森特和格林纳丁斯","VE":"委内瑞拉","VG":"英属维尔京群岛","VI":"美属维尔京群岛","VN":"越南","VU":"瓦努阿图","WF":"瓦利斯和富图纳","WS":"萨摩亚","YE":"也门","YT":"马约特","ZA":"南非","ZM":"赞比亚","ZW":"津巴布韦"}
|
@@ -1 +1 @@
|
|
1
|
-
{"
|
1
|
+
{"AD":"安道爾","AE":"阿拉伯聯合酋長國","AF":"阿富汗","AG":"安提瓜和巴布達","AI":"安圭拉島","AL":"阿爾巴尼亞","AM":"亞美尼亞","AO":"安哥拉","AQ":"南極洲","AR":"阿根廷","AS":"美屬薩摩亞","AT":"奧地利","AU":"澳大利亞","AW":"阿盧巴島","AX":"奧蘭羣島","AZ":"亞塞拜彊","BA":"波斯尼亞和黑塞哥維那","BB":"巴巴多斯","BD":"孟加拉","BE":"比利時","BF":"布基納法索","BG":"保加利亞","BH":"巴林","BI":"布隆迪","BJ":"貝寧","BL":"聖巴泰勒米","BM":"百慕達","BN":"汶萊","BO":"玻利維亞","BQ":"荷蘭加勒比區","BR":"巴西","BS":"巴哈馬","BT":"不丹","BV":"波維特島","BW":"博茨瓦納","BY":"白俄羅斯","BZ":"伯利兹","CA":"加拿大","CC":"可可斯羣島","CD":"剛果民主共和國","CF":"中非共和國","CG":"剛果","CH":"瑞士","CI":"科特迪瓦","CK":"科克羣島","CL":"智利","CM":"喀麥隆","CN":"中國","CO":"哥倫比亞","CR":"哥斯達黎加","CU":"古巴","CV":"佛得角","CW":"庫拉索","CX":"聖誕島","CY":"賽浦路斯","CZ":"捷克","DE":"德國","DJ":"吉布提","DK":"丹麥","DM":"多米尼克","DO":"多米尼加共和國","DZ":"阿爾及利亞","EC":"厄瓜多爾","EE":"愛沙尼亞","EG":"埃及","EH":"西撒哈拉","ER":"厄立特里亞","ES":"西班牙","ET":"埃塞俄比亞","FI":"芬蘭","FJ":"斐濟羣島","FK":"福克蘭羣島","FM":"密克羅尼西亞聯邦","FO":"法羅羣島","FR":"法國","GA":"加蓬","GB":"英國","GD":"格林納達","GE":"格魯吉亞","GF":"法屬圭亞那","GG":"根息","GH":"加納","GI":"直布羅陀","GL":"格陵蘭","GM":"岡比亞","GN":"畿內亞","GP":"瓜德魯普島","GQ":"赤道畿內亞","GR":"希臘","GS":"南佐治亞及南三文治羣島","GT":"危地馬拉","GU":"關島","GW":"畿內亞比紹","GY":"圭亞那","HK":"香港","HM":"德島及麥當勞羣島","HN":"洪都拉斯","HR":"克羅地亞","HT":"海地","HU":"匈牙利","ID":"印尼","IE":"愛爾蘭","IL":"以色列","IM":"萌島","IN":"印度","IO":"英屬印度洋地區","IQ":"伊拉克","IR":"伊朗","IS":"冰島","IT":"意大利","JE":"澤西","JM":"牙買加","JO":"約旦","JP":"日本","KE":"肯雅","KG":"吉爾吉斯","KH":"柬埔寨","KI":"基里巴斯","KM":"科摩羅","KN":"聖基茨和尼維斯聯邦","KP":"北韓","KR":"大韓民國","KW":"科威特","KY":"開曼羣島","KZ":"哈薩克","LA":"老撾人民民主共和國","LB":"黎巴嫩","LC":"聖盧西亞","LI":"列支敦士登","LK":"斯里蘭卡","LR":"利比里亞","LS":"萊索托","LT":"立陶宛","LU":"盧森堡","LV":"拉脫維亞","LY":"利比亞","MA":"摩洛哥","MC":"摩納哥","MD":"摩爾多瓦","ME":"黑山","MF":"聖馬丁 (法屬)","MG":"馬達加斯加","MH":"馬紹爾羣島","MK":"北馬其頓","ML":"馬里","MM":"緬甸","MN":"蒙古","MO":"澳門","MP":"北馬里亞納羣島","MQ":"法屬馬丁尼克","MR":"毛里塔尼亞","MS":"蒙瑟拉特島","MT":"馬耳他","MU":"毛里裘斯","MV":"馬爾代夫","MW":"馬拉維","MX":"墨西哥","MY":"馬來西亞","MZ":"莫桑比克","NA":"納米比亞","NC":"新喀里多尼亞島","NE":"尼日爾","NF":"諾福克羣島","NG":"尼日利亞","NI":"尼加拉瓜","NL":"荷蘭","NO":"挪威","NP":"尼泊爾","NR":"瑙魯","NU":"紐威島","NZ":"新西蘭","OM":"阿曼","PA":"巴拿馬","PE":"秘魯","PF":"法屬玻利尼西亞","PG":"巴布亞新畿內亞","PH":"菲律賓","PK":"巴基斯坦","PL":"波蘭","PM":"聖皮耶及密克隆羣島","PN":"皮特康","PR":"波多黎各","PS":"巴勒斯坦","PT":"葡萄牙","PW":"帕勞","PY":"巴拉圭","QA":"卡塔爾","RE":"留尼旺","RO":"羅馬尼亞","RS":"塞爾維亞","RU":"俄羅斯聯邦","RW":"盧旺達","SA":"沙地阿拉伯","SB":"所羅門羣島","SC":"塞舌爾","SD":"蘇丹","SE":"瑞典","SG":"新加坡","SH":"聖海倫娜島、阿森松島及崔斯坦達庫尼亞羣島","SI":"斯洛文尼亞","SJ":"冷岸羣島及央棉","SK":"斯洛伐克","SL":"塞拉利昂","SM":"聖馬力諾","SN":"塞內加爾","SO":"索馬里","SR":"蘇里南","SS":"南蘇丹","ST":"聖多美和普林西比","SV":"薩爾瓦多","SX":"聖馬丁 (荷屬)","SY":"阿拉伯敍利亞共和國","SZ":"斯威士蘭","TC":"土克凱可羣島","TD":"乍得","TF":"法屬南部屬地","TG":"多哥","TH":"泰國","TJ":"塔吉克斯坦","TK":"托克勞羣島","TL":"東帝汶","TM":"土庫曼","TN":"突尼斯","TO":"湯加","TR":"土耳其","TT":"特立尼達和多巴哥","TV":"圖瓦盧","TW":"台灣","TZ":"坦桑尼亞","UA":"烏克蘭","UG":"烏干達","UM":"美屬邊疆羣島","US":"美國","UY":"烏拉圭","UZ":"烏茲別克","VA":"梵蒂岡","VC":"聖文森特和格林納丁斯","VE":"委內瑞拉","VG":"英屬處女羣島","VI":"美屬處女羣島","VN":"越南","VU":"瓦努阿圖","WF":"沃里斯及伏塔那羣島","WS":"薩摩亞","YE":"也門","YT":"美亞特","ZA":"南非","ZM":"贊比亞","ZW":"津巴布韋"}
|
@@ -1 +1 @@
|
|
1
|
-
{"
|
1
|
+
{"AD":"安道爾","AE":"阿拉伯聯合大公國","AF":"阿富汗","AG":"安地卡及巴布達","AI":"安圭拉","AL":"阿爾巴尼亞","AM":"亞美尼亞","AO":"安哥拉","AQ":"南極洲","AR":"阿根廷","AS":"美屬薩摩亞","AT":"奧地利","AU":"澳大利亞","AW":"阿魯巴","AX":"奧蘭群島","AZ":"亞塞拜然","BA":"波士尼亞及赫塞哥維納","BB":"巴貝多","BD":"孟加拉","BE":"比利時","BF":"布吉納法索","BG":"保加利亞","BH":"巴林","BI":"蒲隆地","BJ":"貝南","BL":"聖巴瑟米","BM":"百慕達","BN":"汶萊","BO":"玻利維亞","BQ":"波內赫、聖尤斯特歇斯及薩巴","BR":"巴西","BS":"巴哈馬","BT":"不丹","BV":"布威島","BW":"波札那","BY":"白俄羅斯","BZ":"貝里斯","CA":"加拿大","CC":"科科斯 (基林) 群島","CD":"剛果民主共和國","CF":"中非共和國","CG":"剛果","CH":"瑞士","CI":"象牙海岸","CK":"庫克群島","CL":"智利","CM":"喀麥隆","CN":"中國","CO":"哥倫比亞","CR":"哥斯大黎加","CU":"古巴","CV":"維德角","CW":"古拉索","CX":"聖誕島","CY":"賽普勒斯","CZ":"捷克","DE":"德國","DJ":"吉布地","DK":"丹麥","DM":"多米尼克","DO":"多明尼加共和國","DZ":"阿爾及利亞","EC":"厄瓜多","EE":"愛沙尼亞","EG":"埃及","EH":"西撒哈拉","ER":"厄利垂亞","ES":"西班牙","ET":"衣索比亞","FI":"芬蘭","FJ":"斐濟","FK":"福克蘭群島 (馬維娜斯)","FM":"密克羅尼西亞聯邦","FO":"法羅群島","FR":"法國","GA":"加彭","GB":"英國","GD":"格瑞那達","GE":"喬治亞","GF":"法屬蓋亞那","GG":"根息島","GH":"迦納","GI":"直布羅陀","GL":"格陵蘭","GM":"甘比亞","GN":"幾內亞","GP":"瓜地洛普","GQ":"赤道幾內亞","GR":"希臘","GS":"南喬治亞及南三明治群島","GT":"瓜地馬拉","GU":"關島","GW":"幾內亞比索","GY":"蓋亞那","HK":"香港","HM":"赫德島及麥當勞群島","HN":"宏都拉斯","HR":"克羅埃西亞","HT":"海地","HU":"匈牙利","ID":"印度尼西亞","IE":"愛爾蘭","IL":"以色列","IM":"曼島","IN":"印度","IO":"英屬印度洋領地","IQ":"伊拉克","IR":"伊朗伊斯蘭共和國","IS":"冰島","IT":"義大利","JE":"澤西島","JM":"牙買加","JO":"約旦","JP":"日本","KE":"肯亞","KG":"吉爾吉斯","KH":"柬埔寨","KI":"吉里巴斯","KM":"葛摩","KN":"聖克里斯多福及尼維斯","KP":"朝鮮民主主義人民共和國","KR":"大韓民國","KW":"科威特","KY":"開曼群島","KZ":"哈薩克","LA":"寮人民民主共和國","LB":"黎巴嫩","LC":"聖露西亞","LI":"列支敦斯登","LK":"斯里蘭卡","LR":"賴比瑞亞","LS":"賴索托","LT":"立陶宛","LU":"盧森堡","LV":"拉脫維亞","LY":"利比亞","MA":"摩洛哥","MC":"摩納哥","MD":"摩爾多瓦","ME":"蒙特內哥羅","MF":"聖馬丁 (法屬)","MG":"馬達加斯加","MH":"馬紹爾群島","MK":"北馬其頓","ML":"馬利","MM":"緬甸","MN":"蒙古","MO":"澳門","MP":"北馬里亞納群島","MQ":"馬丁尼克","MR":"茅利塔尼亞","MS":"蒙塞拉特島","MT":"馬爾他","MU":"模里西斯","MV":"馬爾地夫","MW":"馬拉威","MX":"墨西哥","MY":"馬來西亞","MZ":"莫三比克","NA":"納米比亞","NC":"新喀里多尼亞","NE":"尼日","NF":"諾福克島","NG":"奈及利亞","NI":"尼加拉瓜","NL":"荷蘭","NO":"挪威","NP":"尼泊爾","NR":"諾魯","NU":"紐埃","NZ":"紐西蘭","OM":"阿曼","PA":"巴拿馬","PE":"祕魯","PF":"法屬玻里尼西亞","PG":"巴布亞紐幾內亞","PH":"菲律賓","PK":"巴基斯坦","PL":"波蘭","PM":"聖皮耶及密克隆群島","PN":"皮特肯島","PR":"波多黎各","PS":"巴勒斯坦","PT":"葡萄牙","PW":"帛琉","PY":"巴拉圭","QA":"卡達","RE":"留尼旺島","RO":"羅馬尼亞","RS":"塞爾維亞","RU":"俄羅斯聯邦","RW":"盧安達","SA":"沙烏地阿拉伯","SB":"索羅門群島","SC":"塞席爾","SD":"蘇丹","SE":"瑞典","SG":"新加坡","SH":"聖赫倫那島、阿森松島及崔斯坦達庫尼亞群島","SI":"斯洛維尼亞","SJ":"冷岸群島及央棉","SK":"斯洛伐克","SL":"獅子山","SM":"聖馬利諾","SN":"塞內加爾","SO":"索馬利亞","SR":"蘇利南","SS":"南蘇丹","ST":"聖多美及普林西比","SV":"薩爾瓦多","SX":"聖馬丁 (荷屬)","SY":"敘利亞阿拉伯共和國","SZ":"史瓦帝尼","TC":"土克凱可群島","TD":"查德","TF":"法屬南部領地","TG":"多哥","TH":"泰國","TJ":"塔吉克","TK":"托克勞","TL":"東帝汶","TM":"土庫曼","TN":"突尼西亞","TO":"東加","TR":"土耳其","TT":"千里達及托巴哥","TV":"吐瓦魯","TW":"臺灣","TZ":"坦尚尼亞","UA":"烏克蘭","UG":"烏干達","UM":"美屬邊疆群島","US":"美國","UY":"烏拉圭","UZ":"烏茲別克","VA":"教廷 (梵蒂岡城市國)","VC":"聖文森及格瑞納丁","VE":"委內瑞拉","VG":"英屬維京群島","VI":"美屬維京群島","VN":"越南","VU":"萬那杜","WF":"沃里斯及伏塔那群島","WS":"薩摩亞","YE":"葉門","YT":"馬約特","ZA":"南非","ZM":"尚比亞","ZW":"辛巴威"}
|
@@ -1 +1 @@
|
|
1
|
-
{"
|
1
|
+
{"AD":"I-Andora","AE":"United Arab Emirates","AF":"I-Afganistani","AG":"Antigua no Barbuda","AI":"Anguilla","AL":"I-Albaniya","AM":"Armenia","AO":"I-Angola","AQ":"Antarctica","AR":"I-Argentina","AS":"American Samoa","AT":"I-Ostriya","AU":"I-Ostreliya","AW":"Aruba","AX":"Åland Islands","AZ":"I-Azerbayijani","BA":"IBhosniya neHerzegovina","BB":"I-Barbados","BD":"Isi-Bhangladeshi","BE":"Isi-Bhelijiyamu","BF":"IBukhina Faso","BG":"IBulgariya","BH":"Bahrain","BI":"IBurundi","BJ":"IBenini","BL":"Saint Barthélemy","BM":"Bermuda","BN":"Brunei Darussalam","BO":"I Boliviya","BQ":"Bonaire, Sint Eustatius and Saba","BR":"IBrazili","BS":"Bahamas","BT":"Bhutan","BV":"Bouvet Island","BW":"IButswana","BY":"IBelarusi","BZ":"Belize","CA":"I Khanada","CC":"Cocos (Keeling) Islands","CD":"Congo, The Democratic Republic of the","CF":"Central African Republic","CG":"Congo","CH":"I-Switzerland","CI":"Côte d'Ivoire","CK":"Cook Islands","CL":"I-Chile","CM":"IKamerooni","CN":"Isi-Shayina","CO":"IKolombiya","CR":"Costa Rica","CU":"Cuba","CV":"Cabo Verde","CW":"Curaçao","CX":"Christmas Island","CY":"Cyprus","CZ":"Czechia","DE":"IJalimani","DJ":"IJibuthi","DK":"IDenimaki","DM":"Dominica","DO":"Ulawulo lokuziphatha kwe Dominikhani","DZ":"IAljiriya","EC":"Ecuador","EE":"I-Estoniya","EG":"IGibhithe","EH":"Western Sahara","ER":"I-Eritrea","ES":"ISpeyini","ET":"I-Ithiopia","FI":"IFinlandi","FJ":"IFiji","FK":"Falkland Islands (Malvinas)","FM":"Micronesia, Federated States of","FO":"Faroe Islands","FR":"IFulansi","GA":"IGaboni","GB":"Umbuso Ohlangeneyo","GD":"I-Grenada","GE":"Georgia","GF":"French Guiana","GG":"Guernsey","GH":"IGana","GI":"Gibraltar","GL":"Greenland","GM":"Gambia","GN":"IGini","GP":"Guadeloupe","GQ":"IGini Enkabazwe","GR":"IGreki","GS":"South Georgia and the South Sandwich Islands","GT":"I-Guwathemala","GU":"Guam","GW":"IGini Bisawu","GY":"Guyana","HK":"Hong Kong","HM":"Heard Island and McDonald Islands","HN":"I-Hondurasi","HR":"IKrowati","HT":"Haiti","HU":"I-Hungariya","ID":"I-Indonesia","IE":"I-Ayilendi","IL":"Isreyili","IM":"Isle of Man","IN":"India","IO":"British Indian Ocean Territory","IQ":"I-Iraki","IR":"Iran, Islamic Republic of","IS":"I-Ayisilandi","IT":"ITaliya","JE":"Jersey","JM":"Jamaica","JO":"Jordan","JP":"IJaphani","KE":"IKenya","KG":"Kyrgyzstan","KH":"Cambodia","KI":"Kiribati","KM":"IsiKhomorosi","KN":"Saint Kitts and Nevis","KP":"North Korea","KR":"South Korea","KW":"Kuwait","KY":"Cayman Islands","KZ":"Kazakhstan","LA":"Lao People's Democratic Republic","LB":"Lebanon","LC":"Saint Lucia","LI":"Liechtenstein","LK":"Sri Lanka","LR":"ILiberia","LS":"OSotho","LT":"ILithuwaniya","LU":"I-Luxembourg","LV":"ILatviya","LY":"ILibiya","MA":"IMorokho","MC":"Monaco","MD":"Moldova","ME":"IMontenegro","MF":"Saint Martin (French part)","MG":"IMadagasika","MH":"Marshall Islands","MK":"North Macedonia","ML":"IMali","MM":"Myanmar","MN":"Mongolia","MO":"Macao","MP":"Northern Mariana Islands","MQ":"Martinique","MR":"IMoritaniya","MS":"Montserrat","MT":"IMalta","MU":"IMorishisi","MV":"Maldives","MW":"IMalawi","MX":"IMekisiko","MY":"Malaysia","MZ":"IMozambiki","NA":"INamibhiya","NC":"New Caledonia","NE":"INayighe","NF":"Norfolk Island","NG":"INigeria","NI":"Nicaragua","NL":"I-Netherlands","NO":"INoki","NP":"Nepal","NR":"Nauru","NU":"Niue","NZ":"INyuzilandi","OM":"Oman","PA":"Panama","PE":"I-Peru","PF":"French Polynesia","PG":"Papua New Guinea","PH":"Philippines","PK":"IPakistani","PL":"IPolandi","PM":"Saint Pierre and Miquelon","PN":"Pitcairn","PR":"Puerto Rico","PS":"Palestine, State of","PT":"IPhothugali","PW":"Palau","PY":"I-Paraguwayi","QA":"Qatar","RE":"IRiyunion","RO":"I-Romaniya","RS":"ISerbiya","RU":"Russian Federation","RW":"IRuwanda","SA":"Saudi Arabia","SB":"Solomon Islands","SC":"IsiSeyisheli","SD":"ISudan","SE":"ISwidi","SG":"Singapore","SH":"Saint Helena, Ascension and Tristan da Cunha","SI":"ISloveniya","SJ":"Svalbard and Jan Mayen","SK":"ISlovaki","SL":"ISiera Liyoni","SM":"USanti Marino","SN":"ISenegal","SO":"ISomalia","SR":"Suriname","SS":"ISudan yaseNingizimu","ST":"ISawu Tome noPhrinitshipeyi","SV":"El Salvador","SX":"Sint Maarten (Dutch part)","SY":"Syrian Arab Republic","SZ":"Eswatini","TC":"Turks and Caicos Islands","TD":"ITshedi","TF":"French Southern Territories","TG":"ITogo","TH":"I-Thayilandi","TJ":"Tajikistan","TK":"Tokelau","TL":"Timor-Leste","TM":"Turkmenistan","TN":"ITunisia","TO":"Tonga","TR":"ITheki","TT":"I-Trinidad ne Tobago","TV":"Tuvalu","TW":"I-Tayiwani","TZ":"ITanzania","UA":"I-Yukreyini","UG":"IYuganda","UM":"United States Minor Outlying Islands","US":"United States","UY":"I-Uruguwayi","UZ":"Uzbekistan","VA":"Holy See (Vatican City State)","VC":"Saint Vincent and the Grenadines","VE":"I-Venezuwela","VG":"Virgin Islands, British","VI":"Virgin Islands, U.S.","VN":"IViyetnami","VU":"Vanuatu","WF":"Wallis and Futuna","WS":"Samoa","YE":"IYemen","YT":"IMayotte","ZA":"IRiphabliki yaseNingizimu Afrika","ZM":"IZambiya","ZW":"IZimbabwe"}
|
@@ -50,15 +50,18 @@ module ISO3166
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def translations(locale = 'en')
|
53
|
-
|
53
|
+
locale = locale.downcase
|
54
|
+
file_path = ISO3166::Data.datafile_path(%W[locales #{locale}.json])
|
55
|
+
translations = JSON.parse(File.read(file_path))
|
54
56
|
|
55
|
-
custom_countries =
|
57
|
+
custom_countries = {}
|
58
|
+
(ISO3166::Data.codes - ISO3166::Data.loaded_codes).each do |code|
|
56
59
|
country = ISO3166::Country[code]
|
57
60
|
translation = country.translations[locale] || country.iso_short_name
|
58
|
-
[code
|
59
|
-
end
|
61
|
+
custom_countries[code] = translation
|
62
|
+
end
|
60
63
|
|
61
|
-
|
64
|
+
translations.merge(custom_countries)
|
62
65
|
end
|
63
66
|
|
64
67
|
def subdivisions(alpha2)
|
@@ -68,8 +71,7 @@ module ISO3166
|
|
68
71
|
|
69
72
|
def create_subdivisions(subdivision_data)
|
70
73
|
subdivision_data.each_with_object({}) do |(k, v), hash|
|
71
|
-
|
72
|
-
hash[k] = Subdivision.new(data)
|
74
|
+
hash[k] = Subdivision.new(v)
|
73
75
|
end
|
74
76
|
end
|
75
77
|
|
data/lib/countries/country.rb
CHANGED
@@ -64,13 +64,41 @@ module ISO3166
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
+
# @param types [Array<String>] The locale to use for translations.
|
68
|
+
# @return [Array<ISO3166::Subdivision>] the list of subdivisions of the given type(s) for this Country.
|
69
|
+
def subdivisions_of_types(types)
|
70
|
+
subdivisions.select{|k,v| types.include?(v.type)}
|
71
|
+
end
|
72
|
+
|
73
|
+
# @return [Array<String>] the list of subdivision types for this country
|
74
|
+
def subdivision_types
|
75
|
+
subdivisions.map{|k,v| v['type']}.uniq
|
76
|
+
end
|
77
|
+
|
78
|
+
# @return [Array<String>] the list of humanized subdivision types for this country. Uses ActiveSupport's `#humanize` if available
|
79
|
+
def humanized_subdivision_types
|
80
|
+
if String.instance_methods.include?(:humanize)
|
81
|
+
subdivisions.map{|k,v| v['type'].humanize}.uniq
|
82
|
+
else
|
83
|
+
subdivisions.map{|k,v| v['type'][0].upcase + v['type'].tr('_', ' ')[1..-1]}.uniq
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
67
87
|
# @param locale [String] The locale to use for translations.
|
68
88
|
# @return [Array<Array>] This Country's subdivision pairs of names and codes.
|
69
89
|
def subdivision_names_with_codes(locale = 'en')
|
70
90
|
subdivisions.map { |k, v| [v.translations[locale] || v.name, k] }
|
71
91
|
end
|
72
92
|
|
73
|
-
|
93
|
+
def states
|
94
|
+
if RUBY_VERSION =~ /^3\.\d\.\d/
|
95
|
+
warn "DEPRECATION WARNING: The Country#states method has been deprecated and will be removed in 6.0. Please use Country#subdivisions instead.", uplevel: 1, category: :deprecated
|
96
|
+
else
|
97
|
+
warn "DEPRECATION WARNING: The Country#states method has been deprecated and will be removed in 6.0. Please use Country#subdivisions instead.", uplevel: 1
|
98
|
+
end
|
99
|
+
|
100
|
+
subdivisions
|
101
|
+
end
|
74
102
|
|
75
103
|
# +true+ if this country is a member of the European Union.
|
76
104
|
def in_eu?
|
@@ -205,8 +233,6 @@ module ISO3166
|
|
205
233
|
# @!attribute world_region
|
206
234
|
# @return [String] The "World Region" this country is in: +"AMER"+ , +"APAC"+ or +"EMEA"+
|
207
235
|
|
208
|
-
|
209
|
-
|
210
236
|
private
|
211
237
|
|
212
238
|
def reload
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
'02':
|
3
3
|
name: Canillo
|
4
|
-
code:
|
4
|
+
code: '02'
|
5
5
|
unofficial_names: Canillo
|
6
6
|
geo:
|
7
7
|
latitude: 42.5666535
|
@@ -13,9 +13,10 @@
|
|
13
13
|
translations:
|
14
14
|
en: Canillo
|
15
15
|
comments:
|
16
|
+
type: parish
|
16
17
|
'03':
|
17
18
|
name: Encamp
|
18
|
-
code:
|
19
|
+
code: '03'
|
19
20
|
unofficial_names: Encamp
|
20
21
|
geo:
|
21
22
|
latitude: 42.5362652
|
@@ -27,9 +28,10 @@
|
|
27
28
|
translations:
|
28
29
|
en: Encamp
|
29
30
|
comments:
|
31
|
+
type: parish
|
30
32
|
'04':
|
31
33
|
name: La Massana
|
32
|
-
code:
|
34
|
+
code: '04'
|
33
35
|
unofficial_names: La Massana
|
34
36
|
geo:
|
35
37
|
latitude: 42.545625
|
@@ -41,9 +43,10 @@
|
|
41
43
|
translations:
|
42
44
|
en: La Massana
|
43
45
|
comments:
|
46
|
+
type: parish
|
44
47
|
'05':
|
45
48
|
name: Ordino
|
46
|
-
code:
|
49
|
+
code: '05'
|
47
50
|
unofficial_names: Ordino
|
48
51
|
geo:
|
49
52
|
latitude: 42.5556547
|
@@ -55,9 +58,10 @@
|
|
55
58
|
translations:
|
56
59
|
en: Ordino
|
57
60
|
comments:
|
61
|
+
type: parish
|
58
62
|
'06':
|
59
63
|
name: Sant Julià de Lòria
|
60
|
-
code:
|
64
|
+
code: '06'
|
61
65
|
unofficial_names:
|
62
66
|
- Saint Julia de Loria
|
63
67
|
geo:
|
@@ -70,9 +74,10 @@
|
|
70
74
|
translations:
|
71
75
|
en: Sant Julià de Lòria
|
72
76
|
comments:
|
77
|
+
type: parish
|
73
78
|
'07':
|
74
79
|
name: Andorra la Vella
|
75
|
-
code:
|
80
|
+
code: '07'
|
76
81
|
unofficial_names:
|
77
82
|
- Andorra la Vieja
|
78
83
|
- Andorre-la-Vieille
|
@@ -86,9 +91,10 @@
|
|
86
91
|
translations:
|
87
92
|
en: Andorra la Vella
|
88
93
|
comments:
|
94
|
+
type: parish
|
89
95
|
'08':
|
90
96
|
name: Escaldes-Engordany
|
91
|
-
code:
|
97
|
+
code: '08'
|
92
98
|
unofficial_names:
|
93
99
|
- Les Escaldes
|
94
100
|
geo:
|
@@ -101,3 +107,4 @@
|
|
101
107
|
translations:
|
102
108
|
en: Escaldes-Engordany
|
103
109
|
comments:
|
110
|
+
type: parish
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
AJ:
|
3
3
|
name: "'Ajmān"
|
4
|
-
code:
|
4
|
+
code: AJ
|
5
5
|
unofficial_names: "-إمارة عجمانّ - Ujman"
|
6
6
|
geo:
|
7
7
|
latitude: 25.3995
|
@@ -74,9 +74,10 @@ AJ:
|
|
74
74
|
'no': Emiratet Ajman
|
75
75
|
yo_BJ: Ajman
|
76
76
|
comments:
|
77
|
+
type: emirate
|
77
78
|
AZ:
|
78
79
|
name: Abū Z̧aby [Abu Dhabi]
|
79
|
-
code:
|
80
|
+
code: AZ
|
80
81
|
unofficial_names:
|
81
82
|
- أبو ظبي
|
82
83
|
- Abu Zabi
|
@@ -157,9 +158,10 @@ AZ:
|
|
157
158
|
mk: Абу Даби
|
158
159
|
'no': Emiratet Abu Dhabi
|
159
160
|
comments:
|
161
|
+
type: emirate
|
160
162
|
DU:
|
161
163
|
name: Dubayy
|
162
|
-
code:
|
164
|
+
code: DU
|
163
165
|
unofficial_names:
|
164
166
|
- دبي
|
165
167
|
- Dubai
|
@@ -232,9 +234,10 @@ DU:
|
|
232
234
|
bs: Dubai
|
233
235
|
'no': Emiratet Dubai
|
234
236
|
comments:
|
237
|
+
type: emirate
|
235
238
|
FU:
|
236
239
|
name: Al Fujayrah
|
237
|
-
code:
|
240
|
+
code: FU
|
238
241
|
unofficial_names:
|
239
242
|
- الفجيرة
|
240
243
|
- Al Fujayrah
|
@@ -309,9 +312,10 @@ FU:
|
|
309
312
|
'no': Emiratet Fujairah
|
310
313
|
yo_BJ: Fujairah
|
311
314
|
comments:
|
315
|
+
type: emirate
|
312
316
|
RK:
|
313
317
|
name: Ra's al Khaymah
|
314
|
-
code:
|
318
|
+
code: RK
|
315
319
|
unofficial_names:
|
316
320
|
- إمارة رأس الخيمة
|
317
321
|
- Ras al-Khaimah
|
@@ -385,9 +389,10 @@ RK:
|
|
385
389
|
'no': Emiratet Ras al-Khaimah
|
386
390
|
yo_BJ: Ras al Khaimah
|
387
391
|
comments:
|
392
|
+
type: emirate
|
388
393
|
SH:
|
389
394
|
name: Ash Shariqah [Sharjah]
|
390
|
-
code:
|
395
|
+
code: SH
|
391
396
|
unofficial_names:
|
392
397
|
- إمارة الشارقةّ
|
393
398
|
- Ash Shariqah
|
@@ -462,9 +467,10 @@ SH:
|
|
462
467
|
'no': Emiratet Sharjah
|
463
468
|
yo_BJ: Sharjah
|
464
469
|
comments:
|
470
|
+
type: emirate
|
465
471
|
UQ:
|
466
472
|
name: Umm al Qaywayn
|
467
|
-
code:
|
473
|
+
code: UQ
|
468
474
|
unofficial_names:
|
469
475
|
- أمّ القيوين
|
470
476
|
- Umm al-Quwain
|
@@ -537,3 +543,4 @@ UQ:
|
|
537
543
|
'no': Emiratet Umm al-Qaiwain
|
538
544
|
yo_BJ: Um Al Quwain
|
539
545
|
comments:
|
546
|
+
type: emirate
|