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.5.7 config/initializers/pagy.rb
avo-3.5.6 config/initializers/pagy.rb
avo-3.5.6.beta1 config/initializers/pagy.rb
avo-3.5.5 config/initializers/pagy.rb
avo-3.5.4 config/initializers/pagy.rb
avo-3.5.3 config/initializers/pagy.rb
avo-3.5.2 config/initializers/pagy.rb
avo-3.5.1 config/initializers/pagy.rb
avo-3.5.0 config/initializers/pagy.rb
avo-3.4.4 config/initializers/pagy.rb
avo-3.4.3 config/initializers/pagy.rb
avo-3.4.2 config/initializers/pagy.rb
avo-3.4.1 config/initializers/pagy.rb
avo-3.4.0 config/initializers/pagy.rb
avo-3.3.6 config/initializers/pagy.rb
avo-3.3.5 config/initializers/pagy.rb
avo-3.3.4 config/initializers/pagy.rb
avo-3.3.3 config/initializers/pagy.rb
avo-3.3.2 config/initializers/pagy.rb
avo-3.3.1 config/initializers/pagy.rb