Skip to content

Commit

Permalink
Add Belarusian locale (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
sk8higher authored Nov 11, 2023
1 parent c148ef5 commit ec1a2eb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/locales/be.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)

be:
pagy:

item_name:
one: "запіс"
few: "запісы"
many: "запісаў"
other: "запісаў"

nav:
prev: "‹ Назад"
next: "Наперад ›"
gap: "…"

info:
no_items: "Пакуль %{item_name} няма"
single_page: "<b>%{count}</b> %{item_name}"
multiple_pages: "Усяго <b>%{count}</b> %{item_name}, паказаны з <b>%{from}</b> па <b>%{to}</b>"

combo_nav_js: "<label>Старонка %{page_input} з %{pages}</label>"

items_selector_js: "<label>Паказаць %{items_input} %{item_name} на старонцы</label>"
1 change: 1 addition & 0 deletions lib/pagy/i18n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ module P11n
# the :one_other RULE is the default for locales missing from this list
LOCALE = Hash.new(RULE[:one_other]).tap do |hash|
hash['ar'] = RULE[:arabic]
hash['be'] = RULE[:east_slavic]
hash['bs'] = RULE[:east_slavic]
hash['cs'] = RULE[:west_slavic]
hash['id'] = RULE[:other]
Expand Down
1 change: 1 addition & 0 deletions pagy.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ lib/javascripts/pagy-module.d.ts
lib/javascripts/pagy-module.js
lib/javascripts/pagy.js
lib/locales/ar.yml
lib/locales/be.yml
lib/locales/bg.yml
lib/locales/bs.yml
lib/locales/ca.yml
Expand Down

0 comments on commit ec1a2eb

Please sign in to comment.