© 2017-2021 Domizio DemichelisMIT License

➡ Chat Support on Gitter ➡

I18n Extra

Notice: Since Pagy version 2.0, you can use the pagy i18n implementation for both single-language and multi-language apps, with or without the i18n gem.

The i18n extra overrides the pagy_t method so it uses I18n.t implemented by the i18n gem.

The I18n.t is ~18x slower and uses ~10x more memory than pagy_t so use it wisely.

See also I18n.


See extras for general usage info.

In the pagy.rb initializer:

require 'pagy/extras/i18n'