From 9d3c60795be78363c2c58b4922403bf4f1c46441 Mon Sep 17 00:00:00 2001 From: KinWang-2013 <94952098+KinWang-2013@users.noreply.github.com> Date: Thu, 3 Oct 2024 12:42:11 +0600 Subject: [PATCH 1/3] add dzongkha --- gem/lib/pagy/i18n.rb | 1 + gem/locales/dz.yml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 gem/locales/dz.yml diff --git a/gem/lib/pagy/i18n.rb b/gem/lib/pagy/i18n.rb index 7b64a58fd..5098e79e3 100644 --- a/gem/lib/pagy/i18n.rb +++ b/gem/lib/pagy/i18n.rb @@ -113,6 +113,7 @@ module P11n hash['zh-CN'] = RULE[:other] hash['zh-HK'] = RULE[:other] hash['zh-TW'] = RULE[:other] + hash['dz'] = RULE[:other] end.freeze end diff --git a/gem/locales/dz.yml b/gem/locales/dz.yml new file mode 100644 index 000000000..22c7e2b4c --- /dev/null +++ b/gem/locales/dz.yml @@ -0,0 +1,21 @@ +# :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb) +en: + pagy: + aria_label: + nav: + one: "ཤོག་ལེབ་" + other: "ཤོག་ལེབ་" + prev: "སྔོན་མ་" + next: "ཤུལ༌མ་" + prev: "<" + next: ">" + gap: "…" + item_name: + one: "རྣམ་གྲངས་" + other: "རྣམ་གྲངས་" + info: + no_items: "%{item_name}གཅིག་ཡང་འཚོལ་མ་འཐོབ།" + single_page: "%{item_name} %{count} བཀྲམ་སྟོན་འབད་དོ།" + multiple_pages: "བསྡོམས་ཀྱིས་ %{count} ལས་%{item_name} %{from}-%{to} བཀྲམ་སྟོན་འབད་དོ།" + combo_nav_js: "ཤོག་ལེབ་ %{pages} ལས་ %{page_input}།" + limit_selector_js: "ཤོག་ལེབ་རེ་ལུ་%{item_name} %{limit_input} སྟོན།" From d4d441a1b9dfdcae83edd4d55e4cdb272ddbd3d4 Mon Sep 17 00:00:00 2001 From: Kinley Wangchuk <94952098+KinWang-2013@users.noreply.github.com> Date: Fri, 4 Oct 2024 11:29:31 +0600 Subject: [PATCH 2/3] Update dz.yml --- gem/locales/dz.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gem/locales/dz.yml b/gem/locales/dz.yml index 22c7e2b4c..a38f3cb07 100644 --- a/gem/locales/dz.yml +++ b/gem/locales/dz.yml @@ -1,5 +1,5 @@ # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb) -en: +dz: pagy: aria_label: nav: From 6ea62f02dfb016f8136a503c10d9b18712af3975 Mon Sep 17 00:00:00 2001 From: KinWang-2013 <94952098+KinWang-2013@users.noreply.github.com> Date: Fri, 4 Oct 2024 12:09:24 +0600 Subject: [PATCH 3/3] resolve comments --- gem/locales/dz.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/gem/locales/dz.yml b/gem/locales/dz.yml index 22c7e2b4c..473fc82c9 100644 --- a/gem/locales/dz.yml +++ b/gem/locales/dz.yml @@ -1,18 +1,14 @@ -# :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb) +# :other pluralization (see https://github.com/ddnexus/pagy/blob/master/gem/lib/pagy/i18n.rb) en: pagy: aria_label: - nav: - one: "ཤོག་ལེབ་" - other: "ཤོག་ལེབ་" + nav: "ཤོག་ལེབ་" prev: "སྔོན་མ་" next: "ཤུལ༌མ་" prev: "<" next: ">" gap: "…" - item_name: - one: "རྣམ་གྲངས་" - other: "རྣམ་གྲངས་" + item_name: "རྣམ་གྲངས་" info: no_items: "%{item_name}གཅིག་ཡང་འཚོལ་མ་འཐོབ།" single_page: "%{item_name} %{count} བཀྲམ་སྟོན་འབད་དོ།"