Skip to content

Commit

Permalink
added turkish language, replace multiple spaces instead of limiting by 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ozdemirburak committed Jan 14, 2019
1 parent aea537d commit 54c001d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReadTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected function cleanContent($content): string
*/
protected function cleanReadTimeString($string): string
{
return trim(str_replace(' ', ' ', $string));
return trim(preg_replace('/\s+/u', ' ', $string));
}

/**
Expand Down
10 changes: 10 additions & 0 deletions src/resources/lang/tr/read-time.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return [
'reads_left_to_right' => true,
'min' => 'dk',
'minute' => 'dakika',
'sec' => 'sn',
'second' => 'saniye',
'read' => 'okuma süresi'
];

0 comments on commit 54c001d

Please sign in to comment.