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-3.0.0.pre13 config/initializers/pagy.rb
avo-3.0.0.pre12 config/initializers/pagy.rb
avo-3.0.0.pre10 config/initializers/pagy.rb
avo-3.0.0.pre11 config/initializers/pagy.rb
avo-3.0.0.pre8 config/initializers/pagy.rb
avo-3.0.0.pre9 config/initializers/pagy.rb
avo-3.0.0.pre7 config/initializers/pagy.rb
avo-3.0.0.pre5 config/initializers/pagy.rb
avo-3.0.0.pre6 config/initializers/pagy.rb
avo-3.0.0.pre4 config/initializers/pagy.rb
avo-3.0.0.pre3 config/initializers/pagy.rb
avo-3.0.0.pre2 config/initializers/pagy.rb
avo-3.0.0.pre1 config/initializers/pagy.rb
avo-2.34.4 config/initializers/pagy.rb
avo-2.34.4.pre.1 config/initializers/pagy.rb
avo-2.34.3 config/initializers/pagy.rb
avo-2.34.2 config/initializers/pagy.rb
avo-2.34.1 config/initializers/pagy.rb
avo-2.34.0 config/initializers/pagy.rb
avo-2.33.3 config/initializers/pagy.rb