debian-mirror-gitlab/config/initializers/countries.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
1 KiB
Ruby
Raw Normal View History

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
ISO3166::Data.register(
2023-04-23 21:23:45 +05:30
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' })
2019-12-04 20:38:33 +05:30
)