Sha256: 71963e87f34a33da519b9e0320f3d0767697ba0ca38a2696e17849ccf9d774eb

Contents?: true

Size: 558 Bytes

Versions: 42

Compression:

Stored size: 558 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: "ja"},
  {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

42 entries across 42 versions & 1 rubygems

Version Path
avo-3.10.7 config/initializers/pagy.rb
avo-3.10.6 config/initializers/pagy.rb
avo-3.10.5 config/initializers/pagy.rb
avo-3.10.4 config/initializers/pagy.rb
avo-3.10.3 config/initializers/pagy.rb
avo-3.10.2 config/initializers/pagy.rb
avo-3.10.1 config/initializers/pagy.rb
avo-3.10.0 config/initializers/pagy.rb
avo-3.9.2 config/initializers/pagy.rb
avo-3.9.1 config/initializers/pagy.rb
avo-3.8.2 config/initializers/pagy.rb
avo-3.9.0 config/initializers/pagy.rb
avo-3.8.1 config/initializers/pagy.rb
avo-3.8.0 config/initializers/pagy.rb
avo-3.6.4 config/initializers/pagy.rb
avo-3.6.3 config/initializers/pagy.rb
avo-3.6.2 config/initializers/pagy.rb
avo-3.6.1 config/initializers/pagy.rb
avo-3.6.0 config/initializers/pagy.rb
avo-3.5.8 config/initializers/pagy.rb