Sha256: fa87a8b9933e0ba95665bfb8e6115c42cd5de9a1b59f5bae2b921ccb47b5f963

Contents?: true

Size: 284 Bytes

Versions: 17

Compression:

Stored size: 284 Bytes

Contents

# See the Pagy documentation: https://ddnexus.github.io/pagy/extras/i18n

class Pagy
  # Use ::I18n gem
  module Frontend

    ::I18n.load_path << Pagy.root.join('locales', 'pagy.yml')

    # Override the built-in pagy_t
    def pagy_t(*args)
      ::I18n.t(*args)
    end

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pagy-0.19.4 lib/pagy/extras/i18n.rb
pagy-0.19.3 lib/pagy/extras/i18n.rb
pagy-0.19.2 lib/pagy/extras/i18n.rb
pagy-0.19.1 lib/pagy/extras/i18n.rb
pagy-0.19.0 lib/pagy/extras/i18n.rb
pagy-0.18.0 lib/pagy/extras/i18n.rb
pagy-0.17.0 lib/pagy/extras/i18n.rb
pagy-0.16.0 lib/pagy/extras/i18n.rb
pagy-0.15.1 lib/pagy/extras/i18n.rb
pagy-0.15.0 lib/pagy/extras/i18n.rb
pagy-0.14.0 lib/pagy/extras/i18n.rb
pagy-0.13.1 lib/pagy/extras/i18n.rb
pagy-0.13.0 lib/pagy/extras/i18n.rb
pagy-0.12.0 lib/pagy/extras/i18n.rb
pagy-0.11.2 lib/pagy/extras/i18n.rb
pagy-0.11.1 lib/pagy/extras/i18n.rb
pagy-0.11.0 lib/pagy/extras/i18n.rb