blob: 98d06c9a893601a3d27e3d040bb5caedcc9588c7 (
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
|
# 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
ISO3166::Data.register(
ISO3166::Data.new('UA')
.call
.deep_symbolize_keys
.merge({ name: 'Ukraine (except the Crimea, Donetsk, and Luhansk regions)' })
)
# Updating the display name of Taiwan, from `Taiwan, Province of China` to `Taiwan`
# See issue: https://gitlab.com/gitlab-org/gitlab/-/issues/349333
ISO3166::Data.register(
ISO3166::Data.new('TW')
.call
.deep_symbolize_keys
.merge({ name: 'Taiwan' })
)
|