module ApplicationHelper include Pagy::Frontend def language_name(code) supported_languages.find { |l| l.code == code }&.name end end