Sha256: b367349fca4ea57ae44bbc0f73031c723d6b87046a030fab449d41dde6cad5a3

Contents?: true

Size: 465 Bytes

Versions: 67

Compression:

Stored size: 465 Bytes

Contents

require "pagy/extras/trim"

# For locales without native pagy i18n support
def pagy_locale_path(file_name)
  Avo::Engine.root.join("lib", "generators", "avo", "templates", "locales", "pagy", file_name)
end

Pagy::I18n.load(
  { locale: 'en' },
  { locale: 'fr' },
  { locale: 'nb' },
  { locale: 'pt-BR' },
  { locale: 'pt' },
  { locale: 'tr' },
  { locale: 'nn', filepath: pagy_locale_path("nn.yml") },
  { locale: 'ro', filepath: pagy_locale_path("ro.yml") },
)

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
avo-2.23.1 config/initializers/pagy.rb
avo-2.23.0 config/initializers/pagy.rb
avo-2.22.0 config/initializers/pagy.rb
avo-2.21.3.pre.pr1489 config/initializers/pagy.rb
avo-2.21.2.pre.pr1486 config/initializers/pagy.rb
avo-2.21.1.pre.pr1484 config/initializers/pagy.rb
avo-2.21.0 config/initializers/pagy.rb