Skip to content

Commit

Permalink
Merge pull request #7 from ozdemirburak/turkish-feature
Browse files Browse the repository at this point in the history
Added Turkish Language
  • Loading branch information
mtownsend5512 authored Jan 15, 2019
2 parents 39293d9 + 54c001d commit e4b6536
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 e4b6536

Please sign in to comment.