diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b6dcdb1b..3df7dec11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # CHANGELOG +## Version 0.22.0 + +### Changes + +- Added Norvegian locale + +### Commits + +- [59064c2](http://github.com/ddnexus/pagy/commit/59064c2): Added Norwegian locale (#100) + ## Version 0.21.0 ### Changes diff --git a/lib/locales/nb.yml b/lib/locales/nb.yml new file mode 100644 index 000000000..6859bdbc7 --- /dev/null +++ b/lib/locales/nb.yml @@ -0,0 +1,20 @@ +nb: + pagy: + nav: + prev: "‹ Forrige" + next: "Neste ›" + gap: "…" + info: + single_page: + zero: "Ingen %{item_name} funnet" + one: "Viser 1 %{item_name}" + other: "Viser alle %{count} %{item_name}" + multiple_pages: "Viser %{item_name} %{from}-%{to} av totalt %{count}" + item_name: + zero: "resultater" + one: "resultat" + other: "resultater" + compact: "Side %{page_input} av %{pages}" + items: + one: "Vis %{items_input} resultat per side" + other: "Vis %{items_input} resultater per side" diff --git a/lib/pagy.rb b/lib/pagy.rb index 392e60785..1d6aa19fd 100644 --- a/lib/pagy.rb +++ b/lib/pagy.rb @@ -3,7 +3,7 @@ require 'pathname' -class Pagy ; VERSION = '0.21.0' +class Pagy ; VERSION = '0.22.0' class OutOfRangeError < StandardError; attr_reader :pagy; def initialize(pagy) @pagy = pagy end; end