From 37ded22a59f546d8661f6f98dd9f3e56fc335e96 Mon Sep 17 00:00:00 2001 From: Patrick Bergman Date: Tue, 4 Dec 2018 23:15:15 +0100 Subject: [PATCH] Update to make fields translatable --- src/Http/Controllers/ToolController.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Http/Controllers/ToolController.php b/src/Http/Controllers/ToolController.php index 6358602..92df028 100644 --- a/src/Http/Controllers/ToolController.php +++ b/src/Http/Controllers/ToolController.php @@ -12,8 +12,8 @@ public function index() [ "component" => "text-field", "prefixComponent" => true, - "indexName" => "Name", - "name" => "Name", + "indexName" => __("Name"), + "name" => __("Name"), "attribute" => "name", "value" => auth()->user()->name, "panel" => null, @@ -23,8 +23,8 @@ public function index() [ "component" => "text-field", "prefixComponent" => true, - "indexName" => "E-mail address", - "name" => "E-mail address", + "indexName" => __("E-mail address"), + "name" => __("E-mail address"), "attribute" => "email", "value" => auth()->user()->email, "panel" => null, @@ -34,8 +34,8 @@ public function index() [ "component" => "password-field", "prefixComponent" => true, - "indexName" => "Password", - "name" => "Password", + "indexName" => __("Password"), + "name" => __("Password"), "attribute" => "password", "value" => null, "panel" => null, @@ -45,8 +45,8 @@ public function index() [ "component" => "password-field", "prefixComponent" => true, - "indexName" => "Password Confirmation", - "name" => "Password Confirmation", + "indexName" => __("Password Confirmation"), + "name" => __("Password Confirmation"), "attribute" => "password_confirmation", "value" => null, "panel" => null,