Skip to content

Commit

Permalink
Swedish locale: add sv-SE, rename se -> sv (#226)
Browse files Browse the repository at this point in the history
- The Swedish locale is referred to as sv in the I18n-gem:
  https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/sv.yml
- It can also be referred to as sv-SE.
  • Loading branch information
davidwessman committed Mar 20, 2020
1 parent 00bd312 commit 6a31db6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions lib/locales/sv-SE.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# :one_two_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)

sv-SE:
pagy:

item_name:
one: "resultat"
two: "resultat"
other: "resultat"

nav:
prev: "‹ Föregående"
next: "Nästa ›"
gap: "…"

info:
no_items: "Inga %{item_name} hittade"
single_page: "Visar <b>%{count}</b> %{item_name}"
multiple_pages: "Visar %{item_name} <b>%{from}-%{to}</b> av <b>%{count}</b> totalt"

combo_nav_js: "Sida %{page_input} av %{pages}"

items_selector_js: "Visa %{items_input} %{item_name} per sida"
2 changes: 1 addition & 1 deletion lib/locales/se.yml → lib/locales/sv.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# :one_two_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)

se:
sv:
pagy:

item_name:
Expand Down

0 comments on commit 6a31db6

Please sign in to comment.