WorldFlags.auto_select! # = false to disable # cc_en = 'app/config/country_codes/iso-3166-2.en.json' # cc_path = File.join(Rails.root, cc_en) # country_codes_en = JSON.parse File.read(cc_path) # WorldFlags.languages = some_language_hash # fx loaded from a yaml file # WorldFlags.countries = some_country_hash # fx loaded from a yaml file # WorldFlags.active_locales = [:en, :da] # WorldFlags.locale_flag_map = some hash