Sha256: 0d583027799c01d5a7118c93c5c1bb59470c17c79ce1050c350dfdb29e330f9e

Contents?: true

Size: 540 Bytes

Versions: 25

Compression:

Stored size: 540 Bytes

Contents

require "pagy/extras/trim"
require "pagy/extras/countless"

# 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

extra_locales = [
  {locale: "en"},
  {locale: "es"},
  {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")}
]

Pagy::I18n.send(:build, *extra_locales)

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
avo-2.53.0 config/initializers/pagy.rb
avo-2.52.0 config/initializers/pagy.rb
avo-2.49.0 config/initializers/pagy.rb
avo-2.48.0 config/initializers/pagy.rb
avo-2.47.0 config/initializers/pagy.rb
avo-3.2.2 config/initializers/pagy.rb
avo-3.2.1 config/initializers/pagy.rb
avo-3.2.0 config/initializers/pagy.rb
avo-3.1.7 config/initializers/pagy.rb
avo-3.1.6 config/initializers/pagy.rb
avo-3.1.5 config/initializers/pagy.rb
avo-3.1.4 config/initializers/pagy.rb
avo-3.1.3 config/initializers/pagy.rb
avo-3.1.2 config/initializers/pagy.rb
avo-3.1.1 config/initializers/pagy.rb
avo-3.1.0 config/initializers/pagy.rb
avo-3.0.8 config/initializers/pagy.rb
avo-2.46.0 config/initializers/pagy.rb
avo-3.0.7 config/initializers/pagy.rb
avo-3.0.6 config/initializers/pagy.rb