def tml_language_selector_tag(type = nil, opts = {})
      return unless Tml.config.enabled?

      type ||= :default
      type = :dropdown if type == :select

      opts = opts.collect{|key, value| "data-tml-#{key}='#{value}'"}.join(' ')
      "<div data-tml-language-selector='#{type}' #{opts}></div>".html_safe
    end
def tml_language_selector_tag(type = nil, opts = {})
      return unless Tml.config.enabled?

      type ||= :default
      type = :dropdown if type == :select

      opts = opts.collect{|key, value| "data-tml-#{key}='#{value}'"}.join(' ')
      "<div data-tml-language-selector='#{type}' #{opts}></div>".html_safe
    end
Returns language selector UI