worldwide 0.12.2 → 0.13.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 +7 -0
- data/Gemfile.lock +1 -1
- data/data/other/currency/locales/{bg-BG.yml → bg.yml} +1 -1
- data/data/other/currency/locales/{hr-HR.yml → hr.yml} +1 -1
- data/data/other/currency/locales/{lt-LT.yml → lt.yml} +1 -1
- data/data/other/currency/locales/{ro-RO.yml → ro.yml} +1 -1
- data/data/other/currency/locales/{sk-SK.yml → sk.yml} +1 -1
- data/data/other/currency/locales/{sl-SI.yml → sl.yml} +1 -1
- data/data/other/hand_translated/{bg-BG.yml → bg.yml} +1 -1
- data/data/other/hand_translated/{hr-HR.yml → hr.yml} +1 -1
- data/data/other/hand_translated/{lt-LT.yml → lt.yml} +1 -1
- data/data/other/hand_translated/{ro-RO.yml → ro.yml} +1 -1
- data/data/other/hand_translated/{sk-SK.yml → sk.yml} +1 -1
- data/data/other/hand_translated/{sl-SI.yml → sl.yml} +1 -1
- data/data/other/territories/{bg-BG.yml → bg.yml} +1 -1
- data/data/other/territories/{hr-HR.yml → hr.yml} +1 -1
- data/data/other/territories/{lt-LT.yml → lt.yml} +1 -1
- data/data/other/territories/{ro-RO.yml → ro.yml} +1 -1
- data/data/other/territories/{sk-SK.yml → sk.yml} +1 -1
- data/data/other/territories/{sl-SI.yml → sl.yml} +1 -1
- data/data/other/timezones/{bg-BG.yml → bg.yml} +1 -1
- data/data/other/timezones/{hr-HR.yml → hr.yml} +1 -1
- data/data/other/timezones/{lt-LT.yml → lt.yml} +1 -1
- data/data/other/timezones/{ro-RO.yml → ro.yml} +1 -1
- data/data/other/timezones/{sk-SK.yml → sk.yml} +1 -1
- data/data/other/timezones/{sl-SI.yml → sl.yml} +1 -1
- data/data/other/units/{bg-BG.yml → bg.yml} +1 -1
- data/data/other/units/{hr-HR.yml → hr.yml} +1 -1
- data/data/other/units/{lt-LT.yml → lt.yml} +1 -1
- data/data/other/units/{ro-RO.yml → ro.yml} +1 -1
- data/data/other/units/{sk-SK.yml → sk.yml} +1 -1
- data/data/other/units/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/AE/{bg-BG.yml → bg.yml} +4 -2
- data/db/data/regions/AE/cs.yml +3 -1
- data/db/data/regions/AE/da.yml +3 -1
- data/db/data/regions/AE/de.yml +3 -1
- data/db/data/regions/AE/el.yml +3 -1
- data/db/data/regions/AE/en.yml +3 -1
- data/db/data/regions/AE/es.yml +3 -1
- data/db/data/regions/AE/fi.yml +3 -1
- data/db/data/regions/AE/fr.yml +3 -1
- data/db/data/regions/AE/hi.yml +3 -1
- data/db/data/regions/AE/{hr-HR.yml → hr.yml} +4 -2
- data/db/data/regions/AE/hu.yml +3 -1
- data/db/data/regions/AE/id.yml +3 -1
- data/db/data/regions/AE/it.yml +3 -1
- data/db/data/regions/AE/ja.yml +3 -1
- data/db/data/regions/AE/ko.yml +3 -1
- data/db/data/regions/AE/{lt-LT.yml → lt.yml} +4 -2
- data/db/data/regions/AE/ms.yml +2 -0
- data/db/data/regions/AE/nb.yml +3 -1
- data/db/data/regions/AE/nl.yml +3 -1
- data/db/data/regions/AE/pl.yml +3 -1
- data/db/data/regions/AE/pt-BR.yml +3 -1
- data/db/data/regions/AE/pt-PT.yml +3 -1
- data/db/data/regions/AE/{ro-RO.yml → ro.yml} +4 -2
- data/db/data/regions/AE/ru.yml +3 -1
- data/db/data/regions/AE/{sk-SK.yml → sk.yml} +4 -2
- data/db/data/regions/AE/{sl-SI.yml → sl.yml} +4 -2
- data/db/data/regions/AE/sv.yml +3 -1
- data/db/data/regions/AE/th.yml +3 -1
- data/db/data/regions/AE/tr.yml +3 -1
- data/db/data/regions/AE/vi.yml +3 -1
- data/db/data/regions/AE/zh-CN.yml +3 -1
- data/db/data/regions/AE/zh-TW.yml +3 -1
- data/db/data/regions/AE.yml +3 -2
- data/db/data/regions/AR/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/AR/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/AR/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/AR/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/AR/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/AR/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/AT/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/AT/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/AT/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/AT/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/AT/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/AT/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/AU/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/AU/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/AU/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/AU/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/AU/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/AU/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/AZ/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/AZ/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/AZ/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/AZ/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/AZ/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/AZ/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/BD/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/BD/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/BD/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/BD/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/BD/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/BD/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/BR/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/BR/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/BR/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/BR/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/BR/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/BR/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/CA/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/CA/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/CA/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/CA/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/CA/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/CA/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/CH/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/CH/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/CH/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/CH/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/CH/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/CH/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/CL/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/CL/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/CL/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/CL/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/CL/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/CL/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/CN/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/CN/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/CN/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/CN/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/CN/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/CN/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/CO/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/CO/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/CO/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/CO/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/CO/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/CO/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/CR/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/CR/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/CR/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/CR/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/CR/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/CR/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/DE/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/DE/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/DE/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/DE/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/DE/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/DE/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/DK/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/DK/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/DK/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/DK/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/DK/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/DK/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/DZ/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/DZ/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/DZ/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/DZ/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/DZ/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/DZ/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/EG/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/EG/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/EG/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/EG/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/EG/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/EG/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/ES/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/ES/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/ES/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/ES/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/ES/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/ES/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/GB/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/GB/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/GB/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/GB/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/GB/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/GB/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/GI/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/GI/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/GI/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/GI/{sl-SI.yml → ro.yml} +1 -1
- data/db/data/regions/GI/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/GI/{ro-RO.yml → sl.yml} +1 -1
- data/db/data/regions/GS/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/GS/{sk-SK.yml → hr.yml} +1 -1
- data/db/data/regions/GS/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/GS/{hr-HR.yml → ro.yml} +1 -1
- data/db/data/regions/GS/{sl-SI.yml → sk.yml} +1 -1
- data/db/data/regions/GS/{ro-RO.yml → sl.yml} +1 -1
- data/db/data/regions/HK/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/HK/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/HK/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/HK/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/HK/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/HK/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/ID/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/ID/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/ID/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/ID/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/ID/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/ID/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/IE/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/IE/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/IE/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/IE/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/IE/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/IE/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/IL/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/IL/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/IL/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/IL/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/IL/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/IL/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/IN/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/IN/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/IN/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/IN/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/IN/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/IN/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/IT/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/IT/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/IT/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/IT/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/IT/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/IT/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/JP/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/JP/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/JP/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/JP/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/JP/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/JP/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/KR/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/KR/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/KR/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/KR/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/KR/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/KR/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/KW/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/KW/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/KW/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/KW/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/KW/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/KW/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/LA/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/LA/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/LA/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/LA/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/LA/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/LA/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/LK/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/LK/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/LK/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/LK/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/LK/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/LK/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/MC/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/MC/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/MC/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/MC/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/MC/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/MC/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/MO/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/MO/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/MO/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/MO/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/MO/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/MO/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/MX/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/MX/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/MX/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/MX/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/MX/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/MX/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/MY/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/MY/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/MY/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/MY/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/MY/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/MY/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/NG/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/NG/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/NG/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/NG/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/NG/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/NG/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/NL/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/NL/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/NL/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/NL/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/NL/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/NL/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/NO/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/NO/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/NO/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/NO/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/NO/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/NO/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/NZ/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/NZ/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/NZ/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/NZ/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/NZ/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/NZ/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/PH.yml +1 -1
- data/db/data/regions/PN/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/PN/{sk-SK.yml → hr.yml} +1 -1
- data/db/data/regions/PN/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/PN/{hr-HR.yml → ro.yml} +1 -1
- data/db/data/regions/PN/{sl-SI.yml → sk.yml} +1 -1
- data/db/data/regions/PN/{ro-RO.yml → sl.yml} +1 -1
- data/db/data/regions/RO/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/RO/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/RO/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/RO/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/RO/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/RO/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/SE/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/SE/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/SE/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/SE/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/SE/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/SE/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/SG/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/SG/{sk-SK.yml → hr.yml} +1 -1
- data/db/data/regions/SG/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/SG/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/SG/{hr-HR.yml → sk.yml} +1 -1
- data/db/data/regions/SG/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/SV/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/SV/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/SV/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/SV/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/SV/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/SV/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/TA/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/TA/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/TA/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/TA/{sl-SI.yml → ro.yml} +1 -1
- data/db/data/regions/TA/{ro-RO.yml → sk.yml} +1 -1
- data/db/data/regions/TA/{sk-SK.yml → sl.yml} +1 -1
- data/db/data/regions/TH/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/TH/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/TH/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/TH/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/TH/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/TH/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/TR/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/TR/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/TR/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/TR/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/TR/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/TR/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/TW/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/TW/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/TW/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/TW/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/TW/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/TW/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/US/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/US/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/US/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/US/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/US/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/US/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/UY/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/UY/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/UY/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/UY/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/UY/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/UY/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/VA/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/VA/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/VA/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/VA/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/VA/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/VA/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/VN/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/VN/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/VN/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/VN/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/VN/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/VN/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/XK/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/XK/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/XK/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/XK/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/XK/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/XK/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/ZA/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/ZA/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/ZA/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/ZA/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/ZA/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/ZA/{sl-SI.yml → sl.yml} +1 -1
- data/db/data/regions/_default/{bg-BG.yml → bg.yml} +1 -1
- data/db/data/regions/_default/{hr-HR.yml → hr.yml} +1 -1
- data/db/data/regions/_default/{lt-LT.yml → lt.yml} +1 -1
- data/db/data/regions/_default/{ro-RO.yml → ro.yml} +1 -1
- data/db/data/regions/_default/{sk-SK.yml → sk.yml} +1 -1
- data/db/data/regions/_default/{sl-SI.yml → sl.yml} +1 -1
- data/lib/worldwide/address.rb +79 -2
- data/lib/worldwide/version.rb +1 -1
- data/translation.yml +1 -1
- metadata +368 -368
data/lib/worldwide/address.rb
CHANGED
@@ -11,7 +11,10 @@ module Worldwide
|
|
11
11
|
:city,
|
12
12
|
:province_code,
|
13
13
|
:country_code,
|
14
|
-
:phone
|
14
|
+
:phone,
|
15
|
+
:street_name,
|
16
|
+
:street_number,
|
17
|
+
:neighborhood
|
15
18
|
|
16
19
|
def initialize(
|
17
20
|
first_name: nil,
|
@@ -23,7 +26,10 @@ module Worldwide
|
|
23
26
|
city: nil,
|
24
27
|
province_code: nil,
|
25
28
|
country_code: "ZZ", # Unknown region
|
26
|
-
phone: nil
|
29
|
+
phone: nil,
|
30
|
+
street_name: nil,
|
31
|
+
street_number: nil,
|
32
|
+
neighborhood: nil
|
27
33
|
)
|
28
34
|
@first_name = first_name
|
29
35
|
@last_name = last_name
|
@@ -35,6 +41,9 @@ module Worldwide
|
|
35
41
|
@province_code = province_code&.to_s&.upcase
|
36
42
|
@country_code = country_code.to_s.upcase
|
37
43
|
@phone = phone
|
44
|
+
@street_name = street_name
|
45
|
+
@street_number = street_number
|
46
|
+
@neighborhood = neighborhood
|
38
47
|
end
|
39
48
|
|
40
49
|
def errors
|
@@ -133,8 +142,39 @@ module Worldwide
|
|
133
142
|
Util.blank?(errors)
|
134
143
|
end
|
135
144
|
|
145
|
+
RESERVED_DELIMITER = "\u00A0"
|
146
|
+
def concatenated_address1
|
147
|
+
return address1 if address1.present?
|
148
|
+
|
149
|
+
additional_fields = region.additional_address_fields["address1"] || []
|
150
|
+
concatenate_fields(additional_fields)
|
151
|
+
end
|
152
|
+
|
153
|
+
def concatenated_address2
|
154
|
+
additional_fields = region.additional_address_fields["address2"] || []
|
155
|
+
concatenate_fields(additional_fields)
|
156
|
+
end
|
157
|
+
|
158
|
+
def split_address1
|
159
|
+
additional_fields = region.additional_address_fields["address1"] || []
|
160
|
+
split_fields_arr = address1&.split(RESERVED_DELIMITER) || []
|
161
|
+
split_fields(additional_fields, split_fields_arr)
|
162
|
+
end
|
163
|
+
|
164
|
+
def split_address2
|
165
|
+
additional_fields = region.additional_address_fields["address2"] || []
|
166
|
+
split_fields_arr = address2&.split(RESERVED_DELIMITER) || []
|
167
|
+
split_fields(additional_fields, split_fields_arr)
|
168
|
+
end
|
169
|
+
|
136
170
|
private
|
137
171
|
|
172
|
+
def region
|
173
|
+
return @region if defined?(@region)
|
174
|
+
|
175
|
+
@region = Worldwide.region(code: country_code)
|
176
|
+
end
|
177
|
+
|
138
178
|
LINE_SEP = "_"
|
139
179
|
private_constant :LINE_SEP
|
140
180
|
WORD_SEP = " "
|
@@ -414,5 +454,42 @@ module Worldwide
|
|
414
454
|
stripped
|
415
455
|
end
|
416
456
|
end
|
457
|
+
|
458
|
+
def concatenate_fields(fields)
|
459
|
+
concatenated_field = ""
|
460
|
+
fields.each_with_index do |field, i|
|
461
|
+
field_value = send(field["key"].underscore.to_sym)
|
462
|
+
next if field_value.blank?
|
463
|
+
|
464
|
+
delimiter = concatenation_delimiter(concatenated_field, field["decorator"], i)
|
465
|
+
concatenated_field += delimiter + field_value
|
466
|
+
end
|
467
|
+
|
468
|
+
concatenated_field
|
469
|
+
end
|
470
|
+
|
471
|
+
def concatenation_delimiter(concatenated_field, decorator, field_index)
|
472
|
+
if field_index == 0
|
473
|
+
""
|
474
|
+
else
|
475
|
+
concatenated_field.blank? ? RESERVED_DELIMITER : "#{decorator}#{RESERVED_DELIMITER}"
|
476
|
+
end
|
477
|
+
end
|
478
|
+
|
479
|
+
def split_fields(field_definitions, field_values)
|
480
|
+
return if field_definitions.empty?
|
481
|
+
|
482
|
+
field_definitions.each_with_index.with_object({}) do |(field, i), split_fields|
|
483
|
+
next unless field_values[i].present?
|
484
|
+
|
485
|
+
field_name = field["key"].underscore
|
486
|
+
split_fields[field_name] = strip_decorators(field_definitions[i + 1], field_values[i])
|
487
|
+
end
|
488
|
+
end
|
489
|
+
|
490
|
+
def strip_decorators(next_field_definition, current_field_value)
|
491
|
+
delimiter = next_field_definition&.fetch("decorator", nil) || ""
|
492
|
+
current_field_value&.delete_suffix(delimiter)
|
493
|
+
end
|
417
494
|
end
|
418
495
|
end
|
data/lib/worldwide/version.rb
CHANGED
data/translation.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
source_language: en
|
2
|
-
target_languages: [bg
|
2
|
+
target_languages: [bg, cs, da, de, el, es, fi, fr, hi, hr, hu, id, it, ja, ko, lt, ms, nb, nl, pl, pt-BR, pt-PT, ro, ru, sk, sl, sv, th, tr, vi, zh-CN, zh-TW]
|
3
3
|
async_pr_mode: per_pr
|
4
4
|
components:
|
5
5
|
- name: 'buyer'
|