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.33.3.pre.2 config/initializers/pagy.rb
avo-2.33.3.pre.1 config/initializers/pagy.rb
avo-2.33.2 config/initializers/pagy.rb
avo-2.33.1 config/initializers/pagy.rb
avo-2.33.0 config/initializers/pagy.rb
avo-2.32.6 config/initializers/pagy.rb
avo-2.32.5 config/initializers/pagy.rb
avo-2.32.4 config/initializers/pagy.rb
avo-2.32.3 config/initializers/pagy.rb
avo-2.32.2 config/initializers/pagy.rb
avo-2.32.1 config/initializers/pagy.rb
avo-2.32.0 config/initializers/pagy.rb
avo-2.31.0 config/initializers/pagy.rb
avo-2.30.2 config/initializers/pagy.rb
avo-2.30.1 config/initializers/pagy.rb
avo-2.30.1.pre4.pr1683 config/initializers/pagy.rb
avo-2.30.1.pre3.pr1683 config/initializers/pagy.rb
avo-2.30.1.pre2.pr1683 config/initializers/pagy.rb
avo-2.30.1.pre1.pr1683 config/initializers/pagy.rb
avo-2.30.0 config/initializers/pagy.rb