Sha256: f396ccdc76c13880a677006f7d8515e0e4489538f0667a6d4d7e47d5d791da5d

Contents?: true

Size: 292 Bytes

Versions: 26

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

26 entries across 26 versions & 1 rubygems

Version Path
dato-0.6.16 lib/dato/utils/meta_tags/og_locale.rb
dato-0.6.15 lib/dato/utils/meta_tags/og_locale.rb
dato-0.6.14 lib/dato/utils/meta_tags/og_locale.rb
dato-0.6.12 lib/dato/utils/meta_tags/og_locale.rb
dato-0.6.11 lib/dato/utils/meta_tags/og_locale.rb
dato-0.6.10 lib/dato/utils/meta_tags/og_locale.rb