lib/emojidex/data/utf.rb in emojidex-0.2.0 vs lib/emojidex/data/utf.rb in emojidex-0.2.1

- old
+ new

@@ -8,10 +8,11 @@ include Emojidex::Data::StaticCollection def initialize(opts = {}) super(opts) @endpoint = 'utf_emoji' - load_from_server unless check_and_load_static('utf') + @locale = opts[:locale] || Emojidex::Defaults.locale + load_from_server((opts[:detailed] || true), @locale) unless check_and_load_static('utf') @emoji end end end end