Skip to content

Commit fbdac84

Browse files
authored
Merge pull request jimmiw#92 from MoPaMo/En_short
Add shorter English class
2 parents a84893e + 4e7ef05 commit fbdac84

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
namespace Westsworld\TimeAgo\Translations;
4+
5+
use \Westsworld\TimeAgo\Language;
6+
7+
/**
8+
* short English translations
9+
*/
10+
class En_Short extends Language
11+
{
12+
public function __construct()
13+
{
14+
$this->setTranslations([
15+
'aboutOneDay' => "1d",
16+
'aboutOneHour' => "~1h",
17+
'aboutOneMonth' => "~1M",
18+
'aboutOneYear' => "~y",
19+
'days' => "%sd",
20+
'hours' => "%sh",
21+
'lessThanAMinute' => "<1m",
22+
'lessThanOneHour' => "%sm",
23+
'months' => "%sM",
24+
'oneMinute' => "1m",
25+
'years' => ">%sy"
26+
]);
27+
}
28+
}

0 commit comments

Comments
 (0)