2019-12-04 20:38:33 +05:30
# frozen_string_literal: true
ISO3166 . configure do | config |
config . locales = [ :en ]
end
2022-11-25 23:54:43 +05:30
# GitLab permits users to sign up in Ukraine except for the regions: Crimea, Donetsk, and Luhansk: https://about.gitlab.com/handbook/people-operations/code-of-conduct/#trade-compliance-exportimport-control
# This overrides the display name for Ukraine to 'Ukraine (except the Crimea, Donetsk, and Luhansk regions)'
# See: https://gitlab.com/gitlab-org/gitlab/-/issues/374946
2019-12-04 20:38:33 +05:30
# To be removed after https://gitlab.com/gitlab-org/gitlab/issues/14784 is implemented
2023-03-04 22:38:38 +05:30
# Data fetched is based on https://github.com/countries/countries/blob/master/lib/countries/data/countries/UA.yaml
2019-12-04 20:38:33 +05:30
ISO3166 :: Data . register (
continent : " Europe " ,
address_format : " |-
{ { recipient } }
{ { street } }
{ { city } } { { region_short } }
{ { postalcode } }
{ { country } } " ,
alpha2 : " UA " ,
alpha3 : " UKR " ,
country_code : '380' ,
international_prefix : '810' ,
ioc : " UKR " ,
gec : " UP " ,
2022-11-25 23:54:43 +05:30
name : " Ukraine (except the Crimea, Donetsk, and Luhansk regions) " ,
2019-12-04 20:38:33 +05:30
national_destination_code_lengths : [ 2 ] ,
national_number_lengths : [ 8 , 9 ] ,
national_prefix : '8' ,
number : '804' ,
region : " Europe " ,
subregion : " Eastern Europe " ,
world_region : " EMEA " ,
un_locode : " UA " ,
nationality : " Ukrainian " ,
vat_rates : {
standard : 20
} ,
reduced : [ 7 ] ,
super_reduced : {
parking : { postal_code : true }
} ,
unofficial_names : %w( Ukraine Ucrania ウクライナ Oekraïne Украина Україна Украіна ) ,
languages_official : [ " uk " ] ,
languages_spoken : [ " uk " ] ,
geo : {
latitude : 48 . 379433 ,
latitude_dec : '48.92656326293945' ,
longitude : 31 . 16558 ,
longitude_dec : '31.47578239440918' ,
max_latitude : 52 . 37958099999999 ,
max_longitude : 40 . 2285809 ,
min_latitude : 44 . 2924 ,
min_longitude : 22 . 137159 ,
bounds : {
northeast : { lat : 52 . 37958099999999 , lng : 40 . 2285809 } ,
southwest : { lat : 44 . 2924 , lng : 22 . 137159 }
}
} ,
currency_code : " UAH " ,
start_of_week : " monday "
)