Sha256: 88827306299f3ec910f36657b16e984f34e34fa8e65f98df4073f75b3b4a0e4d

Contents?: true

Size: 490 Bytes

Versions: 51

Compression:

Stored size: 490 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

extra_locales = [
  {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")}
]

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

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
avo-3.0.1.beta5 config/initializers/pagy.rb
avo-3.0.1.beta2 config/initializers/pagy.rb
avo-3.0.1.beta4 config/initializers/pagy.rb
avo-3.0.1.beta3 config/initializers/pagy.rb
avo-3.0.0.beta1 config/initializers/pagy.rb
avo-3.0.1.beta1 config/initializers/pagy.rb
avo-3.0.0.pre17 config/initializers/pagy.rb
avo-3.0.0.pre18 config/initializers/pagy.rb
avo-3.0.0.pre14 config/initializers/pagy.rb
avo-3.0.0.pre16 config/initializers/pagy.rb
avo-3.0.0.pre15 config/initializers/pagy.rb
avo-2.44.0 config/initializers/pagy.rb
avo-2.43.0 config/initializers/pagy.rb
avo-2.42.2 config/initializers/pagy.rb
avo-2.42.1 config/initializers/pagy.rb
avo-2.42.0 config/initializers/pagy.rb
avo-2.41.0 config/initializers/pagy.rb
avo-2.40.0 config/initializers/pagy.rb
avo-2.39.0 config/initializers/pagy.rb
avo-2.38.0 config/initializers/pagy.rb