Skip to content

Commit

Permalink
fix translate
Browse files Browse the repository at this point in the history
  • Loading branch information
agungsugiarto committed Jun 27, 2020
1 parent db81409 commit 86cd6bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Language/en/boilerplate.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php
<?php

return [
'global' => [
'save' => 'Save',
'close' => 'Close',
'action' => 'Action',
'logout' => 'Logout',
'sweet' => [
'title' => 'Are you sure?',
'text' => "You won't be able to revert this!",
Expand Down
1 change: 1 addition & 0 deletions src/Language/id/boilerplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
'save' => 'Simpan',
'close' => 'Tutup',
'action' => 'Aksi',
'logout' => 'Logout',
'sweet' => [
'title' => 'Apakah kamu yakin?',
'text' => 'Anda tidak akan dapat mengembalikan ini!',
Expand Down
4 changes: 2 additions & 2 deletions src/Views/layout/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ class="avatar-img img-circle bg-gray mr-2 elevation-<?= config('Boilerplate')->t

<ul class="list-group list-group-unbordered mb-3">
<li class="list-group-item">
<span><?= lang('user.join') ?></span>
<span><?= lang('boilerplate.user.fields.join') ?></span>
<div class="float-right">
<?= user()->created_at->toLocalizedString('MMM d, yyyy') ?>
</div>
</li>
</ul>

<a href="<?= route_to('logout') ?>" class="btn btn-primary btn-block"><b>Logout</b></a>
<a href="<?= route_to('logout') ?>" class="btn btn-primary btn-block"><b><?= lang('boilerplate.global.logout') ?></b></a>
</div>
<!-- /.card-body -->
</div>
Expand Down

0 comments on commit 86cd6bb

Please sign in to comment.