Sha256: 45ddf2d7f62db17e1beef74ce929aed98d0749ac241d021fff45d8370c0577f0
Contents?: true
Size: 484 Bytes
Versions: 3
Compression:
Stored size: 484 Bytes
Contents
# See the Pagy documentation: https://ddnexus.github.io/pagy/extras/i18n # encoding: utf-8 # frozen_string_literal: true class Pagy # Use ::I18n gem module Frontend ::I18n.load_path += Dir[Pagy.root.join('locales', '*.yml')] Pagy::I18n.clear.instance_eval { undef :load; undef :t } # unload the pagy default constant for efficiency alias :pagy_without_i18n :pagy_t def pagy_t_with_i18n(*args) ::I18n.t(*args) end alias :pagy_t :pagy_t_with_i18n end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pagy-3.2.0 | lib/pagy/extras/i18n.rb |
pagy-3.1.0 | lib/pagy/extras/i18n.rb |
pagy-3.0.0 | lib/pagy/extras/i18n.rb |