Sha256: 0d41ddad92fdf6d67c2090c9070c9a44b7093c157decd92de5f5b3e69cfba807

Contents?: true

Size: 625 Bytes

Versions: 13

Compression:

Stored size: 625 Bytes

Contents

require 'pageflow/public_i18n/engine'
require 'pageflow/public_i18n/version'

module Pageflow
  module PublicI18n
    def self.text_direction(locale)
      ['ar', 'fa-IR'].include?(locale.to_s) ? 'rtl' : 'ltr'
    end

    def self.available_locales
      [
        :ar,
        :bg,
        :'cs-CZ',
        :de,
        :el,
        :en,
        :es,
        :'fa-IR',
        :fr,
        :gn,
        :id,
        :it,
        :ja,
        :ms,
        :nl,
        :no,
        :'nl-BE',
        :'pl-PL',
        :'pt-BR',
        :rm,
        :'ru-RU',
        :sr,
        :tr,
        :zh
      ]
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pageflow-public-i18n-1.28.0 lib/pageflow-public-i18n.rb
pageflow-public-i18n-1.27.0 lib/pageflow-public-i18n.rb
pageflow-public-i18n-1.26.0 lib/pageflow-public-i18n.rb
pageflow-public-i18n-1.25.0 lib/pageflow-public-i18n.rb
pageflow-public-i18n-1.24.0 lib/pageflow-public-i18n.rb
pageflow-public-i18n-1.23.0 lib/pageflow-public-i18n.rb
pageflow-public-i18n-1.22.1 lib/pageflow-public-i18n.rb
pageflow-public-i18n-1.22.0 lib/pageflow-public-i18n.rb
pageflow-public-i18n-1.21.0 lib/pageflow-public-i18n.rb
pageflow-public-i18n-1.20.0 lib/pageflow-public-i18n.rb
pageflow-public-i18n-1.19.2 lib/pageflow-public-i18n.rb
pageflow-public-i18n-1.19.1 lib/pageflow-public-i18n.rb
pageflow-public-i18n-1.19.0 lib/pageflow-public-i18n.rb