44eb0ada4f
Kosovo is not part of ISO 3166 as of time of writing. https://en.wikipedia.org/wiki/ISO_3166-2:RS#cite_ref-1
16 lines
371 B
Ruby
16 lines
371 B
Ruby
class CountriesService
|
|
def self.get(locale)
|
|
I18nData.countries(locale).merge(get_localized_additional_countries(locale))
|
|
end
|
|
|
|
def self.get_localized_additional_countries(locale)
|
|
additional_countries[locale.to_s.upcase] || {}
|
|
end
|
|
|
|
def self.additional_countries
|
|
{
|
|
'FR' => { 'XK' => 'Kosovo' },
|
|
'EN' => { 'XK' => 'Kosovo' }
|
|
}
|
|
end
|
|
end
|