Skip to content

Commit 183c4a5

Browse files
authored
Use translation function for hardcoded text (#23)
1 parent 5a06169 commit 183c4a5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/Http/Controllers/AccountController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function update(AccountUpdate $request)
2020
$request->user()->update($request->only('first_name', 'last_name', 'email'));
2121
$request->user()->updatePassword($request->validated('password'));
2222

23-
\session()->flash('message', 'Your account has been updated.');
23+
\session()->flash('message', \__('account.updated'));
2424

2525
return \redirect()->back();
2626
}

lang/en/account.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
return [
4+
5+
'updated' => 'Your account has been updated.',
6+
];

0 commit comments

Comments
 (0)