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.beta23 config/initializers/pagy.rb
avo-3.0.1.beta20 config/initializers/pagy.rb
avo-3.0.1.beta21 config/initializers/pagy.rb
avo-3.0.1.beta17 config/initializers/pagy.rb
avo-3.0.1.beta22 config/initializers/pagy.rb
avo-3.0.1.beta18 config/initializers/pagy.rb
avo-3.0.1.beta19 config/initializers/pagy.rb
avo-3.0.1.beta24 config/initializers/pagy.rb
avo-3.0.1.beta15 config/initializers/pagy.rb
avo-3.0.1.beta16 config/initializers/pagy.rb
avo-3.0.1.beta14 config/initializers/pagy.rb
avo-3.0.1.beta12 config/initializers/pagy.rb
avo-3.0.1.beta13 config/initializers/pagy.rb
avo-3.0.1.beta10 config/initializers/pagy.rb
avo-3.0.1.beta11 config/initializers/pagy.rb
avo-3.0.0.pre19 config/initializers/pagy.rb
avo-3.0.1.beta8 config/initializers/pagy.rb
avo-3.0.1.beta9 config/initializers/pagy.rb
avo-3.0.1.beta6 config/initializers/pagy.rb
avo-3.0.1.beta7 config/initializers/pagy.rb