Added i18n support

This commit is contained in:
MakingCG
2020-04-01 18:44:47 +02:00
parent 182091c21a
commit 8633650f82
52 changed files with 861 additions and 272 deletions

View File

@@ -31,7 +31,7 @@ class FileManagerFile extends Model
*/
public function getCreatedAtAttribute()
{
return Carbon::create($this->attributes['created_at'])->format('j M Y \a\t H:i');;
return format_date($this->attributes['created_at'], __('vuefilemanager.time'));
}
/**
@@ -43,7 +43,7 @@ class FileManagerFile extends Model
{
if (! $this->attributes['deleted_at']) return null;
return Carbon::create($this->attributes['deleted_at'])->format('j M Y at H:i');
return format_date($this->attributes['deleted_at'], __('vuefilemanager.time'));
}
/**