Skip to content

Commit

Permalink
Support Azerbaijani language (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
4t87ux8 authored Oct 18, 2020
1 parent c86d182 commit da1bbcf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Coduo/PHPHumanizer/Tests/DateTimeHumanizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,16 @@ public function humanizeDataProvider()
public function preciseDifferenceDataProvider()
{
return [
// Azerbaijani
['2014-04-26 13:00:00', '2014-04-26 12:58:15', '1 dəqiqə, 45 saniyə əvvəl', 'az'],
['2014-04-26 13:00:00', '2014-04-26 11:20:00', '1 saat, 40 dəqiqə əvvəl', 'az'],
['2014-04-26 13:00:00', '2014-04-27 13:15:00', '1 gün, 15 dəqiqə sonra', 'az'],
['2014-04-26 13:00:00', '2014-05-03 15:00:00', '7 gün, 2 saat sonra', 'az'],
['2014-04-26 13:00:00', '2015-04-28 17:00:00', '1 il, 2 gün, 4 saat sonra', 'az'],
['2014-04-26 13:00:00', '2014-04-28 23:00:00', '2 gün, 10 saat sonra', 'az'],
['2014-04-26 13:00:00', '2014-04-25 11:20:00', '1 gün, 1 saat, 40 dəqiqə əvvəl', 'az'],
['2014-04-26 13:00:00', '2016-04-27 13:00:00', '2 il, 1 gün sonra', 'az'],

// English
['2014-04-26 13:00:00', '2014-04-26 12:58:15', '1 minute, 45 seconds ago', 'en'],
['2014-04-26 13:00:00', '2014-04-26 11:20:00', '1 hour, 40 minutes ago', 'en'],
Expand Down

0 comments on commit da1bbcf

Please sign in to comment.