diff --git a/CHANGELOG.md b/CHANGELOG.md index c7fc28a..034cb03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/lib/dotiw/locale/dz.yml b/lib/dotiw/locale/dz.yml new file mode 100644 index 0000000..96b340a --- /dev/null +++ b/lib/dotiw/locale/dz.yml @@ -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} ་མ་ལྷགཔ་ཅིག" diff --git a/spec/lib/i18n/dz.yml b/spec/lib/i18n/dz.yml new file mode 100644 index 0000000..bb00f59 --- /dev/null +++ b/spec/lib/i18n/dz.yml @@ -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