def language_support(f, attribute, options)
      return if Fae.languages.blank?

      attribute_array = attribute.to_s.split('_')
      language_suffix = attribute_array.pop
      return unless Fae.languages.has_key?(language_suffix.to_sym) || Fae.languages.has_key?(language_suffix)

      label = attribute_array.push("(#{language_suffix})").join(' ').titleize
      options[:label] = label unless options[:label].present?

      if options[:wrapper_html].present?
        options[:wrapper_html].deep_merge!({ data: { language: language_suffix } })
      else
        options[:wrapper_html] = { data: { language: language_suffix } }
      end
    end
def language_support(f, attribute, options)
      return if Fae.languages.blank?

      attribute_array = attribute.to_s.split('_')
      language_suffix = attribute_array.pop
      return unless Fae.languages.has_key?(language_suffix.to_sym) || Fae.languages.has_key?(language_suffix)

      label = attribute_array.push("(#{language_suffix})").join(' ').titleize
      options[:label] = label unless options[:label].present?

      if options[:wrapper_html].present?
        options[:wrapper_html].deep_merge!({ data: { language: language_suffix } })
      else
        options[:wrapper_html] = { data: { language: language_suffix } }
      end
    end
def language_support ( f , attribute , options ) return if Fae . languages . blank? attribute_array = attribute . to_s . split ( '_' ) language_suffix = attribute_array . pop return unless Fae . languages . has_key? ( language_suffix . to_sym ) || Fae . languages . has_key? ( language_suffix ) label = attribute_array . push ( "(#{language_suffix})" ) . join ( ' ' ) . titleize options [ :label ] = label unless options [ :label ] . present? if options [ :wrapper_html ] . present? options [ :wrapper_html ] . deep_merge! ( { data : { language : language_suffix } } ) else options [ :wrapper_html ] = { data : { language : language_suffix } } end end
removes language suffix from label and adds data attr for languange nav
removes language suffix from label and adds data attr for languange nav