Sha256: ccc7e359ff6644fc15285fa8477ebe492357d23393ad98c31aa064506e8b32b4
Contents?: true
Size: 486 Bytes
Versions: 10
Compression:
Stored size: 486 Bytes
Contents
# See the Pagy documentation: https://ddnexus.github.io/pagy/extras/i18n # frozen_string_literal: true class Pagy # Use ::I18n gem module Frontend ::I18n.load_path += Dir[Pagy.root.join('locales', '*.yml')] # unload the pagy default constant for efficiency Pagy::I18n.clear.instance_eval do undef :load undef :t end module UseI18nGem def pagy_t(key, **opts) ::I18n.t(key, **opts) end end prepend UseI18nGem end end
Version data entries
10 entries across 10 versions & 2 rubygems