Skip to content

Commit

Permalink
Add Vietnamese locale (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
YutoYasunaga authored Sep 27, 2023
1 parent 9aa28df commit 3d5dfbb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/locales/vi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# :other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)

vi:
pagy:

item_name: "kết quả"

nav:
prev: "‹ Trang trước"
next: "Trang sau ›"
gap: "…"

info:
no_items: "Không tìm thấy %{item_name} nào"
single_page: "<b>%{count}</b> %{item_name}"
multiple_pages: "Đang hiển thị <b>%{from}-%{to}</b> trong tổng số <b>%{count} %{item_name}</b>"

combo_nav_js: "<label>Trang %{page_input} trên %{pages}</label>"

items_selector_js: "<label>Hiển thị %{items_input} %{item_name} mỗi trang</label>"
1 change: 1 addition & 0 deletions lib/pagy/i18n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ module P11n
hash['sv-SE'] = RULE[:one_two_other]
hash['tr'] = RULE[:other]
hash['uk'] = RULE[:east_slavic]
hash['vi'] = RULE[:other]
hash['zh-CN'] = RULE[:other]
hash['zh-HK'] = RULE[:other]
hash['zh-TW'] = RULE[:other]
Expand Down
1 change: 1 addition & 0 deletions pagy.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ lib/locales/sw.yml
lib/locales/ta.yml
lib/locales/tr.yml
lib/locales/uk.yml
lib/locales/vi.yml
lib/locales/zh-CN.yml
lib/locales/zh-HK.yml
lib/locales/zh-TW.yml
Expand Down

0 comments on commit 3d5dfbb

Please sign in to comment.