Sha256: 1af7b80286089783ced6106745a5492db3d1ee7412bffd773d89465d0a81556e

Contents?: true

Size: 292 Bytes

Versions: 3

Compression:

Stored size: 292 Bytes

Contents

# frozen_string_literal: true

require "dato/utils/meta_tags/base"

module Dato
  module Utils
    module MetaTags
      class OgLocale < Base
        def build
          locale = I18n.locale
          og_tag("og:locale", "#{locale}_#{locale.upcase}")
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dato-0.8.3 lib/dato/utils/meta_tags/og_locale.rb
dato-0.8.2 lib/dato/utils/meta_tags/og_locale.rb
dato-0.8.1 lib/dato/utils/meta_tags/og_locale.rb