Welcome to mirror list, hosted at ThFree Co, Russian Federation.

countries.rb « initializers « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 52537b5d885d28e17f796dd5e863fc2f3b003e92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# frozen_string_literal: true

ISO3166.configure do |config|
  config.locales = [:en]
end

# 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
# To be removed after https://gitlab.com/gitlab-org/gitlab/issues/14784 is implemented
# Data fetched is based on https://github.com/hexorx/countries/blob/master/lib/countries/data/countries/UA.yaml
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",
  name: "Ukraine (except the Crimea, Donetsk, and Luhansk regions)",
  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"
)