Sha256: 4d3f296ccb0b27bdd15811394ef452487c3c4e9ef33e3677344472a0a2abe8cd

Contents?: true

Size: 153 Bytes

Versions: 2

Compression:

Stored size: 153 Bytes

Contents

module CountrySelect
  FORMATS = {}

  FORMATS[:default] = lambda do |country|
    country.translations&.dig(I18n.locale.to_s) || country.name
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
country_select-5.0.0 lib/country_select/formats.rb
country_select-5.0.0.pre lib/country_select/formats.rb