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