Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add Dzongkha #134

Merged
merged 7 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* [#131](https://github.com/radar/distance_of_time_in_words/pull/131): Deprecates `highest_measure_only`. Adds alternate form of `highest_measures` option to permit rounding up whatever part of the duration was previously silently discarded - [@seansfkelley](https://github.com/seansfkelley).
* [#133](https://github.com/radar/distance_of_time_in_words/pull/133): Test on Ruby 3.0 and 3.1 - [@dblock](https://github.com/dblock).
* [#134](https://github.com/radar/distance_of_time_in_words/pull/134): Add support for Dzongkha, the National language of Bhutan - [@KinWang-2013](https://github.com/KinWang-2013).
* [#135](https://github.com/radar/distance_of_time_in_words/pull/135): Add support for Ruby 2.7 and 3.2, removed support for ruby 2.4, 2.5, 2.6 and Rails 4 - [@KinWang-2013](https://github.com/KinWang-2013).
* Your contribution here.

Expand Down
60 changes: 60 additions & 0 deletions lib/dotiw/locale/dz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
dz:
datetime:
dotiw:
seconds:
one: སྐར་ཆ་ ༡
other: "སྐར་ཆ་ %{count}"
minutes:
one: སྐར་མ་ ༡
other: "སྐར་མ་ %{count}"
hours:
one: ཆུ་ཚོད་ ༡
other: "ཆུ་ཚོད་ %{count}"
days:
one: ཉིནམ་ ༡
other: "ཉིནམ་ %{count}"
weeks:
one: བདུན༌ཕྲག་ ༡
other: "བདུན༌ཕྲག་ %{count}"
months:
one: ཟླཝ་ ༡
other: "ཟླཝ་ %{count}"
years:
one: ལོ་ ༡
other: "ལོ་ %{count}"
less_than_x: "%{distance} ་ལས་ཉུངམ་"
dotiw_compact:
seconds:
one: སྐར་ཆ་ ༡
other: "སྐར་ཆ་ %{count}"
minutes:
one: སྐར་མ་ ༡
other: "སྐར་མ་ %{count}"
hours:
one: ཆུ་ཚོད་ ༡
other: "ཆུ་ཚོད་ %{count}"
days:
one: ཉིནམ་ ༡
other: "ཉིནམ་ %{count}"
weeks:
one: བདུན༌ཕྲག་ ༡
other: "བདུན༌ཕྲག་ %{count}"
months:
one: ཟླཝ་ ༡
other: "ཟླཝ་ %{count}"
years:
one: ལོ་ ༡
other: "ལོ་ %{count}"
less_than_x: "%{distance} ་ལས་ཉུངམ"
words_connector: ""
two_words_connector: " དང་ "
last_word_connector: " དང་ "
about_x_years:
one: ལོ་ ༡ ་དེ་ཅིག
any: "ལོ་ %{count} ་དེ་ཅིག"
over_x_years:
one: "ལོ་ ༡ ་ལས་ལྷགཔ་ཅིག"
other: "ལོ་ %{count} ་ལས་ལྷགཔ་ཅིག"
almost_x_years:
one: ལོ་ ༡ ་མ་ལྷགཔ་ཅིག
any: "ལོ་ %{count} ་མ་ལྷགཔ་ཅིག"
21 changes: 21 additions & 0 deletions spec/lib/i18n/dz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
seconds:
1.second: སྐར་ཆ་ ༡
3.seconds: སྐར་ཆ་ 3
minutes:
1.minute: སྐར་མ་ ༡
20.minutes: སྐར་མ་ 20
hours:
1.hour: ཆུ་ཚོད་ ༡
5.hours: ཆུ་ཚོད་ 5
days:
1.day: ཉིནམ་ ༡
6.days: ཉིནམ་ 6
weeks:
1.week: བདུན༌ཕྲག་ ༡
2.weeks: བདུན༌ཕྲག་ 2
months:
1.month: ཟླཝ་ ༡
9.months: ཟླཝ་ 9
years:
1.year: ལོ་ ༡
3.years: ལོ་ 3
Loading